python-bitcoinlib
python-bitcoinlib copied to clipboard
verify failed when run spend-p2pkh-txout.py/spend-p2sh-txout.py
trafficstars
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