Documentation ¶
Index ¶
- type Config
- type CredentialsVerificationCheckResult
- type Options
- type Service
- func (s *Service) ValidateCredentialProof(vcByte []byte, proofChallenge, proofDomain string, ...) error
- func (s *Service) ValidateVCStatus(vcStatus *verifiable.TypedID, issuer string) error
- func (s *Service) VerifyCredential(credential *verifiable.Credential, opts *Options, profile *profileapi.Verifier) ([]CredentialsVerificationCheckResult, error)
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 (*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)
Click to show internal directories.
Click to hide internal directories.