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

Function pubkey_from_node_id

common/node_id.c:20–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18}
19
20WARN_UNUSED_RESULT
21bool pubkey_from_node_id(struct pubkey *key, const struct node_id *id)
22{
23 return secp256k1_ec_pubkey_parse(secp256k1_ctx, &key->pubkey,
24 memcheck(id->k, sizeof(id->k)),
25 sizeof(id->k));
26}
27
28WARN_UNUSED_RESULT
29bool point32_from_node_id(struct point32 *key, const struct node_id *id)

Callers 15

bolt11_decodeFunction · 0.70
point32_from_node_idFunction · 0.70
node_id_validFunction · 0.70
handle_onion_messageFunction · 0.50
connection_outFunction · 0.50
setup_listenersFunction · 0.50
connect_initFunction · 0.50
check_signed_hash_nodeidFunction · 0.50
send_paymentFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected