Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clarify that 0x prefix is needed for imported private keys
I run an issue that `web3.eth.accounts.privateKeyToAccount` private key format was behaving differently from other Ethereum packages * truffle-hd-wallet * ethereumjs-wallet This may lead to a problem that users are freaking out and think they lost their account when dealing with raw private keys. web3.js generated different accounts from the other packages because private key was handled differently. This was because of the disagreement if hexadecimal private keys should be prefixed with `0x` or not. I clarified this in the documentation and also added a pointer about creating a HD wallet.
- Loading branch information