python-bitcoinlib icon indicating copy to clipboard operation
python-bitcoinlib copied to clipboard

verify failed when run spend-p2pkh-txout.py/spend-p2sh-txout.py

Open goldenfiredo opened this issue 7 years ago • 0 comments

in spend-p2pkh-txout.py line 67: sig = seckey.sign(sighash) + bytes([SIGHASH_ALL]) should be: sig = seckey.sign(sighash) + b'\x01'

otherwise VerifySignature will fail. The same issue exists in spend-p2sh-txout.py

goldenfiredo avatar Apr 10 '18 13:04 goldenfiredo