tbdex

package
v0.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message added in v0.11.0

type Message interface {
	ValidNext() []string
	Kind() string
	Digest() ([]byte, error)
}

Message is the interface that all tbdex messages implement. Especially useful for decoding and parsing messages when the kind of message is not known upfront.

func ParseMessage added in v0.11.0

func ParseMessage(input []byte) (Message, error)

ParseMessage parses a message. It uses the metadata kind to determine the type of message.

Note

parsing validates the message and verifies the integrity of the message which can lead to a network request in order to resolve the signer's DID

func UnmarshalMessage added in v0.11.0

func UnmarshalMessage(input []byte) (Message, error)

UnmarshalMessage unmarshals a message. It uses the metadata kind to determine the type of message.

Note

unmarshaling includes validation

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL