mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-18 12:28:09 +00:00
feat(core): add support for Taproot descriptors
This commit is contained in:
parent
4ed9f00c73
commit
fea240ed40
1
core/.changelog.d/1710.added
Normal file
1
core/.changelog.d/1710.added
Normal file
@ -0,0 +1 @@
|
||||
Support for Taproot descriptors
|
@ -20,7 +20,12 @@ async def get_public_key(ctx: wire.Context, msg: GetPublicKey) -> PublicKey:
|
||||
node = keychain.derive(msg.address_n)
|
||||
|
||||
if (
|
||||
script_type in (InputScriptType.SPENDADDRESS, InputScriptType.SPENDMULTISIG)
|
||||
script_type
|
||||
in (
|
||||
InputScriptType.SPENDADDRESS,
|
||||
InputScriptType.SPENDMULTISIG,
|
||||
InputScriptType.SPENDTAPROOT,
|
||||
)
|
||||
and coin.xpub_magic is not None
|
||||
):
|
||||
node_xpub = node.serialize_public(coin.xpub_magic)
|
||||
|
Loading…
Reference in New Issue
Block a user