mDocReader/IsomDLReader
The MdocReader for iOS and ISOmDLReader for Android lets you manage an 18013-5 interaction from the Verifier perspective.
// instantiate an mDocReader
let mdocReader = MDocReaderView(
// Set the scanned value
uri: scanned!,
// Define the items you want to query by namespace, attribute_name and intent to retain:
requestedItems: ["org.iso.18013.5.1": ["given_name": true]],
// Enter an array of issuer certificates that you accept (e.g. a list of certificates from US states).
// These issuer certificates should follow the IACA profile as defined in ISO/IEC 18013-5 Annex B.
trustAnchorRegistry: [<issuer_cert>],
// Implment your onCancel Behaviour
onCancel: onCancel,
path: $path
)
let result = try mdocReader.handleResponse(response: <bytes>)
Last updated
Was this helpful?