Skip to content
This repository has been archived by the owner on Jun 5, 2019. It is now read-only.

./cmdtr.py get_address -n does not generate valid addresses for non m/44'/0' coin types #14

Closed
aussiehash opened this issue Sep 3, 2014 · 1 comment

Comments

@aussiehash
Copy link

using the command

./cmdtr.py get_address -n "44'/0'/0'/0/0" 

gives equivalent results to mytrezor.com and electrum+trezor plugin, for all m/44'/0'/[A]'/[C]/[K] addresses

However using non-bitcoin cointypes from here does not work. http://doc.satoshilabs.com/slips/slip-0044.html

./cmdtr.py get_address -n "44'/1'/0'/0/0"

gives different addresses to test.mytrezor.com, and

./cmdtr.py get_address -n "44'/2'/0'/0/0"

should give a Litecoin address starting with "L" but instead gives an address starting with "1"

I've also tried the non-bitcoin numbers from get_features which also do not produce the desired results

$ ./cmdtr.py get_features

coins {
  coin_name: "Bitcoin"
  coin_shortcut: "BTC"
  address_type: 0
  maxfee_kb: 10000
}
coins {
  coin_name: "Testnet"
  coin_shortcut: "TEST"
  address_type: 111
  maxfee_kb: 10000000
}
coins {
  coin_name: "Namecoin"
  coin_shortcut: "NMC"
  address_type: 52
  maxfee_kb: 10000000
}
coins {
  coin_name: "Litecoin"
  coin_shortcut: "LTC"
  address_type: 48
  maxfee_kb: 10000000
}
@aussiehash aussiehash changed the title ./cmdtr.py get_address -n does not generate valid addresses for non m/44'/0' addresses ./cmdtr.py get_address -n does not generate valid addresses for non m/44'/0' coin types Sep 3, 2014
@prusnak
Copy link
Member

prusnak commented Sep 3, 2014

If you are not using Bitcoin you have to pass coin as a parameter like this:

$ ./cmdtr.py get_address -n "44'/1'/0'/0/0" -c Testnet
$ ./cmdtr.py get_address -n "44'/2'/0'/0/0" -c Litecoin

@prusnak prusnak closed this as completed Sep 3, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants