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

Function node_id_from_point32

plugins/fetchinvoice.c:575–584  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

573}
574
575static void node_id_from_point32(struct node_id *nid,
576 const struct point32 *node32_id,
577 enum nodeid_parity parity)
578{
579 assert(parity == SECP256K1_TAG_PUBKEY_EVEN
580 || parity == SECP256K1_TAG_PUBKEY_ODD);
581 nid->k[0] = parity;
582 secp256k1_xonly_pubkey_serialize(secp256k1_ctx, nid->k+1,
583 &node32_id->pubkey);
584}
585
586/* Create path to node which can carry onion messages (including
587 * self); if it can't find one, returns NULL. Fills in nodeid_parity

Callers 2

path_to_nodeFunction · 0.85
connect_directFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected