1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-23 07:58:09 +00:00

trezorctl: accept also cointype/a/b/c as get_address path

This commit is contained in:
Pavol Rusnak 2016-10-29 15:11:56 +02:00
parent 68d490917f
commit 02c319f850
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -389,6 +389,11 @@ class ProtocolMixin(object):
if n[0] == 'm':
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 = []
for x in n:
prime = False