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

Function node_id_valid

common/node_id.c:30–34  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

28
29/* It's valid if we can convert to a real pubkey. */
30bool node_id_valid(const struct node_id *id)
31{
32 struct pubkey key;
33 return pubkey_from_node_id(&key, id);
34}
35
36/* Convert to hex string of SEC1 encoding */
37char *fmt_node_id(const tal_t *ctx, const struct node_id *id)

Callers 5

new_clientFunction · 0.85
decode_rFunction · 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