proof

package
v1.0.2 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: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Providers

type Providers struct {
	AnchorLinkStore anchorEventStore
	StatusStore     statusStore
	WitnessStore    witnessStore
	WitnessPolicy   witnessPolicy
	MonitoringSvc   monitoringSvc
	DocLoader       ld.DocumentLoader
	Metrics         metricsProvider
}

Providers contains all of the providers required by the handler.

type WitnessProofHandler

type WitnessProofHandler struct {
	*Providers
	// contains filtered or unexported fields
}

WitnessProofHandler handles an anchor credential witness proof.

func New

func New(providers *Providers, pubSub pubSub, dataURIMediaType datauri.MediaType,
	maxClockSkew time.Duration) *WitnessProofHandler

New creates new proof handler.

func (*WitnessProofHandler) HandleProof

func (h *WitnessProofHandler) HandleProof(witness *url.URL, anchor string, endTime time.Time, proof []byte) error

HandleProof handles proof.

Jump to

Keyboard shortcuts

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