-
Notifications
You must be signed in to change notification settings - Fork 26
Closed
Description
While working on paritytech/polkadot-sdk#1631 I tried upgrading litep2p to use multiaddr-0.18.1 also used by libp2p-0.52.3. The thing with multiaddr-0.18.1 is that it uses libp2p_identity::PeerId as a payload of Protocol::P2p instead of Multihash in the older versions.
So, we have three options:
- Make
litep2pindirectly depend onlibp2p-identityviamultiaddr, but keep distinctPeerIdtypes. We would need to add conversion betweenlibp2p&litep2pPeerIdtypes tolitep2p. - Completely replace all
PeerIdtypes used inlitep2p&polkadot-sdkbylibp2p_identity::PeerId. - Introduce own
Multiaddrimplementation intolitep2pwith a layer of abstraction inpolkadot-sdklike it's currently done withPeerIdtypes.
I don't think route 3 is a good idea due to code duplication and layers of abstraction more heavy than the ones for PeerId, and a lot of code touched overall.
To proceed with paritytech/polkadot-sdk#1631 I'm going to go route 1 for now, but we should at least consider route 2 as something that would simplify things.
Metadata
Metadata
Assignees
Labels
No labels