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

chore: update to new multiformats #149

Closed achingbrain closed 3 years ago

achingbrain commented 3 years ago

Replaces multihashes with the new multiformats module

BREAKING CHANGE: uses the CID class from the new multiformats module and PeerID.createFromCID now only takes CID instances

achingbrain commented 3 years ago

I've tightened up the input types for PeerId.createFromCID as a follow on from https://github.com/multiformats/js-multiformats/pull/91#issuecomment-853762442 - it now only takes CID instances.

vasco-santos commented 3 years ago

@achingbrain FYI #150 should also be ready soon (also breaking change), so I would like to get these shipped together as bubbling up PeerId updates across all libp2p stack is time consuming. This will create some conflicts that will need to be addresses by the second PR to be merged