# 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.
# Interfaces
Record represents a data type that can be used as the payload of an Envelope.