| 26 | } |
| 27 | |
| 28 | WARN_UNUSED_RESULT |
| 29 | bool point32_from_node_id(struct point32 *key, const struct node_id *id) |
| 30 | { |
| 31 | struct pubkey k; |
| 32 | if (!pubkey_from_node_id(&k, id)) |
| 33 | return false; |
| 34 | return secp256k1_xonly_pubkey_from_pubkey(secp256k1_ctx, &key->pubkey, |
| 35 | NULL, &k.pubkey) == 1; |
| 36 | } |
| 37 | |
| 38 | /* It's valid if we can convert to a real pubkey. */ |
| 39 | bool node_id_valid(const struct node_id *id) |
no test coverage detected