MCPcopy Create free account
hub / github.com/ElementsProject/lightning / json_to_sha256

Function json_to_sha256

common/json_parse.c:153–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151}
152
153bool json_to_sha256(const char *buffer, const jsmntok_t *tok, struct sha256 *dest)
154{
155 if (tok->type != JSMN_STRING)
156 return false;
157
158 return hex_decode(buffer + tok->start, tok->end - tok->start, dest,
159 sizeof(struct sha256));
160}
161
162u8 *json_tok_bin_from_hex(const tal_t *ctx, const char *buffer, const jsmntok_t *tok)
163{

Callers 2

mainFunction · 0.85
listsendpays_doneFunction · 0.85

Calls 1

hex_decodeFunction · 0.85

Tested by 1

mainFunction · 0.68