param: upgraded json_tok_sha256

Signed-off-by: Mark Beckwith <wythe@intrig.com>
This commit is contained in:
Mark Beckwith
2018-08-14 15:16:49 -05:00
committed by Rusty Russell
parent 2a0c2601c0
commit 6254d15efd
7 changed files with 32 additions and 23 deletions

View File

@@ -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;