go-hdwallet icon indicating copy to clipboard operation
go-hdwallet copied to clipboard

Invalid private key generation

Open klim0v opened this issue 5 years ago • 2 comments

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 avatar Feb 13 '20 23:02 klim0v

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

klim0v avatar Mar 03 '20 13:03 klim0v

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

klim0v avatar Mar 03 '20 14:03 klim0v