verify

abstract suspend fun verify(atTime: Instant = Clock.System.now(), documentTypeRepository: DocumentTypeRepository? = null, zkSystemRepository: ZkSystemRepository? = null): List<VerifiedPresentation>

Verifies the cryptographic validity of the presentment. This includes verifying that the credential holder approved all transactions that apply to the presented credentials, even if no data was sent as a response for a given transaction.

Note that this method does not verify whether the issuer is trusted; callers must verify VerifiedPresentation.documentSignerCertChain against an appropriate TrustManagerInterface (passing MdocVerifiedPresentation.docType as docType for ISO mdoc presentations, and checking revocation status if applicable).

Return

a list of verification results, one per document/credential in the presentation.

Parameters

atTime

the time at which to evaluate validity.

documentTypeRepository

optional DocumentTypeRepository for resolving claim metadata and transaction types.

zkSystemRepository

optional ZkSystemRepository for verifying Zero-Knowledge Proofs.