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

Function json_to_bip340sig

plugins/offers_proof.c:177–182  ·  view source on GitHub ↗

Parse a 64-byte bip340 signature from a JSON hex token. */

Source from the content-addressed store, hash-verified

175
176/* Parse a 64-byte bip340 signature from a JSON hex token. */
177static bool json_to_bip340sig(const char *buf, const jsmntok_t *tok,
178 struct bip340sig *sig)
179{
180 return hex_decode(buf + tok->start, tok->end - tok->start,
181 sig->u8, sizeof(sig->u8));
182}
183
184static void json_add_tlv_arr_level(struct json_stream *js,
185 const char *fieldname,

Callers 1

payersign_doneFunction · 0.85

Calls 1

hex_decodeFunction · 0.85

Tested by

no test coverage detected