go-hdwallet
go-hdwallet copied to clipboard
Invalid private key generation
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/)
https://github.com/btcsuite/btcutil/pull/159
it was a mistake on the m/44H/60H/0H path