From 9708ee316646692b283baadea983b4b4d44a65ac Mon Sep 17 00:00:00 2001 From: Dusty Daemon Date: Fri, 15 Nov 2024 17:55:52 -0500 Subject: [PATCH] secp256k1 pubkey constant fix Spotted a number being used instead of the macro constant. Changelog-None --- bitcoin/pubkey.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitcoin/pubkey.c b/bitcoin/pubkey.c index 3d1a0432f..7fa7402c4 100644 --- a/bitcoin/pubkey.c +++ b/bitcoin/pubkey.c @@ -83,7 +83,7 @@ char *fmt_secp256k1_pubkey(const tal_t *ctx, const secp256k1_pubkey *key) int pubkey_cmp(const struct pubkey *a, const struct pubkey *b) { - u8 keya[33], keyb[33]; + u8 keya[PUBKEY_CMPR_LEN], keyb[PUBKEY_CMPR_LEN]; pubkey_to_der(keya, a); pubkey_to_der(keyb, b); return memcmp(keya, keyb, sizeof(keya));