diff options
| author | Stepan Snigirev <[email protected]> | 2020-11-05 23:16:55 +0100 |
|---|---|---|
| committer | Stepan Snigirev <[email protected]> | 2020-11-05 23:16:55 +0100 |
| commit | 568a1d72619371a45b14a8356d3f80bd0c0efabc (patch) | |
| tree | 273fb3feebb8377435edbd2a4c2ded16836954e8 /test/functional/test_framework | |
| parent | Merge #20316: test: Fix wallet_multiwallet test issue on Windows (diff) | |
| download | discoin-568a1d72619371a45b14a8356d3f80bd0c0efabc.tar.xz discoin-568a1d72619371a45b14a8356d3f80bd0c0efabc.zip | |
fix ecdsa verify in test framework
Diffstat (limited to 'test/functional/test_framework')
| -rw-r--r-- | test/functional/test_framework/key.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/test_framework/key.py b/test/functional/test_framework/key.py index a6bc18798..abf250715 100644 --- a/test/functional/test_framework/key.py +++ b/test/functional/test_framework/key.py @@ -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 |