Storing/Exporting local keypair #4376
-
I want to know if there is a recommended way to export/store a keypair in libp2p. I ask this as my current idea for a project requires a persistent identity for a user/peer even after they restart their client. I've already looked at the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
This sounds like a bug to me. Can you reproduce this with a unit test and open a PR?
It is recommended to use the |
Beta Was this translation helpful? Give feedback.
This sounds like a bug to me. Can you reproduce this with a unit test and open a PR?
It is recommended to use the
{to,from}_protobuf_encoding
functions because those "tag" the secret key bytes with their type and allow us correctly load them again.