diff --git a/psbt.py b/psbt.py index 8a4d62b..9263808 100644 --- a/psbt.py +++ b/psbt.py @@ -743,9 +743,9 @@ def __init__(self, serialized_psbt): # More than one partial sig should not be found without a redeemScript or # witnessScript. Must be missing a script continue - sec = k[1:] - sig = i[k] - found_sec = True + sec = k[1:] + sig = i[k] + found_sec = True # Take the SEC and sig and construct the scriptSig # Add key-type PSBT_IN_FINAL_SCRIPTSIG to PSBT with the finalized scriptSig as its value i[PSBT_IN_FINAL_SCRIPTSIG] = Script([sig, sec]).serialize()