Checks that key is valid, and signed this hash */
| 618 | |
| 619 | /* Checks that key is valid, and signed this hash */ |
| 620 | static bool check_signed_hash_nodeid(const struct sha256_double *hash, |
| 621 | const secp256k1_ecdsa_signature *signature, |
| 622 | const struct node_id *id) |
| 623 | { |
| 624 | struct pubkey key; |
| 625 | |
| 626 | return pubkey_from_node_id(&key, id) |
| 627 | && check_signed_hash(hash, signature, &key); |
| 628 | } |
| 629 | |
| 630 | /* Verify the signature of a channel_update message */ |
| 631 | static u8 *check_channel_update(const tal_t *ctx, |
no test coverage detected