This repository has been archived by the owner on Dec 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
Implement private swarms #102
Comments
We need to plan to be able to be part of multiple of these. This might require changes in libp2p. |
This is one of the things needed for actyx.com to be able to use iroh-embed as a replacement for ipfs-embed. |
So adding this for tcp and websocket is straightforward. Adding it for quic is not. The issue is that this relies on the socket being AsyncRead and AsyncWrite, which the quic socket is not. In TCP the private net stuff goes here
But in quic you already get a muxer thingie out. /// upgrade a connection to use pre shared key encryption.
///
/// the upgrade works by both sides exchanging 24 byte nonces and then encrypting
/// subsequent traffic with XSalsa20
pub async fn handshake<TSocket>(
self,
mut socket: TSocket,
) -> Result<PnetOutput<TSocket>, PnetError> |
cf. libp2p/specs#489 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Use rust-libp2p pnet optionally
https://github.com/libp2p/rust-libp2p/tree/master/transports/pnet
I seem to remember that I wrote this and go tomaka to merge it, but blame does not have me anymore, not even tomaka. 🤷♂️
The text was updated successfully, but these errors were encountered: