• Performs all steps to verify a credential presentation (signed). In addition to verifying data structure, data integrity, and looking up the attestation record on the KILT blockchain, this involves verifying the claimer's signature over the credential.

    This is the function verifiers would typically call upon receiving a credential presentation from a third party. The attester's identity and the credential revocation status returned by this function would then be either displayed to an end user or processed in application logic deciding whether to accept or reject a credential submission (e.g., by matching the attester DID against an allow-list of trusted attesters).

    Parameters

    • presentation: ICredentialPresentation

      The object to check.

    • options: VerifyOptions = {}

      Additional parameter for more verification steps.

    Returns Promise<VerifiedCredential>

    A VerifiedCredential object, which is the orignal credential presentation with two additional properties: a boolean revoked status flag and the attester DID.