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

Function json_to_preimage

common/json_parse.c:658–662  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

656}
657
658bool json_to_preimage(const char *buffer, const jsmntok_t *tok, struct preimage *preimage)
659{
660 size_t hexlen = tok->end - tok->start;
661 return hex_decode(buffer + tok->start, hexlen, preimage->r, sizeof(preimage->r));
662}
663
664struct wally_psbt *json_to_psbt(const tal_t *ctx, const char *buffer,
665 const jsmntok_t *tok)

Callers 5

listsendpays_doneFunction · 0.85

Calls 1

hex_decodeFunction · 0.85

Tested by

no test coverage detected