3

When I use this web3.personal.importRawKey(pkey, passPhrase); Where does it store the private key I import? And How can I manually delete it?

3

web3 doesn't store the key, it sends an RPC request to the node that it is connected to, using the personal API. The node then stores the key in its keystore, encrypted with passPhrase.

To delete the key you need to remove it from the node's keystore manually, by deleting the file from the directory. This cannot be done via web3 or RPC commands.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.