Convert from hex string of SEC1 encoding */
| 41 | |
| 42 | /* Convert from hex string of SEC1 encoding */ |
| 43 | bool node_id_from_hexstr(const char *str, size_t slen, struct node_id *id) |
| 44 | { |
| 45 | return hex_decode(str, slen, id->k, sizeof(id->k)) |
| 46 | && node_id_valid(id); |
| 47 | } |
| 48 | |
| 49 | int node_id_cmp(const struct node_id *a, const struct node_id *b) |
| 50 | { |