proof

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Providers

type Providers struct {
	VCStore       vcStore
	VCStatusStore vcStatusStore
	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) *WitnessProofHandler

New creates new proof handler.

func (*WitnessProofHandler) HandleProof

func (h *WitnessProofHandler) HandleProof(witness *url.URL, anchorCredID 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