Documentation ¶
Index ¶
- type Config
- type CredentialsVerificationCheckResult
- type Options
- type Service
- func (s *Service) ValidateCredentialProof(_ context.Context, credential *verifiable.Credential, ...) error
- func (s *Service) ValidateLinkedDomain(_ context.Context, signingDID string) error
- func (s *Service) ValidateVCStatus(ctx context.Context, vcStatus *verifiable.TypedID, issuer *verifiable.Issuer) error
- func (s *Service) VerifyCredential(ctx context.Context, credential *verifiable.Credential, opts *Options, ...) ([]CredentialsVerificationCheckResult, error)
- type ServiceInterface
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 HTTPClient httpClient }
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(_ context.Context, credential *verifiable.Credential, proofChallenge, proofDomain string, vcInVPValidation, strictValidation bool) error
ValidateCredentialProof validate credential proof.
func (*Service) ValidateLinkedDomain ¶
func (*Service) ValidateVCStatus ¶
func (s *Service) ValidateVCStatus(ctx context.Context, vcStatus *verifiable.TypedID, issuer *verifiable.Issuer) error
func (*Service) VerifyCredential ¶
func (s *Service) VerifyCredential(ctx context.Context, credential *verifiable.Credential, opts *Options, profile *profileapi.Verifier) ([]CredentialsVerificationCheckResult, error)
type ServiceInterface ¶
type ServiceInterface interface { VerifyCredential( ctx context.Context, credential *verifiable.Credential, opts *Options, profile *profileapi.Verifier, ) ([]CredentialsVerificationCheckResult, error) ValidateCredentialProof( ctx context.Context, credential *verifiable.Credential, proofChallenge, proofDomain string, vcInVPValidation bool, strictValidation bool, ) error ValidateVCStatus(ctx context.Context, vcStatus *verifiable.TypedID, issuer *verifiable.Issuer) error ValidateLinkedDomain(ctx context.Context, signingDID string) error }
Click to show internal directories.
Click to hide internal directories.