request

abstract suspend fun request(request: JsonObject): JsonObject

Request credentials from wallet applications.

This is a wrapper for a native implementation of the W3C Digital Credentials API available in web browsers via navigator.credentials.get(). This may not be available on all platforms.

This will trigger external components for the user to interact with so make sure to launch this from a coroutine which is properly bound to the UI, see org.multipaz.context.UiContext for details.

Use VerificationUtil.generateDcRequestMdoc or VerificationUtil.generateDcRequestSdJwt to generate requests and use VerificationUtil.decryptDcResponse to decrypt the response. Once decrypted VerificationUtil.verifyMdocDeviceResponse, VerificationUtil.verifyOpenID4VPResponse can be used to generate VerifiedPresentation instances for further checks and analysis.

Return

the W3C Digital Credentials response.

Parameters

request

a W3C Digital Credentials request.