We are using web3Auth-modal SDK, and we want to export the wallet private key in a secure manner like wallet.json. We need something similar to the below code,
this is in node.js
e = require(“ethers”);
key = “”;
wallet = new e.Wallet(key);
wallet.encrypt(“”).then((str) => console.log(JSON.stringify(str)));
Is there a method available, by which user can export their password-protected private key more securely?
We would like to use this similar to described in this link
Hi @mkrana173,
Thanks for your question. As of now, we don’t have a functionality that can do this on our side. But one can develop something on their side to export the private key and write it to a password protected json.
This can be good feature request. Although, it is not yet in the cards.