Closed bitcoinbrisbane closed 5 years ago
The function getPrivateKeyFromMnemonic https://github.com/binance-chain/javascript-sdk/blob/master/src/crypto/index.js#L279 will only ever return address_index 0, making it pretty useless.
getPrivateKeyFromMnemonic
const HDPATH = "44'/714'/0'/0/0" m / purpose' / coin_type' / account' / change / address_index
const HDPATH = "44'/714'/0'/0/0"
m / purpose' / coin_type' / account' / change / address_index
https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki
Thanks
The function
getPrivateKeyFromMnemonic
https://github.com/binance-chain/javascript-sdk/blob/master/src/crypto/index.js#L279 will only ever return address_index 0, making it pretty useless.const HDPATH = "44'/714'/0'/0/0"
m / purpose' / coin_type' / account' / change / address_index
https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki