3.6 · Credential formatsWorking
Choosing a format
Five ways of encoding and securing a credential are in use, and they differ in what they can hide, how they tie a credential to its holder, how status is published and where they can be presented. The table compares them property by property, with the source of each cell. Many deployments issue the same claims in more than one format.
Start from the property you cannot compromise. If presentations must not be linkable even when the issuer and a verifier compare notes, only the two columns built on zero-knowledge proofs qualify. If the credential must be shown in person to readers already in the field, the choice is mdoc. If your ecosystem mandates the high-assurance profile, it names the selective-disclosure format and mdoc. If your counterparties already exchange messages between agents, AnonCreds and the data model have defined attachments for that.
Answer six questions about your ecosystem and see these five formats ranked, with this table’s cells as the reasons.
Each cell cites the clause that states it; the sources are listed below with their versions.
| SD-JWT VC | mdoc | AnonCreds | Data model, in an envelope | Data model, with BBS proofs | |
|---|---|---|---|---|---|
| Encoding | JSON, signed as a token, with separate disclosures RFC9901 §4 | CBOR, with a signed security object ISO-WG10-18013-5-ED2-WD §12.3.4 | JSON objects, signed with a scheme built for proofs ANONCREDS-1.0 §7 | JSON-LD in a signed envelope W3C-VC-JOSE-COSE-1.0 §3 | JSON-LD with an embedded proof W3C-VC-DATA-INTEGRITY-1.0 §2.1 W3C-VC-DI-BBS-1.0 §3 |
| Selective disclosure | Salted digests RFC9901 §4.2 | A salted digest per element ISO-WG10-18013-5-ED2-WD §12.3 | Per attribute, inside a proof ANONCREDS-1.0 §9 | When the envelope is the selective-disclosure one W3C-VC-JOSE-COSE-1.0 §3.2 | Derived proofs W3C-VC-DI-BBS-1.0 §6.2 |
| Unlinkable across verifiers | Only with several single-use copies RFC9901 §10.1 OPENID4VCI-1.0 §14.6 | Only with several single-use copies OPENID4VCI-1.0 §14.6, by the same reused-signature property; the standard does not state it | By construction W3C-VC-DATA-MODEL-2.0 §5.7 | Only with several single-use copies, as for the selective-disclosure envelope | By construction, unless what the holder chooses to reveal links them W3C-VC-DI-BBS-1.0 §6.2 W3C-VC-DI-BBS-1.0 §6.2.5 |
| Predicates | Only claims the issuer computed in advance | Age claims computed in advance ISO-WG10-18013-5-ED2-WD §13.4.6; proof structures in the draft second edition ISO-WG10-18013-5-ED2-WD §10.2.7 | Yes ANONCREDS-1.0 §9.1 | None in the securing mechanism | Not among the suite’s features W3C-VC-DI-BBS-1.0 §4.4, as we read that list |
| Holder binding | A key in the token, and a key-binding token RFC9901 §4.1.2 RFC9901 §4.3 | A device key, and device authentication ISO-WG10-18013-5-ED2-WD §12.4 | A link secret ANONCREDS-1.0 §7.4 | A key in the credential, or a holder-signed presentation W3C-VC-DATA-MODEL-2.0 §4.13 | Anonymous holder binding, and pseudonyms W3C-VC-DI-BBS-1.0 §4.1 |
| Status | A token status list DRAFT-IETF-OAUTH-STATUS-LIST-21 §6.2 | A validity window, and the security object’s status ISO-WG10-18013-5-ED2-WD §12.3.4 ISO-WG10-18013-5-ED2-WD §12.3.6 | A revocation registry, with a proof of non-revocation ANONCREDS-1.0 §10 | A bitstring status list W3C-BITSTRING-STATUS-LIST-1.0 §2 | A bitstring status list W3C-BITSTRING-STATUS-LIST-1.0 §2 |
| Issuer key and trust anchor | Issuer metadata, a certificate, or a DID DRAFT-IETF-OAUTH-SD-JWT-VC-19 §2.5 | Certificate chains ISO-WG10-18013-5-ED2-WD §12.8.1 | A credential definition on a registry ANONCREDS-METHODS-REGISTRY | The issuer’s identifier and verification method W3C-VC-DATA-MODEL-2.0 §4.7 | As for the enveloped data model W3C-VC-DATA-MODEL-2.0 §4.7 |
| Channels | Issuance OPENID4VCI-1.0 §A.3, presentation OPENID4VP-1.0 §B.3, the browser’s credential interface W3C-DIGITAL-CREDENTIALS | Proximity ISO-WG10-18013-5-ED2-WD §9 ISO-WG10-18013-5-ED2-WD §11, online ISO-TS-18013-7 OPENID4VP-1.0 §B.2, the browser’s interface W3C-DIGITAL-CREDENTIALS | Agent messages for issuing and presenting ARIES-RFC-0771 | Issuance OPENID4VCI-1.0 §A.1, presentation OPENID4VP-1.0 §B.1, agent message attachments | As for the enveloped data model |
| High-assurance profile | Yes HAIP-1.0 §6.1 | Yes HAIP-1.0 §5.3.1 | Not profiled | Not profiled | Not profiled |
- The rows on unlinkability and status are the privacy rows: they decide what verifiers can link, and whether the issuer learns about each use (4.5 Who can see what, across the whole lifecycle).
- The table compares formats, not products: what a given wallet or library implements of each column is a separate question.
- ANONCREDS-1.0 AnonCreds Specification
- ANONCREDS-METHODS-REGISTRY AnonCreds Methods Registry
- ARIES-RFC-0771 Aries RFC 0771: AnonCreds Attachment Formats for Requesting and Presenting Credentials
- DRAFT-IETF-OAUTH-SD-JWT-VC-19 SD-JWT-based Verifiable Digital Credentials (SD-JWT VC)
- DRAFT-IETF-OAUTH-STATUS-LIST-21 Token Status List (TSL)
- HAIP-1.0 OpenID4VC High Assurance Interoperability Profile 1.0
- ISO-TS-18013-7 ISO/IEC TS 18013-7:2025 mDL add-on functions (Annex C, org-iso-mdoc)
- 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
- OPENID4VCI-1.0 OpenID for Verifiable Credential Issuance 1.0
- OPENID4VP-1.0 OpenID for Verifiable Presentations 1.0
- RFC9901 Selective Disclosure for JSON Web Tokens
- W3C-BITSTRING-STATUS-LIST-1.0 Bitstring Status List v1.0
- W3C-DIGITAL-CREDENTIALS Digital Credentials API
- W3C-VC-DATA-INTEGRITY-1.0 Verifiable Credential Data Integrity 1.0
- W3C-VC-DATA-MODEL-2.0 Verifiable Credentials Data Model v2.0
- W3C-VC-DI-BBS-1.0 Data Integrity BBS Cryptosuites v1.0
- W3C-VC-JOSE-COSE-1.0 Securing Verifiable Credentials using JOSE and COSE