From 2035ff45690ebae18d143ef5ac3e7d05a213ae0f Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Thu, 15 Jul 2021 22:52:30 +0200 Subject: [PATCH] feat(legacy): add support for Taproot descriptors --- legacy/firmware/.changelog.d/1710.added | 1 + legacy/firmware/fsm_msg_coin.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 legacy/firmware/.changelog.d/1710.added diff --git a/legacy/firmware/.changelog.d/1710.added b/legacy/firmware/.changelog.d/1710.added new file mode 100644 index 0000000000..ec233c514a --- /dev/null +++ b/legacy/firmware/.changelog.d/1710.added @@ -0,0 +1 @@ +Support for Taproot descriptors diff --git a/legacy/firmware/fsm_msg_coin.h b/legacy/firmware/fsm_msg_coin.h index e62bbd7ebf..c9e71d998c 100644 --- a/legacy/firmware/fsm_msg_coin.h +++ b/legacy/firmware/fsm_msg_coin.h @@ -61,7 +61,8 @@ void fsm_msgGetPublicKey(const GetPublicKey *msg) { } if (coin->xpub_magic && (script_type == InputScriptType_SPENDADDRESS || - script_type == InputScriptType_SPENDMULTISIG)) { + script_type == InputScriptType_SPENDMULTISIG || + script_type == InputScriptType_SPENDTAPROOT)) { hdnode_serialize_public(node, fingerprint, coin->xpub_magic, resp->xpub, sizeof(resp->xpub)); } else if (coin->has_segwit &&