From 02c319f8508bc96cd2e39c22ed8c746be958a94a Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Sat, 29 Oct 2016 15:11:56 +0200 Subject: [PATCH] trezorctl: accept also cointype/a/b/c as get_address path --- trezorlib/client.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/trezorlib/client.py b/trezorlib/client.py index a73bbddbc8..3b5fa6c659 100644 --- a/trezorlib/client.py +++ b/trezorlib/client.py @@ -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