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

Function json_to_secret

common/json_parse.c:652–656  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

650}
651
652bool json_to_secret(const char *buffer, const jsmntok_t *tok, struct secret *dest)
653{
654 return hex_decode(buffer + tok->start, tok->end - tok->start,
655 dest->data, sizeof(struct secret));
656}
657
658bool json_to_preimage(const char *buffer, const jsmntok_t *tok, struct preimage *preimage)
659{

Callers 6

mainFunction · 0.85
mainFunction · 0.85
onion_message_recvFunction · 0.85
after_makesecretFunction · 0.85

Calls 1

hex_decodeFunction · 0.85

Tested by 2

mainFunction · 0.68
mainFunction · 0.68