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

Function node_id_valid

common/node_id.c:39–43  ·  view source on GitHub ↗

It's valid if we can convert to a real pubkey. */

Source from the content-addressed store, hash-verified

37
38/* It's valid if we can convert to a real pubkey. */
39bool node_id_valid(const struct node_id *id)
40{
41 struct pubkey key;
42 return pubkey_from_node_id(&key, id);
43}
44
45/* Convert to hex string of SEC1 encoding */
46char *node_id_to_hexstr(const tal_t *ctx, const struct node_id *id)

Callers 5

new_clientFunction · 0.85
decode_nFunction · 0.85
encode_nFunction · 0.85
node_id_from_hexstrFunction · 0.85
db_bind_node_id_arrFunction · 0.85

Calls 1

pubkey_from_node_idFunction · 0.70

Tested by

no test coverage detected