I've noticed that whisper persists symmetric and asymmetric keys created in the geth console by referencing their id
, but where does it save these keys, and can the directory be configured? Geth's --datadir
seems like the obvious place where they would be saved, but I've looked and it doesn't seem like they're saved there
2 Answers
Credit to Gitter's @gluk256
for the answer, which I've paraphrased below.
Whisper by default stores the keys in memory and does not allow the user to configure the key storage location. Instead, key storage is left to the dapp to handle.
-
I think you should give credit to @Ladek 's answer, since it's the same as yours, and was submitted first.– feuGeneMar 7, 2018 at 19:34
-
@feuGene they copied the Gitter user's answer straight from the chat and gave no credit to them. My answer gives that original user credit.– thanosMar 7, 2018 at 20:43
It's the dapp layer task. The dapp should store the keys and pass them to the whisper layer.