From 7824442a84a7d39c661e0d250f79024355c4bc8c Mon Sep 17 00:00:00 2001 From: gabe Date: Fri, 25 Oct 2024 15:53:34 -0700 Subject: [PATCH] dip -> di --- .../client_metadata/client_client_id_did.json | 2 +- .../client_metadata/client_code_format.json | 2 +- examples/request/pd_dip_vc.json | 4 ++-- .../request/request_object_client_id_did.json | 2 +- .../vp_token_alternative_credentials.json | 2 +- .../request/vp_token_type_and_claims.json | 2 +- examples/request/vp_token_type_only.json | 2 +- .../vp_token_type_only_ac_and_ldp.json | 2 +- examples/response/id_token_is_jose_vp.json | 4 ++-- examples/response/id_token_ref_vp_token.json | 4 ++-- .../response/id_token_ref_vp_token_code.json | 4 ++-- .../id_token_ref_vp_token_multple_vps.json | 4 ++-- .../response/presentation_submission.json | 4 ++-- .../presentation_submission_multiple_vps.json | 4 ++-- examples/response/ps_dip_vc.json | 8 +++---- .../response/vp_token_dip_vp_with_ps.json | 2 +- openid-4-verifiable-presentations-1_0.md | 22 +++++++++---------- schema/request.json | 2 +- 18 files changed, 38 insertions(+), 38 deletions(-) diff --git a/examples/client_metadata/client_client_id_did.json b/examples/client_metadata/client_client_id_did.json index 72bd7b2..b3c03ab 100644 --- a/examples/client_metadata/client_client_id_did.json +++ b/examples/client_metadata/client_client_id_did.json @@ -10,7 +10,7 @@ "ES256K" ] }, - "dip_vp": { + "di_vp": { "proof_type": [ "DataIntegrityProof" ], diff --git a/examples/client_metadata/client_code_format.json b/examples/client_metadata/client_code_format.json index a3f0ffa..1059163 100644 --- a/examples/client_metadata/client_code_format.json +++ b/examples/client_metadata/client_code_format.json @@ -11,7 +11,7 @@ "ES256K" ] }, - "dip_vp": { + "di_vp": { "proof_type": [ "DataIntegrityProof" ], diff --git a/examples/request/pd_dip_vc.json b/examples/request/pd_dip_vc.json index 8d9b259..4cb9a8f 100644 --- a/examples/request/pd_dip_vc.json +++ b/examples/request/pd_dip_vc.json @@ -1,10 +1,10 @@ { - "id": "example_dip_vc", + "id": "example_di_vc", "input_descriptors": [ { "id": "id_credential", "format": { - "dip_vc": { + "di_vc": { "proof_type": [ "DataIntegrityProof" ], diff --git a/examples/request/request_object_client_id_did.json b/examples/request/request_object_client_id_did.json index e4e628c..a894985 100644 --- a/examples/request/request_object_client_id_did.json +++ b/examples/request/request_object_client_id_did.json @@ -12,7 +12,7 @@ "ES256K" ] }, - "dip_vp": { + "di_vp": { "proof_type": [ "DataIntegrityProof" ], diff --git a/examples/request/vp_token_alternative_credentials.json b/examples/request/vp_token_alternative_credentials.json index 0659266..0f115f0 100644 --- a/examples/request/vp_token_alternative_credentials.json +++ b/examples/request/vp_token_alternative_credentials.json @@ -15,7 +15,7 @@ "A" ], "format": { - "dip_vc": { + "di_vc": { "proof_type": [ "DataIntegrityProof" ], diff --git a/examples/request/vp_token_type_and_claims.json b/examples/request/vp_token_type_and_claims.json index 7957a5b..35505ca 100644 --- a/examples/request/vp_token_type_and_claims.json +++ b/examples/request/vp_token_type_and_claims.json @@ -4,7 +4,7 @@ { "id": "ID card with constraints", "format": { - "dip_vc": { + "di_vc": { "proof_type": [ "DataIntegrityProof" ], diff --git a/examples/request/vp_token_type_only.json b/examples/request/vp_token_type_only.json index 9bbc01d..ebbaf94 100644 --- a/examples/request/vp_token_type_only.json +++ b/examples/request/vp_token_type_only.json @@ -4,7 +4,7 @@ { "id": "id card credential", "format": { - "dip_vc": { + "di_vc": { "proof_type": [ "DataIntegrityProof" ], diff --git a/examples/request/vp_token_type_only_ac_and_ldp.json b/examples/request/vp_token_type_only_ac_and_ldp.json index d11c956..42b45d7 100644 --- a/examples/request/vp_token_type_only_ac_and_ldp.json +++ b/examples/request/vp_token_type_only_ac_and_ldp.json @@ -9,7 +9,7 @@ { "id": "id card credential", "format": { - "dip_vc": { + "di_vc": { "proof_type": [ "DataIntegrityProof" ], diff --git a/examples/response/id_token_is_jose_vp.json b/examples/response/id_token_is_jose_vp.json index 461f621..7652eaf 100644 --- a/examples/response/id_token_is_jose_vp.json +++ b/examples/response/id_token_is_jose_vp.json @@ -79,7 +79,7 @@ "path": "$", "path_nested": { "path": "$.verifiableCredential[0]", - "format": "dip_vp" + "format": "di_vp" } }, { @@ -87,7 +87,7 @@ "id": "vaccination certificate", "path_nested": { "path": "$.verifiableCredential[1]", - "format": "dip_vp" + "format": "di_vp" } } ], diff --git a/examples/response/id_token_ref_vp_token.json b/examples/response/id_token_ref_vp_token.json index f13da32..b9adfcb 100644 --- a/examples/response/id_token_ref_vp_token.json +++ b/examples/response/id_token_ref_vp_token.json @@ -18,10 +18,10 @@ "descriptor_map": [ { "id": "ID Card with constraints", - "format": "dip_vp", + "format": "di_vp", "path": "$", "path_nested": { - "format": "dip_vc", + "format": "di_vc", "path": "$.verifiableCredential[0]" } } diff --git a/examples/response/id_token_ref_vp_token_code.json b/examples/response/id_token_ref_vp_token_code.json index ebdc808..2afb0f8 100644 --- a/examples/response/id_token_ref_vp_token_code.json +++ b/examples/response/id_token_ref_vp_token_code.json @@ -13,10 +13,10 @@ "descriptor_map": [ { "id": "ID Card with constraints", - "format": "dip_vp", + "format": "di_vp", "path": "$", "path_nested": { - "format": "dip_vc", + "format": "di_vc", "path": "$.verifiableCredential[0]" } } diff --git a/examples/response/id_token_ref_vp_token_multple_vps.json b/examples/response/id_token_ref_vp_token_multple_vps.json index ea01b21..6818e68 100644 --- a/examples/response/id_token_ref_vp_token_multple_vps.json +++ b/examples/response/id_token_ref_vp_token_multple_vps.json @@ -18,10 +18,10 @@ "descriptor_map": [ { "id": "ID Card with constraints", - "format": "dip_vp", + "format": "di_vp", "path": "$[0]", "path_nested": { - "format": "dip_vc", + "format": "di_vc", "path": "$[0].verifiableCredential[0]" } }, diff --git a/examples/response/presentation_submission.json b/examples/response/presentation_submission.json index dea8ccb..4125b47 100644 --- a/examples/response/presentation_submission.json +++ b/examples/response/presentation_submission.json @@ -4,10 +4,10 @@ "descriptor_map": [ { "id": "ID card with constraints", - "format": "dip_vp", + "format": "di_vp", "path": "$", "path_nested": { - "format": "dip_vc", + "format": "di_vc", "path": "$.verifiableCredential[0]" } } diff --git a/examples/response/presentation_submission_multiple_vps.json b/examples/response/presentation_submission_multiple_vps.json index 8490382..629fc3b 100644 --- a/examples/response/presentation_submission_multiple_vps.json +++ b/examples/response/presentation_submission_multiple_vps.json @@ -4,10 +4,10 @@ "descriptor_map": [ { "id": "ID Card with constraints", - "format": "dip_vp", + "format": "di_vp", "path": "$[0]", "path_nested": { - "format": "dip_vc", + "format": "di_vc", "path": "$.verifiableCredential[0]" } }, diff --git a/examples/response/ps_dip_vc.json b/examples/response/ps_dip_vc.json index c525332..b1c331c 100644 --- a/examples/response/ps_dip_vc.json +++ b/examples/response/ps_dip_vc.json @@ -1,13 +1,13 @@ { - "definition_id": "example_dip_vc", - "id": "example_dip_vc_presentation_submission", + "definition_id": "example_di_vc", + "id": "example_di_vc_presentation_submission", "descriptor_map": [ { "id": "id_credential", "path": "$", - "format": "dip_vp", + "format": "di_vp", "path_nested": { - "format": "dip_vc", + "format": "di_vc", "path": "$.verifiableCredential[0]" } } diff --git a/examples/response/vp_token_dip_vp_with_ps.json b/examples/response/vp_token_dip_vp_with_ps.json index 6a73c56..40fe02b 100644 --- a/examples/response/vp_token_dip_vp_with_ps.json +++ b/examples/response/vp_token_dip_vp_with_ps.json @@ -46,7 +46,7 @@ "descriptor_map": [ { "id": "ID Card with constraints", - "format": "dip_vc", + "format": "di_vc", "path": "$.verifiableCredential[0]" } ] diff --git a/openid-4-verifiable-presentations-1_0.md b/openid-4-verifiable-presentations-1_0.md index f086ee8..4e83817 100644 --- a/openid-4-verifiable-presentations-1_0.md +++ b/openid-4-verifiable-presentations-1_0.md @@ -107,7 +107,7 @@ Cryptographic Holder Binding: : Ability of the Holder to prove legitimate possession of a Verifiable Credential by proving control over the same private key during the issuance and presentation. Mechanism might depend on the Credential Format. For example, in `jose_vc` Credential Format, a Verifiable Credential with Cryptographic Holder Binding contains a public key or a reference to a public key that matches to the private key controlled by the Holder. Claims-based Holder Binding: -: Ability of the Holder to prove legitimate possession of a Verifiable Credential by proofing certain claims, e.g., name and date of birth, for example by presenting another Verifiable Credential. Claims-based Holder Binding allows long term, cross device use of a Credential as it does not depend on cryptographic key material stored on a certain device. One example of such a Verifiable Credential could be a Diploma. +: Ability of the Holder to prove legitimate possession of a Verifiable Credential by proofing certain claims, e.g., name and date of birth, for example by presenting another Verifiable Credential. Claims-based Holder Binding allows long term, cross device use of a Credential as it does not depend on cryptographic key material stored on a certain device. One example of such a Verifiable Credential could be a diloma. Biometrics-based Holder Binding: : Ability of the Holder to prove legitimate possession of a Verifiable Credential by demonstrating a certain biometric trait, such as finger print or face. One example of a Verifiable Credential with biometric Holder Binding is a mobile driving license [@ISO.18013-5], which contains a portrait of the Holder. @@ -398,7 +398,7 @@ Content-Type: application/json { "id": "id card credential", "format": { - "dip_vc": { + "di_vc": { "proof_type": [ "DataIntegrityProof" ], @@ -533,7 +533,7 @@ Location: https://client.example.org/universal-link? &presentation_definition=... &nonce=n-0S6_WzA2Mj &client_metadata=%7B%22vp_formats%22:%7B%22jose_vp%22:% - 7B%22alg%22:%5B%22EdDSA%22,%22ES256K%22%5D%7D,%22dip + 7B%22alg%22:%5B%22EdDSA%22,%22ES256K%22%5D%7D,%22di _vc%22:%7B%22proof_type%22:%5B%22DataIntegrityProof%22%5D,%22 cryptosuite%22:%5B%22ecdsa-sd-2023%22%5D%7D%7D%7D ``` @@ -1011,7 +1011,7 @@ brevity): The following is a non-normative example of a VP Token containing a single Verifiable Presentation after a request using Presentation Exchange: -<{{examples/response/vp_token_raw_dip_vp.json}} +<{{examples/response/vp_token_raw_di_vp.json}} The following is a non-normative example of a `presentation_submission` parameter sent alongside a VP Token in the example above. It corresponds to the second Presentation Definition example in (#request_presentation_definition): @@ -1542,7 +1542,7 @@ The following is a non-normative example of the payload of a Verifiable Presenta In the example above, the requested `nonce` value is included as the `nonce` and `client_id` as the `aud` value in the proof of the Verifiable Presentation. -The following is a non-normative example of a Verifiable Presentation of a format identifier `dip_vp` with an embedded `proof` property: +The following is a non-normative example of a Verifiable Presentation of a format identifier `di_vp` with an embedded `proof` property: ```json { @@ -2112,7 +2112,7 @@ Note: The VP's `nonce` claim contains the value of the `nonce` of the presentati This section illustrates presentation of a Credential conformant to [@VC_DATA] that is secured using Data Integrity, using JSON-LD. -The Credential format identifiers are `dip_vc` for a W3C Verifiable Credential and `dip_vp` for W3C Verifiable Presentation. +The Credential format identifiers are `di_vc` for a W3C Verifiable Credential and `di_vp` for W3C Verifiable Presentation. Cipher suites should use securing mechanisms names defined in [Securing Mechanisms sectino of the Verifiable Credential Extensions Note](https://www.w3.org/TR/vc-extensions/#securing-mechanisms). @@ -2120,7 +2120,7 @@ Cipher suites should use securing mechanisms names defined in [Securing Mechanis The following is a non-normative example of the payload of a Verifiable Credential that will be used throughout this section: -<{{examples/credentials/dip_vc.json}} +<{{examples/credentials/di_vc.json}} #### Presentation Request @@ -2130,9 +2130,9 @@ The following is a non-normative example of an Authorization Request: The following is a non-normative example of the contents of a `presentation_definition` parameter that contains the requirements regarding the Credential to be presented: -<{{examples/request/pd_dip_vc.json}} +<{{examples/request/pd_di_vc.json}} -This `presentation_definition` parameter contains a single `input_descriptor` element, which sets the desired format to DIP VC and defines a constraint over the `type` parameter to select Verifiable Credentials of type `IDCredential`. +This `presentation_definition` parameter contains a single `input_descriptor` element, which sets the desired format to di VC and defines a constraint over the `type` parameter to select Verifiable Credentials of type `IDCredential`. #### Presentation Response @@ -2142,11 +2142,11 @@ The following is a non-normative example of an Authorization Response: The following is a non-normative example of the content of the `presentation_submission` parameter: -<{{examples/response/ps_dip_vc.json}} +<{{examples/response/ps_di_vc.json}} The following is a non-normative example of the Verifiable Presentation in the `vp_token` parameter provided in the same response and referred to by the `presentation_submission` above: -<{{examples/response/dip_vp.json}} +<{{examples/response/di_vp.json}} Note: The VP's `challenge` claim contains the value of the `nonce` of the presentation request and the `domain` claims contains the Client Identifier of the Verifier. This allows the Verifier to detect replay of a presentation as recommended in (#preventing-replay). diff --git a/schema/request.json b/schema/request.json index 28b3cc8..6304bef 100644 --- a/schema/request.json +++ b/schema/request.json @@ -42,7 +42,7 @@ "required": ["alg"], "additionalProperties": false }, - "^dip_vc$|^dip_vp$|^dip$": { + "^di_vc$|^di_vp$|^di$": { "type": "object", "properties": { "proof_type": {