| 19 | } |
| 20 | |
| 21 | WARN_UNUSED_RESULT |
| 22 | bool pubkey_from_node_id(struct pubkey *key, const struct node_id *id) |
| 23 | { |
| 24 | return secp256k1_ec_pubkey_parse(secp256k1_ctx, &key->pubkey, |
| 25 | memcheck(id->k, sizeof(id->k)), |
| 26 | sizeof(id->k)); |
| 27 | } |
| 28 | |
| 29 | /* It's valid if we can convert to a real pubkey. */ |
| 30 | bool node_id_valid(const struct node_id *id) |
no outgoing calls
no test coverage detected