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

Function json_to_sha256

common/json_parse.c:130–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130bool json_to_sha256(const char *buffer, const jsmntok_t *tok, struct sha256 *dest)
131{
132 if (tok->type != JSMN_STRING)
133 return false;
134
135 return hex_decode(buffer + tok->start, tok->end - tok->start, dest,
136 sizeof(struct sha256));
137}
138
139u8 *json_tok_bin_from_hex(const tal_t *ctx, const char *buffer, const jsmntok_t *tok)
140{

Callers 7

mainFunction · 0.85
channel_eventsFunction · 0.85
chain_eventsFunction · 0.85
init_descriptionsFunction · 0.85
tal_routekey_from_jsonFunction · 0.85
tal_route_from_jsonFunction · 0.85
listsendpays_doneFunction · 0.85

Calls 1

hex_decodeFunction · 0.85

Tested by 1

mainFunction · 0.68