Open WHeB opened 5 years ago
How to get mnemonic for private key import?Thank you!
You cannot derive a mnemonic from a private key.
A mnemonic phrase is a one-way relationship, given a mnemonic, you can derive any number of private keys at different paths, but given a private key there is no way to determine what mnemonic (if any) was used to derive it.
Generally, you should use a random price of entropy to generate your mnemonic, which you can then derive private keys from and use.
I have fully understood the mnemonic, private key and Keystore. Thank you for your help! I closed this issue.
Originally posted by @CivelXu in https://github.com/ethers-io/ethers.objc/issues/12#issuecomment-351961313