# Functions
DecodeV1PSK reads a Multicodec encoded V1 PSK.
IsPNetError checks if given error is PNet Error Deprecated: use github.com/libp2p/go-libp2p/core/pnet.IsPNetError instead.
NewError creates new Error Deprecated: use github.com/libp2p/go-libp2p/core/pnet.NewError instead.
# 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 Deprecated: use github.com/libp2p/go-libp2p/core/pnet.ErrNotInPrivateNetwork instead.
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.