Skip to main content

ICredentialVerifier.verifyCredential() method

Verifies a Verifiable Credential JWT, LDS Format or EIP712.

Signature:

verifyCredential(args: IVerifyCredentialArgs, context: VerifierAgentContext): Promise<IVerifyResult>;

Parameters

ParameterTypeDescription
argsIVerifyCredentialArgsArguments necessary to verify a VerifiableCredential
contextVerifierAgentContextThis reserved param is automatically added and handled by the framework, *do not override*

Returns:

Promise<IVerifyResult>

  • a promise that resolves to an object containing a verified boolean property and an optional error for details

Remarks

Please see Verifiable Credential data model