1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-28 02:18:20 +00:00

feat(core): remove deprecated path

This commit is contained in:
Ondřej Vejpustek 2024-11-12 13:34:32 +01:00
parent 7fd170967d
commit 7c50d89873
3 changed files with 1 additions and 5 deletions

View File

@ -0,0 +1 @@
Removed deprecated Unchained Capital's multisig path.

View File

@ -80,7 +80,6 @@ PATTERN_UNCHAINED_HARDENED = (
PATTERN_UNCHAINED_UNHARDENED = ( PATTERN_UNCHAINED_UNHARDENED = (
"m/45'/coin_type/account/[0-1000000]/change/address_index" "m/45'/coin_type/account/[0-1000000]/change/address_index"
) )
PATTERN_UNCHAINED_DEPRECATED = "m/45'/coin_type'/account'/[0-1000000]/address_index"
# Model 1 firmware signing. # Model 1 firmware signing.
# 826421588 is ASCII string "T1B1" as a little-endian 32-bit integer. # 826421588 is ASCII string "T1B1" as a little-endian 32-bit integer.
@ -138,7 +137,6 @@ def validate_path_against_script_type(
if coin.coin_name in BITCOIN_NAMES: if coin.coin_name in BITCOIN_NAMES:
append(PATTERN_UNCHAINED_HARDENED) append(PATTERN_UNCHAINED_HARDENED)
append(PATTERN_UNCHAINED_UNHARDENED) append(PATTERN_UNCHAINED_UNHARDENED)
append(PATTERN_UNCHAINED_DEPRECATED)
elif coin.segwit and script_type == InputScriptType.SPENDP2SHWITNESS: elif coin.segwit and script_type == InputScriptType.SPENDP2SHWITNESS:
append(PATTERN_BIP49) append(PATTERN_BIP49)
@ -207,7 +205,6 @@ def _get_schemas_for_coin(
PATTERN_CASA_UNHARDENED, PATTERN_CASA_UNHARDENED,
PATTERN_UNCHAINED_HARDENED, PATTERN_UNCHAINED_HARDENED,
PATTERN_UNCHAINED_UNHARDENED, PATTERN_UNCHAINED_UNHARDENED,
PATTERN_UNCHAINED_DEPRECATED,
) )
) )

View File

@ -85,8 +85,6 @@ VECTORS_MULTISIG = ( # paths, address_index
), ),
# Unchained unhardened m/45'/coin_type/account/[0-1000000]/change/address_index # Unchained unhardened m/45'/coin_type/account/[0-1000000]/change/address_index
(("m/45h/0/63/1000000", "m/45h/0/62/1000000", "m/45h/0/61/1000000"), [0, 255]), (("m/45h/0/63/1000000", "m/45h/0/62/1000000", "m/45h/0/61/1000000"), [0, 255]),
# Unchained deprecated m/45'/coin_type'/account'/[0-1000000]/address_index
(("m/45h/0h/63h/1000000", "m/45h/0h/62h/1000000", "m/45h/0/61/1000000"), [255]),
# Casa Paths # Casa Paths
(("m/45h/0/60/1", "m/45h/1/60/0", "m/45h/2/60/0"), [255]), (("m/45h/0/60/1", "m/45h/1/60/0", "m/45h/2/60/0"), [255]),
) )