• Verifies the signature of the ICredentialPresentation. It supports migrated DIDs, meaning that if the original claim within the ICredential included a light DID that was afterwards upgraded, the signature over the presentation must be generated with the full DID in order for the verification to be successful. On the other hand, a light DID that has been migrated and then deleted from the chain will not be allowed to generate valid presentations anymore.

    Parameters

    • input: ICredentialPresentation

      The ICredentialPresentation.

    • verificationOpts: {
          challenge?: string;
          didResolveKey?: DidResolveKey;
      } = {}

      Additional verification options.

      • Optional challenge?: string

        The expected value of the challenge. Verification will fail in case of a mismatch.

      • Optional didResolveKey?: DidResolveKey

        The function used to resolve the claimer's key. Defaults to resolveKey.

    Returns Promise<void>