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

Function node_id_from_hexstr

common/node_id.c:53–57  ·  view source on GitHub ↗

Convert from hex string of SEC1 encoding */

Source from the content-addressed store, hash-verified

51
52/* Convert from hex string of SEC1 encoding */
53bool node_id_from_hexstr(const char *str, size_t slen, struct node_id *id)
54{
55 return hex_decode(str, slen, id->k, sizeof(id->k))
56 && node_id_valid(id);
57}
58
59int node_id_cmp(const struct node_id *a, const struct node_id *b)
60{

Callers 7

json_to_node_idFunction · 0.70
mainFunction · 0.50
mainFunction · 0.50
param_destinations_arrayFunction · 0.50
mainFunction · 0.50
opt_set_node_idFunction · 0.50
mainFunction · 0.50

Calls 2

hex_decodeFunction · 0.85
node_id_validFunction · 0.85

Tested by 1

mainFunction · 0.40