verifyMdocDeviceResponse

suspend fun verifyMdocDeviceResponse(now: Instant, deviceResponse: DataItem, sessionTranscript: DataItem, eReaderKey: AsymmetricKey?, documentTypeRepository: DocumentTypeRepository?, zkSystemRepository: ZkSystemRepository?, request: DeviceRequest?): List<VerifiedPresentation>

Generates VerifiedPresentation from an ISO 18013-5 response.

Note that this method does not check X.509 CRL/OCSP revocation on issuer certificate chains or MSO/status-list credential revocation via VerifiedPresentation.revocationStatus; the caller is expected to check issuer trust, certificate revocation, and credential revocation status separately when required.

Return

a list of VerifiedPresentation, one for each document in the response.

Parameters

now

the current time.

deviceResponse

the DeviceResponse CBOR.

sessionTranscript

the ISO mdoc SessionTranscript CBOR.

eReaderKey

the ephemeral reader key, if 18013-5 session encryption is used.

documentTypeRepository
zkSystemRepository

a ZkSystemRepository used for verifying ZKP proofs or null.

request

request that produced this response, required if the response contains dc+sd-jwt OtherDocuments or if transaction data was sent in the request.