iancoleman / bip39

A web tool for converting BIP39 mnemonic codes
https://iancoleman.io/bip39/
MIT License
3.57k stars 1.45k forks source link

Generating addresses for BTG does not seem to work #147

Closed mr10008 closed 6 years ago

mr10008 commented 6 years ago

Thanks for a great tool!

Just playing with it and trying to see if the addresses generated by it for different coins correspond to what I'm getting in my Ledger Nano. Looks OK except for BTG that is supposed to have Coin code 156 and not 0 and addresses starting on letter A - this is under BIP 44.

Under BIP 49 the addresses start with A so that's OK. but the Coin code is still 0 - why?

iancoleman commented 6 years ago

Seems like there are a few different types of bitcoin gold:

From ledger-wallet-chrome/networks.coffee

bitcoin_gold_unsplit:
bip44_coin_type: '0'

bitcoin_gold_split:
bip44_coin_type: '156'

bitcoin_gold_unsplit_segwit:
bip44_coin_type: '0'

bitcoin_gold_split_segwit:
bip44_coin_type: '156'

If someone from the bitcoingold community can resolve this I'd be happy to include the changes, but altcoins are not something I am tracking or updating personally.

iancoleman commented 6 years ago

If this is an issue for btg users the btg community can submit a pull request fixing it.