Closed throughnothing closed 8 years ago
The Mnemonic needs the wordlist as an additional input. Also HDPrivateKey.fromSeed() looks pretty one-way thanks to a hash function.
Not possible. The mnemonic sentence is hashed to arrive at the seed that is used to generate the HDPrivateKey. So no way to go backwards.
https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki
This issue should be closed.
@nilnullzip thanks, that definitely makes sense, I didn't realize that. So wallets that enable you to see the mnemonic seed if/when you want, have to store that mnemonic data separately, in addition to the Private Key (or re-generate the key from the mnemonic every load).
If you've already generated a
bitcore.HDPrivateKey()
, should there be a way to pass it intoMnemonic
to get the mnemonic phrase for it. It doesn't seem like you can do that currently, you have to generate theHDPrivateKey
withMnemonic
.