verifypresentation

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	VDR            vdrapi.Registry
	DocumentLoader ld.DocumentLoader
	VcVerifier     vcVerifier
}

type Options

type Options struct {
	Domain    string
	Challenge string
}

type PresentationVerificationCheckResult

type PresentationVerificationCheckResult struct {
	Check string
	Error string
}

PresentationVerificationCheckResult resp containing failure check details.

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,
) ([]PresentationVerificationCheckResult, map[string][]string, error)

type ServiceInterface

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

Jump to

Keyboard shortcuts

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