The ICredentialPresentation.
Additional verification options.
Optional
challenge?: stringThe expected value of the challenge. Verification will fail in case of a mismatch.
Optional
didThe function used to resolve the claimer's key. Defaults to resolveKey.
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.