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

# Functions

DecodeV1PSK reads a Multicodec encoded V1 PSK.
IsPNetError checks if given error is PNet Error.
NewError creates new Error.

# Constants

EnvKey defines environment variable name for forcing usage of PNet in libp2p When environment variable of this name is set to "1" the ForcePrivateNetwork variable will be set to true.

# Variables

ErrNotInPrivateNetwork is an error that should be returned by libp2p when it tries to dial with ForcePrivateNetwork set and no PNet Protector.
ForcePrivateNetwork is boolean variable that forces usage of PNet in libp2p Setting this variable to true or setting LIBP2P_FORCE_PNET environment variable to true will make libp2p to require private network protector.

# Interfaces

Error is error type for ease of detecting PNet errors.

# Type aliases

A PSK enables private network implementation to be transparent in libp2p.