foxnut / go-hdwallet

A multi-cryptocurrency HD wallet implementated by Golang.
MIT License
105 stars 56 forks source link

Invalid private key generation #2

Open klim0v opened 4 years ago

klim0v commented 4 years ago
mnemonic := "real town addict extend shoot name disagree vital turn live can tip"
master, err := hdwallet.NewKey(hdwallet.Mnemonic(mnemonic))
wallet, _ = master.GetWallet(hdwallet.CoinType(hdwallet.ETH))
pk, _ = wallet.PrivateKey()

got c64f0b3e510d03adef3f057d1814bdc8a7f904caafa6928550fc10670dcff031 wanted c29cd818232f40614691a58c9afcbd5518b539cb135d73b1d9e26d5f5f5dcbbe (https://iancoleman.io/bip39/)

klim0v commented 4 years ago

https://github.com/btcsuite/btcutil/pull/159

klim0v commented 4 years ago

it was a mistake on the m/44H/60H/0H path