mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-13 06:39:48 +02:00
fix ecdsa verify in test framework
This commit is contained in:
parent
f5cdc290d5
commit
568a1d7261
@ -322,7 +322,7 @@ class ECPubKey():
|
||||
u1 = z*w % SECP256K1_ORDER
|
||||
u2 = r*w % SECP256K1_ORDER
|
||||
R = SECP256K1.affine(SECP256K1.mul([(SECP256K1_G, u1), (self.p, u2)]))
|
||||
if R is None or R[0] != r:
|
||||
if R is None or (R[0] % SECP256K1_ORDER) != r:
|
||||
return False
|
||||
return True
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user