-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Custom libp2p sub-protocols #751
Comments
I would say this is more of a Substrate issue, and we want to be able to add support for custom protocols for things outside of Polkadot as well. |
@tomaka Is there any more comprehensive writeup on what the work items are for this and what the API will look like? |
To go a bit more into details: For now the plan would be for Polkadot to use the I think that in the long term we should change that, and instead make Polkadot inject a Injecting a However I don't think it's a good idea to straight-up do the
Once rust-libp2p is easier to use, we could eventually transition from a " |
(this is done) |
Libp2p enables users to define custom protocols by implementing the
NetworkBehaviour
trait. These custom protocols use a substream via whatever multiplexing solution libp2p uses for a connection.It would be useful to pass the ability to define custom protocols through Substrate up to code within Polkadot.
Related work having the gossip system open custom substreams: paritytech/substrate#4125
The text was updated successfully, but these errors were encountered: