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

Redundant isPeerId function #88

Open vasco-santos opened 5 years ago

vasco-santos commented 5 years ago

After adding the class-is module with js-peer-id#84, the isPeerId function is redundant and can be removed js-peer-id/index.js#L291-L295.

Note: this was not removed with the addition of class-is since it is a breaking change and will need to change all its usages.