verifyOpenID4VPResponse

suspend fun verifyOpenID4VPResponse(now: Instant, vpToken: JsonObject, sessionTranscript: DataItem?, nonce: String, documentTypeRepository: DocumentTypeRepository?, zkSystemRepository: ZkSystemRepository?, transactionDataMap: Map<String, List<TransactionDataJson>> = emptyMap(), queryData: Map<String, QueryData>): List<VerifiedPresentation>

Generates VerifiedPresentation from an OpenID4VP response.

Return

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

Parameters

now

the current time.

vpToken

the vp_token according to OpenID4VP 1.0.

sessionTranscript

the ISO mdoc SessionTranscript CBOR, required if there are any ISO mdoc credentials were presented.

nonce

the nonce used in the request.

documentTypeRepository
zkSystemRepository

a ZkSystemRepository used for verifying ZKP proofs or null.

transactionDataMap

maps credential id in the query to the list of transactions for that credential

queryData

maps credential id in the query to information about the credential query in the request.