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

Function json_add_point32

common/json_stream.c:418–426  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

416}
417
418void json_add_point32(struct json_stream *response,
419 const char *fieldname,
420 const struct point32 *key)
421{
422 u8 output[32];
423
424 secp256k1_xonly_pubkey_serialize(secp256k1_ctx, output, &key->pubkey);
425 json_add_hex(response, fieldname, output, sizeof(output));
426}
427
428void json_add_bip340sig(struct json_stream *response,
429 const char *fieldname,

Callers 3

json_add_offerFunction · 0.85
json_add_b12_invoiceFunction · 0.85
json_add_invoice_requestFunction · 0.85

Calls 1

json_add_hexFunction · 0.85

Tested by

no test coverage detected