execute

suspend fun execute(presentmentSource: PresentmentSource, keyAgreementPossible: List<EcCurve> = emptyList(), transactionDataMap: Map<String, List<TransactionData>> = emptyMap()): CredentialPresentmentData

Executes the DCQL query.

If successful, this returns a CredentialPresentmentData which can be used in an user interface for the user to select which combination of credentials to return, see Consent composable in multipaz-compose and Consent view in multipaz-swift for examples of how to do this.

If the query cannot be satisfied, DcqlCredentialQueryException is thrown.

Return

the resulting CredentialPresentmentData if the query was successful.

Parameters

presentmentSource

the PresentmentSource to use as a source of truth for presentment.

keyAgreementPossible

if non-empty, a credential using Key Agreement may be returned provided its private key is using one of the given curves.

transactionDataMap

list of transaction data for each queried document by query id

Throws

if it's not possible satisfy the query.