Verify an ISO mdoc offline
The SDK can be used to verify an ISO mdoc proof over BLE. The following steps represent the high-level overview.
Related guide: ISO mdoc offline protocol
-
Create proof request: the digital wallet holder must initialize the interaction by presenting a QR code for engagement. Create a proof request, passing
ISO_MDL
as the exchange protocol and the QR code content forisoMdlEngagement
- Starts BLE scanning
- Creates a proof in
PENDING
state and returns theproofId
At this stage the mobile verifier uses the device engagement parameters to establish a BLE connection.
-
Connection established:
- Sends proof request
- Changes proof to
REQUESTED
state
At this stage the mobile verifier waits for a response.
-
Response received:
- Validates the proof
- Changes proof state to
ACCEPTED
orERROR
according to validation result - Closes BLE session
While the proof is in PENDING
state or REQUESTED
state,
delete the proof to cancel the BLE interaction.
If the request was in PENDING
, it is deleted and no history of the request
is retained.
If the request was in REQUESTED
, it is changed to RETRACTED
and the history
of the interaction is retained.