From 612da5f9bbb82e1c86860dd7ae53e676d92a81cb Mon Sep 17 00:00:00 2001 From: Paul Bastian Date: Tue, 24 Oct 2023 13:58:59 +0200 Subject: [PATCH] issuer metadata: add id and fix markdown --- .gitignore | 1 + draft-oid4vc-haip-sd-jwt-vc.md | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 806286a..d1f32f8 100644 --- a/.gitignore +++ b/.gitignore @@ -19,3 +19,4 @@ archive.json package-lock.json report.xml !requirements.txt +lib/ diff --git a/draft-oid4vc-haip-sd-jwt-vc.md b/draft-oid4vc-haip-sd-jwt-vc.md index 3147d58..0307807 100644 --- a/draft-oid4vc-haip-sd-jwt-vc.md +++ b/draft-oid4vc-haip-sd-jwt-vc.md @@ -283,12 +283,16 @@ The Credential format identifier is `vc+sd-jwt`. This format identifier is used The following additional Credential Issuer metadata are defined for this Credential format to be used in addition to those defined in Section 10.2 of [@!OIDF.OID4VCI]. -* `credential_definition`: REQUIRED. JSON object containing the detailed description of the credential type. It consists at least of the following two sub elements: +* `credential_definition`: REQUIRED. JSON object containing the detailed description of the credential type. It consists at least of the following three sub elements: + + * `id`: REQUIRED. JSON string designating the type of a credential as defined in [@!OIDF.OID4VCI]. * `type`: REQUIRED. JSON string designating the type of a credential as defined in [@!I-D.ietf-oauth-sd-jwt-vc], Section 4.2.2.1. * `claims`: OPTIONAL. A JSON object containing a list of name/value pairs, where each name identifies a claim offered in the Credential. The value can be another such object (nested data structures), or an array of such objects. To express the specifics about the claim, the most deeply nested value MAY be a JSON object that includes a following non-exhaustive list of parameters defined by this specification: + * `mandatory`: OPTIONAL. Boolean which when set to `true` indicates the claim MUST be present in the issued Credential. If the `mandatory` property is omitted its default should be assumed to be `false`. * `value_type`: OPTIONAL. String value determining type of value of the claim. A non-exhaustive list of valid values defined by this specification are `string`, `number`, and image media types such as `image/jpeg` as defined in IANA media type registry for images (https://www.iana.org/assignments/media-types/media-types.xhtml#image). * `display`: OPTIONAL. An array of objects, where each object contains display properties of a certain claim in the Credential for a certain language. Below is a non-exhaustive list of valid parameters that MAY be included: + * `name`: OPTIONAL. String value of a display name for the claim. * `locale`: OPTIONAL. String value that identifies language of this object represented as language tag values defined in BCP47 [@!RFC5646]. There MUST be only one object for each language identifier. * `order`: OPTIONAL. An array of claims.display.name values that lists them in the order they should be displayed by the Wallet.