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

# 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

Deprecated: use github.com/libp2p/go-libp2p/core/record.ErrEmptyDomain instead.
Deprecated: use github.com/libp2p/go-libp2p/core/record.ErrEmptyPayloadType instead.
Deprecated: use github.com/libp2p/go-libp2p/core/record.ErrInvalidSignature instead.
ErrPayloadTypeNotRegistered is returned from ConsumeEnvelope when the Envelope's PayloadType does not match any registered Record types.

# Type aliases

Envelope contains an arbitrary []byte payload, signed by a libp2p peer.
Record represents a data type that can be used as the payload of an Envelope.