engine

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const PresentProofType = "https://didcomm.org/present-proof/2.0/request-presentation"

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(opts *Registry)

func WithEngine

func WithEngine(e PresentationEngine) Option

WithEngine adds did method implementation for store.

type PresentationEngine

type PresentationEngine interface {
	Accept(typ string) bool
	RequestPresentation(name, version string, attrInfo map[string]*schema.IndyProofRequestAttr,
		predicateInfo map[string]*schema.IndyProofRequestPredicate) (*decorator.AttachmentData, error)
	RequestPresentationFormat() string
	Verify(presentation, request []byte, theirDID string, myDID string) error
}

type PresentationRegistry

type PresentationRegistry interface {
	RequestPresentation(name, version, typ string, attrInfo map[string]*schema.IndyProofRequestAttr,
		predicateInfo map[string]*schema.IndyProofRequestPredicate) (*decorator.AttachmentData, error)
	Verify(format string, presentation, request []byte, theirDID string, myDID string) error
}

type Registry

type Registry struct {
	// contains filtered or unexported fields
}

func New

func New(prov provider, opts ...Option) *Registry

func (*Registry) RequestPresentation

func (r *Registry) RequestPresentation(name, version, typ string, attrInfo map[string]*schema.IndyProofRequestAttr,
	predicateInfo map[string]*schema.IndyProofRequestPredicate) (*decorator.AttachmentData, error)

RequestPresentation

func (*Registry) Verify

func (r *Registry) Verify(format string, presentation, request []byte, theirDID string, myDID string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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