verifier

package
v1.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DocumentVerifier

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

DocumentVerifier implements JSON LD document proof verification.

func New

func New(resolver keyResolver, suites ...api.VerifierSuite) (*DocumentVerifier, error)

New returns new instance of document verifier.

func (*DocumentVerifier) Verify

func (dv *DocumentVerifier) Verify(jsonLdDoc []byte, opts ...processor.Opts) error

Verify will verify document proofs.

func (*DocumentVerifier) VerifyObject

func (dv *DocumentVerifier) VerifyObject(jsonLdObject map[string]interface{}, opts ...processor.Opts) error

VerifyObject will verify document proofs for JSON LD object.

Jump to

Keyboard shortcuts

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