Module libp2p_networking::network::transport
source · Expand description
Alternative Libp2p transport implementations
Structs§
- The deserialized form of an authentication message that is sent to the remote peer
- A wrapper for a
Transport
that bidirectionally authenticates connections by performing a handshake that checks if the remote peer is present in the stake table.
Constants§
- The timeout for the authentication handshake. This is used to prevent attacks that keep connections open indefinitely by half-finishing the handshake.
- The maximum size of an authentication message. This is used to prevent DoS attacks by sending large messages.
Traits§
- AsOutput 🔒A helper trait that allows us to access the underlying connection and
PeerId
from a transport output
Functions§
- Create an sign an authentication message to be sent to the remote peer
- A helper function to read a length-delimited message from a stream. Takes into account the maximum message size.
- A helper function to write a length-delimited message to a stream.
Type Aliases§
- A type alias for the future that upgrades a connection to perform the authentication handshake