1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-17 03:48:09 +00:00

add more coins to coin expansion

This commit is contained in:
Pavol Rusnak 2017-03-04 16:20:38 +01:00
parent 3ccc412de4
commit 4758eb7b07
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -460,7 +460,17 @@ class ProtocolMixin(object):
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, }
coins = {
"Bitcoin": 0,
"Testnet": 1,
"Namecoin": 7,
"Litecoin": 2,
"Dogecoin": 3,
"Dash": 5,
"Ether": 60,
"EtherClassic": 61,
"Zcash": 133,
}
if n[0] in coins:
n = ["44'", "%d'" % coins[n[0]] ] + n[1:]