[bip174] Fix typo in signer pseudo code

This commit is contained in:
Luke Childs 2019-06-26 16:47:04 +07:00 committed by GitHub
parent 8f9205760e
commit 7ab9ef95c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -337,7 +337,7 @@ sign_non_witness(script_code, i):
for input,i in enumerate(psbt.inputs):
if non_witness_utxo.exists:
assert(sha256d(non_witness_utxo) == psbt.tx.innput[i].prevout.hash)
assert(sha256d(non_witness_utxo) == psbt.tx.input[i].prevout.hash)
if redeemScript.exists:
assert(non_witness_utxo.vout[psbt.tx.input[i].prevout.n].scriptPubKey == P2SH(redeemScript))
sign_non_witness(redeemScript)