Conversation
Structure agreed at the 2026-08-31 meeting: one normative annex per credential format, with a generic extension point so other documents can define further formats. - New "Credential Formats" clause: the protocol is format agnostic, a "credential format definition" shall specify the ten items from #36, and the main body no longer names any format or annex. - New annexes for ISO mdoc and SD-JWT VC with identical headings in the order of the #21/#22 checklists; existing format text moves there. - format_extensions and CredentialItem.data become CDDL sockets ($formatExtensions, $CredentialData); the undefined ZkDocument / zkFormatExtensions alternatives go away. - ISO/IEC 18013-5, RFC 9901 and draft-ietf-oauth-sd-jwt-vc added to Normative references. - SD-JWT VC format identifier is now dc+sd-jwt; vc+sd-jwt as a mimetype means a w3c vc encoded in sd-jwt; vp uses dc+sd-jwt. New text added by this PR: case-sensitive credential_type matching; mdoc elements may be issuer- or device-signed; mdoc issuer identifiers match the AKI of a certificate in the IssuerAuth x5chain; KB-JWT may be omitted only when support_no_cryptographic_binding is true; for mdocs that flag maps to nonKeyBoundSupported from the 18013-5 second edition DIS text (#56). Left "To be completed": value matching (#9), transaction data (#4), SessionTranscript derivation and KB-JWT nonce/aud (#10), non-X.509 issuer identification for SD-JWT VC. Raised separately: array elements in path (#52), vct inheritance (#53), mdoc alg value names and matching rule (#54) There's now no mention of ZKP responses - that's already recorded in #17 closes #21, #22, #36
|
📄 Editor's Copy preview Preview of e2e5d7d; updated on every push. For review only — the official specifications are published at https://openid.net/specs/ |
|
Joseph presented this on today's PR. Oliver & Martijn agreed to review. The CDDL socket syntax wasn't familiar to people on the call and maybe we want to consider other options, but that's editorial and as it is may be more readable to AIs. |
The SD-JWT VC annex only said the x509_ref values are compared against the x5c chain, without saying what outcome satisfies the request. Use the same rule as the mdoc annex.
The previous text let the wallet drop the KB-JWT from a key-bound SD-JWT VC whenever support_no_cryptographic_binding was true. That is a downgrade the mdoc annex does not permit (a key-bound mdoc always carries DeviceSigned) and OpenID4VP does not permit either. Tie the permission to the absence of cnf, matching the mdoc rule.
IssuerSignedItems is not a structure in ISO/IEC 18013-5; the standard has IssuerSignedItem entries under IssuerNameSpaces and DeviceSignedItems under DeviceNameSpaces.
The mdoc annex introduction presented its list as the structures the annex refers to, but omitted IssuerAuth, the MSO, KeyAuthorizations, IssuerNameSpaces, DeviceNameSpaces and DeviceSignedItems, all used later in the annex. The SD-JWT VC annex uses the x5c header, which comes from RFC 7515 rather than the SD-JWT documents.
The annexes say format carries the same value as credential_format, but the main-body table did not connect the field to the extension point.
The note that an mDL is always key-bound also relies on the unpublished second edition text, so move the editor's note ahead of it and say it covers both.
| ```cddl | ||
| $CredentialData /= Document | ||
|
|
||
| Document = bstr ; CBOR-encoded ISO/IEC 18013-5 Document structure |
There was a problem hiding this comment.
Not sure if this correct. A byte string containing an encoded map is not the same type as the map. Note that further up, we define Document as defined in ISO 18013-5 with docType etc map elements.
There was a problem hiding this comment.
I hopefully resolved this in commit 3556a6e by renaming the element we define to MdocData.
|
Furthermore, we might need to create an issue to fix the toolchain (not necessarily in this PR) because the word document numbers the annexes as ordinary clauses, e.g., "13 ISO mdoc Credential Format". |
Co-authored-by: Oliver Terbu <o.terbu@gmail.com>
Good point - raised #60 for this, thanks. |
The SD-JWT VC annex cites it for the x5c JOSE header. Addresses Oliver's comment in #57 (comment)
|
@redsstriker volunteered to review as well. |
The mdoc annex introduction says Document is one of the structures defined in ISO/IEC 18013-5, where it is a CBOR map, but the annex CDDL then declared Document = bstr. Name our type MdocData and define it as bstr .cbor Document so the ISO name keeps its ISO meaning and the wire format (a byte string holding the encoded Document) is unchanged. Addresses Oliver's review comment on #57.
Each annex said in prose that its type extends the $CredentialData or $formatExtensions socket, immediately before the CDDL line that says the same thing. The Credential Formats clause already states the general rule once, so remove the four repetitions.
|
PR has been updated - Needs review |
Structure agreed at the 2026-08-31 meeting: one normative annex per credential format, with a generic extension point so other documents can define further formats.
New text added by this PR: case-sensitive credential_type matching; mdoc elements may be issuer- or device-signed; mdoc issuer identifiers match the AKI of a certificate in the IssuerAuth x5chain; KB-JWT may be omitted only when support_no_cryptographic_binding is true; for mdocs that flag maps to nonKeyBoundSupported from the 18013-5 second edition DIS text (#56).
Left "To be completed": value matching (#9), transaction data (#4), SessionTranscript derivation and KB-JWT nonce/aud (#10), non-X.509 issuer identification for SD-JWT VC.
Raised separately: array elements in path (#52), vct inheritance (#53), mdoc alg value names and matching rule (#54)
There's now no mention of ZKP responses - that's already recorded in #17
closes #21, #22, #36