Documentation ¶
Index ¶
- type Verifier
- func (v Verifier) VerifyCredential(ctx context.Context, credential credential.Container) error
- func (v Verifier) VerifyDataIntegrityCredential(ctx context.Context, credential credsdk.VerifiableCredential) error
- func (v Verifier) VerifyJWTCredential(ctx context.Context, token keyaccess.JWT) error
- func (v Verifier) VerifyJWTPresentation(ctx context.Context, token keyaccess.JWT) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Verifier ¶
type Verifier struct {
// contains filtered or unexported fields
}
func NewVerifiableDataVerifier ¶
func NewVerifiableDataVerifier(didResolver resolution.Resolver, schemaResolver schema.Resolution) (*Verifier, error)
NewVerifiableDataVerifier creates a new verifier for both verifiable credentials and verifiable presentations. The verifier executes both signature and static verification checks. In the future the set of verification checks will be configurable.
func (Verifier) VerifyCredential ¶
VerifyCredential first parses and checks the signature on the given credential. Next, it runs a set of static verification checks on the credential as per the service's configuration. Works for both JWT and LD securing mechanisms.
func (Verifier) VerifyDataIntegrityCredential ¶
func (v Verifier) VerifyDataIntegrityCredential(ctx context.Context, credential credsdk.VerifiableCredential) error
VerifyDataIntegrityCredential first checks the signature on the given data integrity verification. Next, it runs a set of static verification checks on the credential as per the service's configuration.
func (Verifier) VerifyJWTCredential ¶
VerifyJWTCredential first parses and checks the signature on the given JWT verification. Next, it runs a set of static verification checks on the credential as per the service's configuration.
func (Verifier) VerifyJWTPresentation ¶
VerifyJWTPresentation first parses and checks the signature on the given JWT presentation. Next, it runs a set of static verification checks on the presentation's credentials as per the service's configuration.