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:
commit
9e7d213e82
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue