1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-17 10:51:00 +00:00

feat(legacy): add support for Taproot descriptors

This commit is contained in:
Pavol Rusnak 2021-07-15 22:52:30 +02:00 committed by Andrew Kozlik
parent fea240ed40
commit 2035ff4569
2 changed files with 3 additions and 1 deletions

View File

@ -0,0 +1 @@
Support for Taproot descriptors

View File

@ -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 &&