3.3 · Credential formatsWorking
mdoc
An mdoc is a credential encoded in Concise Binary Object Representation (CBOR), the format of the mobile driving licence standard. The issuer signs a Mobile Security Object (MSO): a list of salted digests, one per data element, with validity dates and, optionally, a status reference, under a certificate. The device holds a key and signs each session, which proves the mdoc was not copied off it. The reader can be authenticated too. The format was defined for driving licences, but works for any document type, in person over short-range radio or online.
A licence in a glass case that shows only the fields you unlock, and only to a reader that shows you its own badge.
Where it breaks:
- Every reader sees the same signed object, unless the holder was given several copies.
- The data a reader receives is a copy it can keep.
In the second-edition drafts of the standard: the signed object and its validity information ISO-WG10-18013-5-ED2-WD §12.3.4, its revocation ISO-WG10-18013-5-ED2-WD §12.3.6, the device’s authentication ISO-WG10-18013-5-ED2-WD §12.4, the reader’s ISO-WG10-18013-5-ED2-WD §12.5, and the session transcript each session signs ISO-WG10-18013-5-ED2-WD §12.7.1.
The first edition sets out the same flow in its clauses on device engagement and retrieval ISO-18013-5 §8.2 ISO-18013-5 §8.3. The drafts add structures for zero-knowledge proofs that are still draft ISO-WG10-18013-5-ED2-WD §10.2.7.
Presenting an mdoc online through OpenID for Verifiable Presentations OPENID4VP-1.0 §B.2.
- A reader sees the elements you release and the signed object; an authenticated reader is identified to you first.
- The device key proves the mdoc was not copied off the device. It does not prove who is holding the device.
- ISO-18013-5 ISO/IEC 18013-5:2021 Mobile driving licence (mDL) application
- ISO-WG10-18013-5-ED2-WD ISO/IEC 18013-5 second edition, CD ballot resolution v4, published by ISO/IEC JTC 1/SC 17/WG 10
- OPENID4VP-1.0 OpenID for Verifiable Presentations 1.0