Open wizardofozzie opened 7 years ago
====================================================================== FAIL: test_all (__main__.TestTransaction) ---------------------------------------------------------------------- Traceback (most recent call last): File "/private/var/mobile/Containers/Shared/AppGroup/AA78F2EC-3EE8-40F4-A318-8A9AB1BCB5FF/Pythonista3/Documents/pybitcointools-vbuterin/test.py", line 179, in test_all self.assertTrue(verify_tx_input(tx1, 0, mscript, sig1, pubs[1]), "Verification Error") AssertionError: Verification Error ====================================================================== FAIL: test_all (__main__.TestTransactionSignVerify) ---------------------------------------------------------------------- Traceback (most recent call last): File "/private/var/mobile/Containers/Shared/AppGroup/AA78F2EC-3EE8-40F4-A318-8A9AB1BCB5FF/Pythonista3/Documents/pybitcointools-vbuterin/test.py", line 133, in test_all "Verification error" AssertionError: Verification error ---------------------------------------------------------------------- Ran 18 tests in 6.944s FAILED (failures=2, errors=2)
I'm quite certain this will be an issue with the implementation of ecdsa_sign whereby s = s if s < N//2 else N-s
ecdsa_sign
s = s if s < N//2 else N-s
Fixed! See my fork code and here
I'm quite certain this will be an issue with the implementation of
ecdsa_sign
wherebys = s if s < N//2 else N-s