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?
1 Answer
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.
-
-
1Depends on the node and OS. Parity: ethereum.stackexchange.com/questions/6471/… Geth: ethereum.stackexchange.com/questions/108/… Commented Jul 17, 2018 at 18:31