You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 23, 2021. It is now read-only.
Based on the outcome of #779, the network layer of COMIT should be replaced with libp2p.
Since libp2p is a modular network stack, I'd propose the following configuration to begin with:
Only TCP transport
Discovery through WebRTC-star (or should be go with mDNS for now since we are always on the same network?)
no encryption
This should allow us to run our tests again.
The following things will need to be done (not necessarily in this order):
Throw away comit_server and connection_pool
Figure out away on how to put BAM ontop of whichever abstractions libp2p exposes. This will involve registering a protocol with libp2p like /bam/1.0.0.
Change the http_api to accept a libp2p node id instead of an IP address
Figure out how to establish a connection to the given ID so that the swap request can be sent to the other guy. Not sure if libp2p will handle the discovery transparently for us or we have to do this manually before sending the request
Derive the keypair used for the libp2p id from the seed specified in the configuration file
Based on the outcome of #779, the network layer of COMIT should be replaced with libp2p.
Since libp2p is a modular network stack, I'd propose the following configuration to begin with:
This should allow us to run our tests again.
The following things will need to be done (not necessarily in this order):
comit_serverandconnection_pool/bam/1.0.0.Note: