package
0.0.0-20220412220916-5ea02083e3ec
Repository: https://github.com/riteshrch/go-edge-device-lib.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# 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

No description provided by the author
No description provided by the author
No description provided by the author
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.