resolutionverifier

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2023 License: Apache-2.0 Imports: 14 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(opts *ResolutionVerifier)

Option is an option for document verifier.

func WithAnchorOrigins

func WithAnchorOrigins(anchorOrigins []string) Option

WithAnchorOrigins sets optional allowed anchor origins.

func WithCurrentProtocolVersion

func WithCurrentProtocolVersion(version string) Option

WithCurrentProtocolVersion sets optional current protocol versions. Defaults to the latest in the protocol versions list.

func WithEnableBase

func WithEnableBase(enabled bool) Option

WithEnableBase sets optional @base(JSON-LD directive).

func WithMethodContext

func WithMethodContext(methodContexts []string) Option

WithMethodContext sets optional method contexts.

func WithProtocolVersions

func WithProtocolVersions(versions []string) Option

WithProtocolVersions sets optional client protocol versions.

type ResolutionVerifier

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

ResolutionVerifier verifies resolved documents.

func New

func New(namespace string, opts ...Option) (*ResolutionVerifier, error)

New returns a new resolution verifier.

func (*ResolutionVerifier) Verify

Verify will verify provided resolution result against resolution result that is assembled from published and unpublished operations in provided resolution result.

Jump to

Keyboard shortcuts

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