mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
param: upgraded json_tok_sha256
Signed-off-by: Mark Beckwith <wythe@intrig.com>
This commit is contained in:
committed by
Rusty Russell
parent
2a0c2601c0
commit
6254d15efd
@@ -126,14 +126,6 @@ bool json_tok_is_null(const char *buffer, const jsmntok_t *tok)
|
||||
return buffer[tok->start] == 'n';
|
||||
}
|
||||
|
||||
bool json_tok_sha256(const char *buffer, const jsmntok_t * tok,
|
||||
struct sha256 *hash)
|
||||
{
|
||||
return hex_decode(buffer + tok->start,
|
||||
tok->end - tok->start,
|
||||
hash, sizeof(*hash));
|
||||
}
|
||||
|
||||
const jsmntok_t *json_next(const jsmntok_t *tok)
|
||||
{
|
||||
const jsmntok_t *t;
|
||||
|
||||
Reference in New Issue
Block a user