presentproof

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: Apache-2.0 Imports: 19 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddBBSProofFn added in v0.1.6

func AddBBSProofFn(p Provider) func(presentation *verifiable.Presentation) error

AddBBSProofFn add BBS+ proof to the Presentation.

func PresentationDefinition added in v0.1.6

func PresentationDefinition(p Provider, opts ...OptPD) presentproof.Middleware

PresentationDefinition the helper function for the present proof protocol that creates VP based on credentials that were provided in the attachments according to the requested presentation definition.

func SavePresentation

func SavePresentation(p Provider) presentproof.Middleware

SavePresentation the helper function for the present proof protocol which saves the presentations.

Types

type Metadata

type Metadata presentproof.Metadata

Metadata is an alias to the original Metadata.

type OptPD added in v0.1.6

type OptPD func(o *pdOptions)

OptPD represents option function for the PresentationDefinition middleware.

func WithAddProofFn added in v0.1.6

func WithAddProofFn(sign func(presentation *verifiable.Presentation) error) OptPD

WithAddProofFn allows providing function that will sign the Presentation.

type Provider

type Provider interface {
	VerifiableStore() storeverifiable.Store
	VDRegistry() vdrapi.Registry
	KMS() kms.KeyManager
	Crypto() crypto.Crypto
	JSONLDDocumentLoader() ld.DocumentLoader
}

Provider contains dependencies for the SavePresentation middleware function.

Jump to

Keyboard shortcuts

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