anchorlinkset

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

Builder constructs an anchor linkset.

func NewBuilder

func NewBuilder(registry generatorRegistry) *Builder

NewBuilder returns a new anchor linkset builder.

func (b *Builder) BuildAnchorLink(payload *subject.Payload, dataURIMediaType datauri.MediaType,
	buildVC VCBuilder) (anchorLink *linkset.Link, vcBytes []byte, err error)

BuildAnchorLink builds an anchor Link from the given payload.

func (b *Builder) GetPayloadFromAnchorLink(anchorLink *linkset.Link) (*subject.Payload, error)

GetPayloadFromAnchorLink populates a Payload from the given anchor event.

type ContentObject

type ContentObject struct {
	Profile *url.URL
	Payload vocab.Document
}

ContentObject wraps a content object payload and includes the ID of the generator used to generate the payload.

type VCBuilder

type VCBuilder func(anchorHashlink, coreIndexHashlink string) (*verifiable.Credential, error)

VCBuilder constructs a verifiable credential.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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