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

fix: decode more multibase types #152

Closed achingbrain closed 3 years ago

achingbrain commented 3 years ago

PeerIds used by ipns pubsub are base36 encoded so support parsing peer IDs out of base36 encoded strings. In fact, just support every default encoding supported by multiformats.

Also removes multihashes dep as we don't need it any more.