1
0
Fork 0
mirror of https://github.com/bitcoin/bips.git synced 2025-03-13 11:09:16 +01:00

Merge pull request #796 from lukechilds/patch-2

[bip174] Fix typo in signer pseudo code
This commit is contained in:
Luke Dashjr 2019-09-19 22:18:45 +00:00 committed by GitHub
commit 9e7d213e82
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -349,7 +349,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)