mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-27 01:48:17 +00:00
trezorctl: accept also cointype/a/b/c as get_address path
This commit is contained in:
parent
68d490917f
commit
02c319f850
@ -389,6 +389,11 @@ class ProtocolMixin(object):
|
|||||||
if n[0] == 'm':
|
if n[0] == 'm':
|
||||||
n = n[1:]
|
n = n[1:]
|
||||||
|
|
||||||
|
# coin_name/a/b/c => 44'/SLIP44_constant'/a/b/c
|
||||||
|
coins = { "Bitcoin": 0, "Testnet": 1, "Namecoin": 7, "Litecoin": 2, "Dogecoin": 3, "Dash": 5, "Zcash": 133, }
|
||||||
|
if n[0] in coins:
|
||||||
|
n = ["44'", "%d'" % coins[n[0]] ] + n[1:]
|
||||||
|
|
||||||
path = []
|
path = []
|
||||||
for x in n:
|
for x in n:
|
||||||
prime = False
|
prime = False
|
||||||
|
Loading…
Reference in New Issue
Block a user