generateRequest

suspend fun generateRequest(version: OpenID4VP.Version, origin: String, nonce: String, responseEncryptionKey: EcPublicKey?, verifierIdentities: List<VerifierIdentity>, responseMode: OpenID4VP.ResponseMode, responseUri: String?, dcqlQuery: JsonObject, jsonTransactionData: List<String> = emptyList(), state: String? = null): JsonObject

Generates an OpenID4VP request.

Return

the OpenID4VP request.

Parameters

version

the version of OpenID4vp to generate the request for.

origin

the origin, e.g. https://verifier.multipaz.org or android:apk-key-hash:<sha256_hash-of-apk-signing-cert>.

nonce

the nonce to use.

responseEncryptionKey

the key to encrypt the response against or null.

verifierIdentities

verifier identities that are used to sign the request (there may be multiple for multisigned requests, or none for unsigned requests).

responseMode

the response mode.

responseUri

the response URI or null.

dcqlQuery

the DCQL query.

jsonTransactionData

strings from transaction_data array before base64url encoding, see OpenID4VP 1.0 section 8.4.

state

OpenID4VP state parameter (optional)