What is an mdoc?
An mdoc is a credential in the ISO/IEC 18013-5 format, best known as the mobile driving licence (mDL). It is CBOR: each data element (family_name, birth_date, age_over_18 …) is a separate signed item with a random salt, and the issuer signs a Mobile Security Object (MSO) holding a digest of every item, so the holder can disclose only some of them.
The MSO is signed with COSE_Sign1 by a document signer certificate, which chains to the issuing authority's IACA root. A verifier checks that signature and chain, the MSO's validity period, and that each disclosed element hashes to the digest in the MSO.
How to use this tool
- Paste a DeviceResponse, Document or IssuerSigned structure as hex, Base64 or Base64URL.
- Optionally paste the IACA root certificate you trust, then click Verify.
- Or click Generate a sample mDL to see a valid one, or the changed-element sample to see a digest failure.
Frequently asked questions
Is device authentication checked?
No. deviceSigned is bound to the presentation's SessionTranscript (from the proximity or online flow), which a pasted response doesn't carry, so this tool checks the issuer's data only and says so.
Which formats are accepted?
A DeviceResponse (documents array), a single Document, or a bare IssuerSigned, which is how OpenID4VCI delivers mso_mdoc credentials.
Is my mDL uploaded?
No. Decoding, hashing and signature checks run in your browser with WebCrypto; nothing is sent to stbox.