Skip to main content

IVerifyCredentialArgs interface

Encapsulates the parameters required to verify a W3C Verifiable Credential

Signature:

export interface IVerifyCredentialArgs extends UsingResolutionOptions

Extends: UsingResolutionOptions

Properties

PropertyModifiersTypeDescription
credentialW3CVerifiableCredential

The Verifiable Credential object according to the canonical model or the JWT representation.

The signer of the Credential is verified based on the issuer.id property of the credential or the iss property of the JWT payload respectively

fetchRemoteContexts?boolean

(Optional) When dealing with JSON-LD you also MUST provide the proper contexts. Set this to true ONLY if you want the @context URLs to be fetched in case they are not preloaded. The context definitions SHOULD rather be provided at startup instead of being fetched.

Defaults to false

policies?VerificationPolicies(Optional) Overrides specific aspects of credential verification, where possible.