diff --git a/core/.changelog.d/1710.added b/core/.changelog.d/1710.added new file mode 100644 index 0000000000..ec233c514a --- /dev/null +++ b/core/.changelog.d/1710.added @@ -0,0 +1 @@ +Support for Taproot descriptors diff --git a/core/src/apps/bitcoin/get_public_key.py b/core/src/apps/bitcoin/get_public_key.py index 2d4b27e16c..91259bb0ad 100644 --- a/core/src/apps/bitcoin/get_public_key.py +++ b/core/src/apps/bitcoin/get_public_key.py @@ -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)