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

# Packages

# Functions

ConsumeEnvelope unmarshals a serialized Envelope and validates its signature using the provided 'domain' string.
ConsumeTypedEnvelope unmarshals a serialized Envelope and validates its signature.
RegisterType associates a binary payload type identifier with a concrete Record type.
Seal marshals the given Record, places the marshaled bytes inside an Envelope, and signs with the given private key.
UnmarshalEnvelope unmarshals a serialized Envelope protobuf message, without validating its contents.

# Variables

ErrPayloadTypeNotRegistered is returned from ConsumeEnvelope when the Envelope's PayloadType does not match any registered Record types.

# Structs

Envelope contains an arbitrary []byte payload, signed by a libp2p peer.

# Interfaces

Record represents a data type that can be used as the payload of an Envelope.