mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 01:43:36 +01:00
secp256k1 pubkey constant fix
Spotted a number being used instead of the macro constant. Changelog-None
This commit is contained in:
parent
e66653fa1d
commit
9708ee3166
@ -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)
|
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(keya, a);
|
||||||
pubkey_to_der(keyb, b);
|
pubkey_to_der(keyb, b);
|
||||||
return memcmp(keya, keyb, sizeof(keya));
|
return memcmp(keya, keyb, sizeof(keya));
|
||||||
|
Loading…
Reference in New Issue
Block a user