Closed noot closed 4 years ago
I don't think we want to write this to the DB at all, we want to encrypt this file put it in the local Keystore and have it protected with your inputted passphrase similarly the way geth does it.
@dutterbutter ok but where is the local keystore saved when we shut down the node? geth keeps track of your accounts between restarts
@noot I think ~/.ethereum/keystore
so for us ~/.gossamer/keystore
true, that makes more sense
need to add a command that allows for keys to be generated/imported and saved in the
dbkeystore directory as encrypted keystore filessomething like this to generate a new account, which will generate a new keypair, encrypt the private key, save the encrypted private key to a file (name=public address?)
something like this to import a key (assuming file is encrypted json)