Convert from hex string of SEC1 encoding */
| 51 | |
| 52 | /* Convert from hex string of SEC1 encoding */ |
| 53 | bool 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 | |
| 59 | int node_id_cmp(const struct node_id *a, const struct node_id *b) |
| 60 | { |