libp2p / js-peer-id

peer-id implementation in JavaScript. Deprecated; use https://github.com/libp2p/js-libp2p-peer-id instead.
https://github.com/libp2p/js-libp2p-peer-id
MIT License
80 stars 44 forks source link

How to get version of peerId with an inline public key? #92

Closed rmisio closed 5 years ago

rmisio commented 5 years ago

The Go implementation of our app is switching to using peerId's with inline public keys (i.e. instead of prefaced with qM, they'll be prefaced with 12D3Koo).

I'm not seeing any method in the library to output a peerId in that format. Is there any way to do it?

rmisio commented 5 years ago

Looks like the latest version uses inline keys by default.