Repository navigation
Move credential format specific details into per-format annexes - #57
Conversation
|
📄 Editor's Copy preview Preview of bb535de; 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. |
|
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". |
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.
|
PR has been updated - Needs review |
|
Then how to avoid collision of credential format definition? |
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.
Co-authored-by: Oliver Terbu <[email protected]>
The SD-JWT VC annex cites it for the x5c JOSE header. Addresses Oliver's comment in #57 (comment)
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.
Co-authored-by: Martijn Haring <[email protected]> Co-authored-by: Gareth Oliver <[email protected]> Co-authored-by: Oliver Terbu <[email protected]> Co-authored-by: Joseph Heenan <[email protected]>
Martijn and Gareth both asked for the sentence to go: DCHP should not define itself in terms of the ISO/IEC 18013-5 request structure it may replace. DocRequestInfo is no longer referred to, so it leaves the list of borrowed structures too.
The mDL key-binding note the #56 editor's note pointed to has been removed, and item 10 of the format definition requirements lost its full stop when the review suggestion was applied.
(also remove a stray DOS line ending the github web interface added) Co-authored-by: Oliver Terbu <[email protected]>
A suggestion applied in the GitHub web UI converted the whole draft to CRLF, which showed every line as changed and left review comments detached from their lines. I don't know if the web interface pays attentions to .gitattributes but I don't think it can make things worse.
Co-authored-by: Oliver Terbu <[email protected]>
Covers age_over_NN, whose nearest-attestation rule is defined in both ISO/IEC 18013-5 and ISO/IEC TS 23220-2 (used by PhotoID). Co-authored-by: Gareth Oliver <[email protected]>
Adds RFC 5280 to the Normative references. Co-authored-by: Oliver Terbu <[email protected]>
The response field carries the same value as credential_format in the request, so use the same name and drop the annex sentences that said so. The map key is unchanged, so this does not affect the encoding. Suggested by Martijn Haring. Co-authored-by: Martijn Haring <[email protected]>
OpenID4VP and the ISO/IEC 18013-5 second edition DIS (Annex H.2) share the same claims path pointer algorithm, which needs path components other than tstr. Rather than describe a subset of it here, defer to #52. Co-authored-by: Martijn Haring <[email protected]>
Co-authored-by: Martijn Haring <[email protected]>
PR #61 turned CredentialQuery.credential_type into the credential_types array. Update the format definition requirements and the mdoc and SD-JWT VC credential type sections to describe matching per entry.
2b6b0f3 to
bb535de
Compare
|
rebase & force pushed - no conflicts needed to be resolved (as expected). |
|
WG discussion:
|
The SD-JWT VC annex cites it for the x5c JOSE header. Addresses Oliver's comment in #57 (comment)
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.
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:
Left "To be completed": SD-JWT VC path (#52), 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: SD-JWT VC path semantics, aligning with the OpenID4VP / 18013-5 claims path pointer (#52), vct inheritance and aka_vcts (#53), mdoc alg value names and matching rule (#54), collision-resistant credential format identifiers (#68), whether alg value lists are mandatory and how the wallet must treat them (#78)
There's now no mention of ZKP responses - that's already recorded in #17
closes #21, #22, #36