anchor

package
v0.0.0-...-fffdf24 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2022 License: AGPL-3.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ShowProgress = true

ShowProgress is the flag indicates whether to show anchor verification progress as log messages

View Source
var (

	// VerifyAnchorIndependently indicates whether to verify a proof's anchor independently, which
	// does not rely on the proof's anchor URI to do the verification
	VerifyAnchorIndependently = false
)

Functions

func Verify

func Verify(ctx context.Context, evaluatedProof interface{}) (er error)

Verify verifies anchor info in a given evaluated Proof JSON and returns nil if succeed, and error otherwise. When the proof is verifiable and falsified, the returned error is a type of `VerificationStatusError`.

Types

This section is empty.

Jump to

Keyboard shortcuts

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