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

Function point32_from_node_id

common/node_id.c:28–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28WARN_UNUSED_RESULT
29bool point32_from_node_id(struct point32 *key, const struct node_id *id)
30{
31 struct pubkey k;
32 if (!pubkey_from_node_id(&k, id))
33 return false;
34 return secp256k1_xonly_pubkey_from_pubkey(secp256k1_ctx, &key->pubkey,
35 NULL, &k.pubkey) == 1;
36}
37
38/* It's valid if we can convert to a real pubkey. */
39bool node_id_valid(const struct node_id *id)

Callers 1

json_createofferFunction · 0.85

Calls 1

pubkey_from_node_idFunction · 0.70

Tested by

no test coverage detected