edunuzzi / go-bip44

A Golang implementation of the BIP44 for Hierarchical Deterministic (HD) addresses.
MIT License
25 stars 8 forks source link

Invalid addresses? #1

Open IvRRimum opened 5 years ago

IvRRimum commented 5 years ago

Hello,

To put it simple, i use this tool https://iancoleman.io/bip39/ to verify the addresses generated.

bip44.NewKeyFromSeedHex(seedHex, bip44.MAINNET) where seedHex is BIP39 Seed from the website above(after i entered my mnemonics). At the bottom of the page you can see the address that should be generated, but they differ from the ones i get from this tool.

So, i guess my question is: Is this tool or the test website in wrong here?

Thanks!

IvRRimum commented 5 years ago

What is interesting, if i use bip44.NewAccountKeyFromXKey(publicKey) where the publicKey is the Account Extended Public Key(from the website above), i get correct addresses generated.

edunuzzi commented 5 years ago

Hi @IvRRimum,

I managed to reproduce your issue. Indeed, it seems that the seed parsing is behaving weirdly. I will look into it and i will let you know once the issue has been solved!

Thanks a lot!