mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-06 23:54:22 +01:00
lightningd: use 33 byte pubkeys internally.
We still use 32 bytes on the wire, but internally don't use x-only. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -318,11 +318,7 @@ static bool print_signature(const char *messagename,
|
||||
|
||||
merkle_tlv(fields, &m);
|
||||
sighash_from_merkle(messagename, fieldname, &m, &shash);
|
||||
if (secp256k1_schnorrsig_verify(secp256k1_ctx,
|
||||
sig->u8,
|
||||
shash.u.u8,
|
||||
sizeof(shash.u.u8),
|
||||
&node_id->pubkey) != 1) {
|
||||
if (!check_schnorr_sig(&shash, &node_id->pubkey, sig)) {
|
||||
fprintf(stderr, "%s: INVALID\n", fieldname);
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user