Skip to content

Best way to handle private key management in ethers.js (production solution) #3054

Answered by zemse
fabioeletto asked this question in Q&A
Discussion options

You must be logged in to vote

Can you provide more details on your use case and production environment?

  • For frontends, it is not really a safe way, since browser extensions get access to the DOM and execute JS. So the user has to be careful to not install creepy plugins.
  • For backends, if just one person is going to access a server/system, with limited amount of funds, then a .env file should be pretty fine. A very safe way would be to have the private key in hardware, e.g. using AWS KMS.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@fabioeletto
Comment options

@zemse
Comment options

zemse Jun 10, 2022
Collaborator

Answer selected by fabioeletto
Comment options

You must be logged in to vote
1 reply
@ricmoo
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants