AEGIS by ProtoworksDevelopers
Menu

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.

An analogy

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.
Precisely

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.

Who can see what
  • A reader sees the elements you release and the signed object; an authenticated reader is identified to you first.
What this does not do
  • The device key proves the mdoc was not copied off the device. It does not prove who is holding the device.
Verified against
  • ISO-18013-5 ISO/IEC 18013-5:2021 Mobile driving licence (mDL) application version Ed. 1, 2021-09, 152 pp, CHF 227; stage 90.92, checked 2026-10-28
  • 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 version CD ballot resolution v4, dated 2025-09-14 (the latest of the three second-edition drafts in the repository at b250e7a), checked 2026-10-28
  • OPENID4VP-1.0 OpenID for Verifiable Presentations 1.0 version 1.0, checked 2026-10-28

Last reviewed 2026-10-28. Next review 2027-04-28. Every quotation is checked against the text it quotes, at the version named, before the page is published.