mirror of
https://github.com/SeedSigner/seedsigner.git
synced 2026-10-05 23:18:25 +00:00
taproot_bip32_derivations won't be populated for non-change p2tr addresses and therefor my_pubkey will be None.
The additional indendation of script.p2tr(my_pubkey) will make it so it's only called when my_pubkey is not None.
This commit is contained in:
@@ -148,7 +148,7 @@ class PSBTParser():
|
||||
leaf_hashes, derivation = list(out.taproot_bip32_derivations.values())[0]
|
||||
der = derivation.derivation
|
||||
my_pubkey = self.root.derive(der)
|
||||
sc = script.p2tr(my_pubkey)
|
||||
sc = script.p2tr(my_pubkey)
|
||||
|
||||
if sc.data == self.psbt.tx.vout[i].script_pubkey.data:
|
||||
is_change = True
|
||||
|
||||
Reference in New Issue
Block a user