From 6c2c8381af8cd3d77be0b2bbd5a5c9f35ca0ca3a Mon Sep 17 00:00:00 2001 From: Timo Glastra Date: Thu, 16 Nov 2023 16:39:31 +0700 Subject: [PATCH] fix: update to vct Signed-off-by: Timo Glastra --- draft-oid4vc-haip-sd-jwt-vc.md | 4 ++-- examples/authorization_details_sd_jwt_vc.json | 2 +- examples/credential_metadata_sd_jwt_vc.json | 4 ++-- examples/credential_request_sd_jwt_vc.json | 2 +- examples/presentation_definition_sd_jwt_vc.json | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/draft-oid4vc-haip-sd-jwt-vc.md b/draft-oid4vc-haip-sd-jwt-vc.md index e754615..279c8e0 100644 --- a/draft-oid4vc-haip-sd-jwt-vc.md +++ b/draft-oid4vc-haip-sd-jwt-vc.md @@ -301,7 +301,7 @@ The following is a non-normative example of an object comprising `credentials_su The following additional claims are defined for this Credential format. -* `credential_definition`: REQUIRED. JSON object containing the detailed description of the credential type. It MUST contain at least `type` property as defined in (#server_metadata_vc_sd-jwt). +* `credential_definition`: REQUIRED. JSON object containing the detailed description of the credential type. It MUST contain at least `vct` property as defined in (#server_metadata_vc_sd-jwt). The following is a non-normative example of an object comprising `credentials_supported` parameter of Credential format `vc+sd-jwt`. @@ -311,7 +311,7 @@ The following is a non-normative example of an object comprising `credentials_su The following additional claims are defined for authorization details of type `openid_credential` and this Credential format. -* `credential_definition`: REQUIRED. JSON object containing the detailed description of the credential type. It MUST contain at least `type` property as defined in (#server_metadata_vc_sd-jwt). It MAY contain `claims` property as defined in (#server_metadata_vc_sd-jwt). +* `credential_definition`: REQUIRED. JSON object containing the detailed description of the credential type. It MUST contain at least `vct` property as defined in (#server_metadata_vc_sd-jwt). It MAY contain `claims` property as defined in (#server_metadata_vc_sd-jwt). The following is a non-normative example of an authorization details object with Credential format `vc+sd-jwt`. diff --git a/examples/authorization_details_sd_jwt_vc.json b/examples/authorization_details_sd_jwt_vc.json index 1be0667..2597243 100644 --- a/examples/authorization_details_sd_jwt_vc.json +++ b/examples/authorization_details_sd_jwt_vc.json @@ -3,7 +3,7 @@ "type": "openid_credential", "format": "vc+sd-jwt", "credential_definition": { - "type": "IdentityCredential" + "vct": "IdentityCredential" } } ] \ No newline at end of file diff --git a/examples/credential_metadata_sd_jwt_vc.json b/examples/credential_metadata_sd_jwt_vc.json index ed8f1de..a723acd 100644 --- a/examples/credential_metadata_sd_jwt_vc.json +++ b/examples/credential_metadata_sd_jwt_vc.json @@ -16,7 +16,7 @@ } ], "credential_definition": { - "type": "IdentityCredential", + "vct": "IdentityCredential", "claims": { "given_name": { "display": [ @@ -60,7 +60,7 @@ { - "type": "IdentityCredential", + "vct": "IdentityCredential", "given_name": "John", "family_name": "Doe", } \ No newline at end of file diff --git a/examples/credential_request_sd_jwt_vc.json b/examples/credential_request_sd_jwt_vc.json index 350b126..430e54d 100644 --- a/examples/credential_request_sd_jwt_vc.json +++ b/examples/credential_request_sd_jwt_vc.json @@ -1,7 +1,7 @@ { "format": "vc+sd-jwt", "credential_definition": { - "type": "IdentityCredential" + "vct": "IdentityCredential" }, "proof": { "proof_type": "jwt", diff --git a/examples/presentation_definition_sd_jwt_vc.json b/examples/presentation_definition_sd_jwt_vc.json index 5194d7e..de43d46 100644 --- a/examples/presentation_definition_sd_jwt_vc.json +++ b/examples/presentation_definition_sd_jwt_vc.json @@ -11,7 +11,7 @@ "fields": [ { "path": [ - "$.type" + "$.vct" ], "filter": { "type": "string",