libp2p / js-libp2p

The JavaScript Implementation of libp2p networking stack.
https://libp2p.io
Other
2.3k stars 440 forks source link

added exportToJSON #2580

Closed st3b1t closed 2 weeks ago

st3b1t commented 3 months ago

if exists an createFromJSON() method we need of an exportToJSON() that use same encoding

achingbrain commented 2 weeks ago

Thanks for opening this. The @libp2p/peer-id-factory module was removed in the recent 2.x.x release.

The createFromJSON function itself was only used to load test fixtures. It's not used here any more, if you need this in your own project you can define it there.