3.5 · Credential formatsWorking
Types, schemas and display metadata
A verifier needs to know what kind of credential it is looking at, and a wallet needs to know how to show it. Each format answers in its own way: credentials in the data model carry types and optional schemas; the selective-disclosure format uses a type identifier with type and display metadata; mdoc uses a document type and namespaces; AnonCreds uses a schema and a credential definition.
The title and layout of a paper form.
Where it breaks:
- The type is an identifier for machines, not a title for people.
- Display rules are the issuer’s suggestion; the wallet decides.
- A type says nothing about whether the issuer is allowed to issue it (9.1 Trust frameworks and trust registries).
Types W3C-VC-DATA-MODEL-2.0 §4.5 and data schemas W3C-VC-DATA-MODEL-2.0 §4.11 in the data model; the selective-disclosure format’s type DRAFT-IETF-OAUTH-SD-JWT-VC-19 §2.2.2.1 and display metadata DRAFT-IETF-OAUTH-SD-JWT-VC-19 §5.5; an mdoc’s document type and namespace ISO-WG10-18013-5-ED2-WD §13.4.1; and the issuer metadata a wallet reads before issuance OPENID4VCI-1.0 §12.2.
| Format | Type | Schema | Display |
|---|---|---|---|
| Data model credential | Its type list | Optional data schemas | The issuer’s metadata |
| SD-JWT VC | A “vct” value | In the type metadata | Display metadata, per type |
| mdoc | A document type | Namespaces of elements | The issuer’s metadata |
| AnonCreds | A credential definition | A published schema | The issuer’s metadata |
- Type and display metadata are public. Fetching them at presentation time can tell their host which type a verifier is checking.
- A type does not make a credential trustworthy, and display metadata does not make it accurate.
- DRAFT-IETF-OAUTH-SD-JWT-VC-19 SD-JWT-based Verifiable Digital Credentials (SD-JWT VC)
- 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
- W3C-VC-DATA-MODEL-2.0 Verifiable Credentials Data Model v2.0