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

Function json_add_pubkey

common/json_stream.c:434–442  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

432}
433
434void json_add_pubkey(struct json_stream *response,
435 const char *fieldname,
436 const struct pubkey *key)
437{
438 u8 der[PUBKEY_CMPR_LEN];
439
440 pubkey_to_der(der, key);
441 json_add_hex(response, fieldname, der, sizeof(der));
442}
443
444void json_add_bip340sig(struct json_stream *response,
445 const char *fieldname,

Callers 15

json_listaddrsFunction · 0.85
json_signmessagewithkeyFunction · 0.85
json_checkmessageFunction · 0.85
json_add_blindedpathFunction · 0.85
connect_directFunction · 0.85
inject_onionmessage_Function · 0.85
json_add_onionmsg_pathFunction · 0.85
json_add_blinded_pathsFunction · 0.85

Calls 2

pubkey_to_derFunction · 0.85
json_add_hexFunction · 0.85

Tested by

no test coverage detected