gossipd/routing.c
static bool check_channel_update(const struct pubkey *node_key,
				 const secp256k1_ecdsa_signature *node_sig,
				 const u8 *update)
{
	/* 2 byte msg type + 64 byte signatures */
	int offset = 66;
	struct sha256_double hash;
	sha256_double(&hash, update + offset, tal_len(update) - offset);

	return check_signed_hash(&hash, node_sig, node_key);
}
/* Verify the signature of a channel_update message */
Verify the signature of a channel_update message
Verify the signature of a channel_update message
static bool check_channel_update(const struct pubkey *node_key,
				 const secp256k1_ecdsa_signature *node_sig,
				 const u8 *update)
{
	int offset = 66;
	struct sha256_double hash;
	sha256_double(&hash, update + offset, tal_len(update) - offset);
	return check_signed_hash(&hash, node_sig, node_key);
}
static bool check_channel_update ( const struct pubkey * node_key , const secp256k1_ecdsa_signature * node_sig , const u8 * update ) { int offset = 66 ; struct sha256_double hash ; sha256_double ( & hash , update + offset , tal_len ( update ) - offset ) ; return check_signed_hash ( & hash , node_sig , node_key ) ; }
Verify the signature of a channel_update message
Verify the signature of a channel_update message
/* 2 byte msg type + 64 byte signatures */