is Valid Device Engagement String
Validates the supplied string is a valid QR code based on device engagement structure (as per section 8.2.2.3 of ISO 18013-5).
This function will:
Check the supplied string is prefixed with “mdoc:
Decode the trailing portion of the string as base64 into a CBOR structure and validate it against the expected data structure defined in the CDDL of section 8.2.2.3 in ISO 18013-5.
Return
Boolean indicating whether the supplied string is a valid device engagement structure
Parameters
data