Skip to content

Lesson 5 : what contain encryptedKey.json #599

Answered by alymurtazamemon
wilonweb asked this question in Q&A
Discussion options

You must be logged in to vote

@NinjaTurtles-cloud

Writing important things that we do not want to show to others, we can write them to the .env file and we do when it comes to URLs, API keys, etc. But when it comes to the wallet's private key (especially Original Wallet), we should avoid writing it inside and should write it in a more secure way. And that secure way Patric is shown with encrptedKye.json example.

The way we do this is that we first write our PRIVATE KEY in .env file and generate the encrypted key with ethers package and secure it with a password (exact steps you can see in the video), after that we remove our private key form .env file and we run our script with the help of terminal where we pass that …

Replies: 1 comment 1 reply

Comment options

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

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