ethers.objc icon indicating copy to clipboard operation
ethers.objc copied to clipboard

I have fully understood the mnemonic, private key and Keystore.

Open WHeB opened this issue 6 years ago • 2 comments

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

WHeB avatar Jul 09 '19 06:07 WHeB

How to get mnemonic for private key import?Thank you!

WHeB avatar Jul 09 '19 06:07 WHeB

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.

ricmoo avatar Jul 09 '19 06:07 ricmoo