verifycredential

package
v1.0.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: Apache-2.0 Imports: 11 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 {
	VCStatusProcessorGetter vc.StatusProcessorGetter
	StatusListVCResolver    statusListVCURIResolver
	DocumentLoader          ld.DocumentLoader
	VDR                     vdrapi.Registry
}

type CredentialsVerificationCheckResult

type CredentialsVerificationCheckResult struct {
	Check              string
	Error              string
	VerificationMethod string
}

CredentialsVerificationCheckResult resp containing failure check details.

type Options

type Options struct {
	// Challenge is added to the proof.
	Challenge string

	// Domain is added to the proof.
	Domain string
}

Options represents options for verify credential.

type Service

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

func New

func New(config *Config) *Service

func (*Service) ValidateCredentialProof

func (s *Service) ValidateCredentialProof(vcByte []byte, proofChallenge, proofDomain string, vcInVPValidation,
	isJWT bool) error

ValidateCredentialProof validate credential proof.

func (*Service) ValidateVCStatus

func (s *Service) ValidateVCStatus(vcStatus *verifiable.TypedID, issuer string) error

func (*Service) VerifyCredential

func (s *Service) VerifyCredential(credential *verifiable.Credential, opts *Options,
	profile *profileapi.Verifier) ([]CredentialsVerificationCheckResult, error)

Jump to

Keyboard shortcuts

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