Skip to content

Commit 9708ee3

Browse files
ddustinrustyrussell
authored andcommitted
secp256k1 pubkey constant fix
Spotted a number being used instead of the macro constant. Changelog-None
1 parent e66653f commit 9708ee3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bitcoin/pubkey.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ char *fmt_secp256k1_pubkey(const tal_t *ctx, const secp256k1_pubkey *key)
8383

8484
int pubkey_cmp(const struct pubkey *a, const struct pubkey *b)
8585
{
86-
u8 keya[33], keyb[33];
86+
u8 keya[PUBKEY_CMPR_LEN], keyb[PUBKEY_CMPR_LEN];
8787
pubkey_to_der(keya, a);
8888
pubkey_to_der(keyb, b);
8989
return memcmp(keya, keyb, sizeof(keya));

0 commit comments

Comments
 (0)