Skip to content

Invalid password #6535

Closed Answered by LearnerVii
LearnerVii asked this question in Q&A
Discussion options

You must be logged in to vote

Got the solution.
I have passed wallet.encrypt() args in reverse order.
it has to be password and then key.
const encryptedJsonKey = await wallet.encrypt(
process.env.PRIVATE_KEY_PASSWORD,
process.env.PRIVATE_KEY
);

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by LearnerVii
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant