MCPcopy Create free account
hub / github.com/ElementsProject/lightning / check_signed_hash_nodeid

Function check_signed_hash_nodeid

gossipd/routing.c:620–628  ·  view source on GitHub ↗

Checks that key is valid, and signed this hash */

Source from the content-addressed store, hash-verified

618
619/* Checks that key is valid, and signed this hash */
620static 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 */
631static u8 *check_channel_update(const tal_t *ctx,

Callers 3

check_channel_updateFunction · 0.85
handle_node_announcementFunction · 0.85

Calls 2

check_signed_hashFunction · 0.85
pubkey_from_node_idFunction · 0.50

Tested by

no test coverage detected