• Verifies a KILT self-signed proof (claimer signature) against a KILT style Verifiable Credential. This entails computing the root hash from the hashes contained in the protected section of the credentialSubject. The resulting hash is then verified against the signature and public key contained in the proof (the latter could be a DID URI). It is also expected to by identical to the credential id.

    Returns

    Object indicating whether proof could be verified.

    Parameters

    • credential: VerifiableCredential

      Verifiable Credential to verify proof against.

    • proof: SelfSignedProof

      KILT self-signed proof object.

    • documentLoader: DocumentLoader

      Must be able to KILT DID fragments (i.e. The key reference).

    Returns Promise<VerificationResult>