2

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 2

1

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.

2
  • I think you should give credit to @Ladek 's answer, since it's the same as yours, and was submitted first.
    – feuGene
    Mar 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.
    – thanos
    Mar 7, 2018 at 20:43
0

It's the dapp layer task. The dapp should store the keys and pass them to the whisper layer.

2
  • There's two parts to the question, where the keys are stored and if the directory can be configured.
    – thanos
    Feb 14, 2018 at 19:04
  • Upvoted, but a citation/reference (even to source code) would be nice.
    – feuGene
    Mar 7, 2018 at 19:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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