mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-17 11:58:13 +00:00
add more coins to coin expansion
This commit is contained in:
parent
3ccc412de4
commit
4758eb7b07
@ -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:]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user