Versions in this module Expand all Collapse all v0 v0.1.0 Jul 5, 2021 Changes in this version + var ErrInvalidCompactSerialization = errors.New("invalid compact serialization") + var ErrInvalidJSONSerialization = errors.New("invalid JSON serialization") + func ConvertCompactToJSON(serialized string, unprotected interface{}) (string, error) + func ConvertJSONToCompact(serialized string, unprotected interface{}) (string, error) + type CompleteSignature struct + Payload string + func ParseCompact(serialized string) (CompleteSignature, error) + func (s CompleteSignature) Enclose() Envelope + func (s CompleteSignature) SerializeCompact() string + func (s CompleteSignature) SerializeFlattenedJSON() string + func (s CompleteSignature) SerializeGeneralJSON() string + func (s CompleteSignature) SerializeJSON() string + type Envelope struct + Payload string + Signatures []Signature + func Parse(serialized string) (Envelope, error) + func ParseJSON(serialized string) (Envelope, error) + func (e Envelope) CompleteSignature() CompleteSignature + func (e Envelope) CompleteSignatures() []CompleteSignature + func (e Envelope) Flattenable() bool + func (e Envelope) Serialize() string + func (e Envelope) Signature() Signature + type Signature struct + Protected string + Signature string + Unprotected json.RawMessage