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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnchorIndexStatus

type AnchorIndexStatus string

AnchorIndexStatus defines valid values for verifiable credential proof collection status.

const (

	// AnchorIndexStatusInProcess defines "in-process" status.
	AnchorIndexStatusInProcess AnchorIndexStatus = "in-process"

	// AnchorIndexStatusCompleted defines "completed" status.
	AnchorIndexStatusCompleted AnchorIndexStatus = "completed"
)

type Witness

type Witness struct {
	Type     WitnessType        `json:"type"`
	URI      *vocab.URLProperty `json:"uri"`
	HasLog   bool               `json:"hasLog"`
	Selected bool               `json:"selected"`
}

Witness contains info about witness.

func (*Witness) String

func (wf *Witness) String() string

type WitnessProof

type WitnessProof struct {
	*Witness
	Proof []byte
}

WitnessProof contains anchor index witness proof.

func (*WitnessProof) String

func (wf *WitnessProof) String() string

type WitnessType

type WitnessType string

WitnessType defines valid values for witness type.

const (

	// WitnessTypeBatch captures "batch" witness type.
	WitnessTypeBatch WitnessType = "batch"

	// WitnessTypeSystem captures "system" witness type.
	WitnessTypeSystem WitnessType = "system"
)

Jump to

Keyboard shortcuts

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