Account from encrypted JSON, simnilar to ethers.Wallet.fromEncryptedJsonSync
#3269
Unanswered
alexroan
asked this question in
Idea / Feature Request
Replies: 2 comments 3 replies
-
|
I can work on this but I definitely wouldn’t recommend storing the password in a .env file as this is analogous to storing your private key in a .env file (a malicious actor can use the password to decode). The better approach would be to require user input for the password? |
Beta Was this translation helpful? Give feedback.
2 replies
-
|
When support keystore in Viem @jxom |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Storing private keys in a .env file is insecure/prone to developer human error.
It would be great if there were a function within Accounts that was able to decrypt an encrypted JSON key, using a password that could be stored in a .env file.
Ethers currently supports this with
ethers.Wallet.fromEncryptedJsonSyncPrevious discussion raised here, but unanswered: #1614
Beta Was this translation helpful? Give feedback.
All reactions