Skip to content

Commit 7ab9ef9

Browse files
authored
[bip174] Fix typo in signer pseudo code
1 parent 8f92057 commit 7ab9ef9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bip-0174.mediawiki

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ sign_non_witness(script_code, i):
337337

338338
for input,i in enumerate(psbt.inputs):
339339
if non_witness_utxo.exists:
340-
assert(sha256d(non_witness_utxo) == psbt.tx.innput[i].prevout.hash)
340+
assert(sha256d(non_witness_utxo) == psbt.tx.input[i].prevout.hash)
341341
if redeemScript.exists:
342342
assert(non_witness_utxo.vout[psbt.tx.input[i].prevout.n].scriptPubKey == P2SH(redeemScript))
343343
sign_non_witness(redeemScript)

0 commit comments

Comments
 (0)