Class VerificationContext

Expand description

Verifier-side context containing trusted issuers and ingested revocations.

Constructors§

§

new VerificationContext(): VerificationContext

Create an empty verification context.

Methods§

§

addIssuerAuthority(issuer_authority: IssuerAuthority): void

Verify and trust an issuer authority for future credential checks.

§

addRevocation(revocation: SignedRevocation): void

Verify and store a signed revocation from a trusted issuer.

§

free(): void

§

verifyCredential(credential: SignedCredential): boolean

Verify a finalized credential against trusted issuers and ingested revocations.

§

verifyCredentialAuthorization(
    credential: SignedCredential,
    authorization: HolderAuthorization,
): boolean

Verify a credential and holder authorization.