handle
Main entry point for handling a remote OpenID4VP presentation from a QR code.
High-level flow:
Resolve the OpenID4VP request from qrCodeData using SiopOpenId4Vp.
Extract the PresentationDefinition and requested claims.
Build PREX PrexClaims from wallet documents and run PE matching.
For a successful match:
identify the selected document and which fields will be disclosed;
build a PresentationSubmission with descriptor maps.
Ask the user for consent via askConsent (UI supplied by the host app).
Trigger device / biometric authentication via authenticate.
Build an SD-JWT-based VerifiablePresentation inside the authenticated session.
Dispatch the VP to the verifier and call onSuccess on acceptance.
Parameters
Raw QR code string, typically containing a request_uri.
Callback that:
receives a ConsentPromptData describing what will be shared,
shows your own consent UI,
returns
trueif user approves,falseotherwise.
Callback that:
receives a BiometricPrompt.CryptoObject for signing,
is responsible for starting a biometric / device-auth flow,
must call onAuthenticated when authentication succeeds,
returns
trueif auth completed successfully,falseif cancelled or failed.
Invoked when the verifier returns an Accepted response.
Throws
for all domain / protocol / network errors.