verifypresentation

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Check added in v1.12.0

type Check struct {
	Check string
	Error error
}

type Config

type Config struct {
	VDR                   vdrapi.Registry
	DocumentLoader        ld.DocumentLoader
	VcVerifier            vcVerifier
	DataIntegrityVerifier *dataintegrity.Verifier
}

type Options

type Options struct {
	Domain    string
	Challenge string
}

type PresentationVerificationResult added in v1.12.0

type PresentationVerificationResult struct {
	Checks []*Check
}

PresentationVerificationResult resp containing failure check details.

func (*PresentationVerificationResult) Errors added in v1.12.0

func (r *PresentationVerificationResult) Errors() []*Check

func (*PresentationVerificationResult) HasErrors added in v1.12.0

func (r *PresentationVerificationResult) HasErrors() bool

type Service

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

func New

func New(config *Config) *Service

func (*Service) VerifyPresentation

func (s *Service) VerifyPresentation(
	ctx context.Context,
	presentation *verifiable.Presentation,
	opts *Options,
	profile *profileapi.Verifier,
) (PresentationVerificationResult, map[string][]string, error)

type ServiceInterface

type ServiceInterface interface {
	VerifyPresentation(
		ctx context.Context,
		presentation *verifiable.Presentation,
		opts *Options,
		profile *profileapi.Verifier,
	) (PresentationVerificationResult, map[string][]string, error)
}

Jump to

Keyboard shortcuts

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