diff --git a/core/.changelog.d/4271.added b/core/.changelog.d/4271.added new file mode 100644 index 0000000000..25553a17cb --- /dev/null +++ b/core/.changelog.d/4271.added @@ -0,0 +1 @@ +Add P2WSH support for Unchained BIP32 paths. diff --git a/core/src/apps/bitcoin/keychain.py b/core/src/apps/bitcoin/keychain.py index 13c81d22d2..c6fbdecf04 100644 --- a/core/src/apps/bitcoin/keychain.py +++ b/core/src/apps/bitcoin/keychain.py @@ -158,6 +158,9 @@ def validate_path_against_script_type( if slip44 == SLIP44_BITCOIN: append(PATTERN_GREENADDRESS_A) append(PATTERN_GREENADDRESS_B) + if coin.coin_name in BITCOIN_NAMES and multisig: + append(PATTERN_UNCHAINED_HARDENED) + append(PATTERN_UNCHAINED_UNHARDENED) elif coin.taproot and script_type == InputScriptType.SPENDTAPROOT: append(PATTERN_BIP86)