0

I am using 'ethers' for wallet. And I want private key for login to wallet by password. How can I get that.

2
  • Could you clarify what is the problem? You can't derive the private key of a user by using an npm package. Oct 20, 2022 at 8:51
  • I am creating an EVM based wallet and for user login to wallet we need user private key Oct 20, 2022 at 9:38

1 Answer 1

0

If by "password" you mean "mnemonic", then https://docs.ethers.io/v5/api/signer/#Wallet.fromMnemonic. If you mean like, the users metamask password, it's not possible.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.