verification

package
v0.0.0-...-0fc66b4 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

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

func (v Verifier) VerifyCredential(ctx context.Context, credential credential.Container) error

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

func (v Verifier) VerifyJWTCredential(ctx context.Context, token keyaccess.JWT) error

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

func (v Verifier) VerifyJWTPresentation(ctx context.Context, token keyaccess.JWT) error

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.

Jump to

Keyboard shortcuts

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