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

Function pubkey_from_node_id

common/node_id.c:21–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21WARN_UNUSED_RESULT
22bool pubkey_from_node_id(struct pubkey *key, const struct node_id *id)
23{
24 return secp256k1_ec_pubkey_parse(secp256k1_ctx, &key->pubkey,
25 memcheck(id->k, sizeof(id->k)),
26 sizeof(id->k));
27}
28
29/* It's valid if we can convert to a real pubkey. */
30bool node_id_valid(const struct node_id *id)

Callers 15

decode_nFunction · 0.70
bolt11_decodeFunction · 0.70
node_id_validFunction · 0.70
check_signed_hash_nodeidFunction · 0.70
connection_outFunction · 0.50
setup_listenersFunction · 0.50
connect_initFunction · 0.50
send_paymentFunction · 0.50
hsm_initFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected