Settings

Theme

Persistent Peer IDs in libp2p JavaScript

gist.github.com

12 points by Realman78 5 months ago · 3 comments

Reader

2color 5 months ago

There's a `loadOrCreateSelfKey` function which you can use to load the key from a persistent datastore (fs).

It's documented here: https://github.com/libp2p/js-libp2p/tree/4420fad686921f88785...

I'll be sure to update the docs to include an example in the config docs.

lukaivanic 5 months ago

Damn that's nice, saved me at least a couple of hours of work

chunkz_fan 5 months ago

this is nowhere to be found in the docs. great stuff

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection