• 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
    • verificationOpts: {
          challenge?: string;
          didResolver?: ((did, resolutionOptions?) => Promise<ResolutionResult>);
      } = {}

      Additional verification options.

      • Optional challenge?: string

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

      • Optional didResolver?: ((did, resolutionOptions?) => Promise<ResolutionResult>)
          • (did, resolutionOptions?): Promise<ResolutionResult>
          • Implementation of resolve compliant with W3C DID specifications. Additionally, this function returns an id-only DID document in the case where a DID has been deleted or upgraded. If a DID is invalid or has not been registered, this is indicated by the error property on the didResolutionMetadata.

            Parameters

            Returns Promise<ResolutionResult>

            The resolution result for the resolve function as specified in the W3C DID specifications.

    Returns Promise<void>