package
0.41.0
Repository: https://github.com/libp2p/go-libp2p.git
Documentation: pkg.go.dev

# Packages

# Functions

DisablePeerIDCheck disables checking the remote peer ID for a noise connection.
EarlyData sets the `EarlyDataHandler` for the initiator and responder roles.
New creates a new Noise transport using the given private key as its libp2p identity key.
Prologue sets a prologue for the Noise session.

# Constants

ID is the protocol ID for noise.
LengthPrefixLength is the length of the length prefix itself, which precedes all transport messages in order to delimit them.
MaxPlaintextLength is the maximum payload size.
MaxTransportMsgLength is the Noise-imposed maximum transport message length, inclusive of the MAC size (16 bytes, Poly1305 for noise-libp2p).

# Structs

SessionTransport can be used to provide per-connection options.

# Interfaces

EarlyDataHandler defines what the application payload is for either the second (if responder) or third (if initiator) handshake message, and defines the logic for handling the other side's early data.

# Type aliases