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

Add hasInlinePublicKey method #131

Closed vasco-santos closed 3 years ago

vasco-santos commented 4 years ago

PeerId should provide an easy to to check if it has an inline public key.

Context: https://github.com/libp2p/js-libp2p/pull/669#issuecomment-669874995