diff --git a/ports/stm32/boards/Passport/modules/psbt.py b/ports/stm32/boards/Passport/modules/psbt.py index 1dbdaf0e0..80eb24874 100644 --- a/ports/stm32/boards/Passport/modules/psbt.py +++ b/ports/stm32/boards/Passport/modules/psbt.py @@ -959,6 +959,9 @@ def __init__(self): self.hashOutputs = None # taproot additions to reused segwit hashes + self.tap_hashPrevouts = None + self.tap_hashSequence = None + self.tap_hashOutputs = None self.hashAmounts = None self.hashScriptPubkeys = None @@ -1678,7 +1681,7 @@ def make_txn_taproot_sighash(self, input_idx, sighash_type, annex=None, ext_flag assert sighash_type == SIGHASH_DEFAULT - if self.hashPrevouts is None: + if self.tap_hashPrevouts is None: # First time thru, we'll need to hash up this stuff. prevouts = trezorcrypto.sha256() @@ -1694,10 +1697,10 @@ def make_txn_taproot_sighash(self, input_idx, sighash_type, annex=None, ext_flag script_pubkeys.update(ser_string(utxo.scriptPubKey)) sequences.update(pack("