It's valid if we can convert to a real pubkey. */
| 37 | |
| 38 | /* It's valid if we can convert to a real pubkey. */ |
| 39 | bool 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 */ |
| 46 | char *node_id_to_hexstr(const tal_t *ctx, const struct node_id *id) |
no test coverage detected