Skip to content

Commit

Permalink
Remove purpose from credential query language proposal
Browse files Browse the repository at this point in the history
  • Loading branch information
danielfett committed Aug 20, 2024
1 parent 8db4ddb commit acdfd88
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 36 deletions.
4 changes: 0 additions & 4 deletions examples/query_lang/multi_credentials.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
"vc+sd-jwt": {
"vct_values": [ "https://example.com/personal_identity" ]
},
"purpose": [{
"lang": "en-US",
"text": "To prove the identity of the holder"
}],
"claims": [
{ "path": [ "last_name" ] },
{ "path": [ "given_name" ] },
Expand Down
13 changes: 0 additions & 13 deletions examples/query_lang/nested_claim_queries.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,6 @@
"alg_values": [ "ES256", "ES384" ],
"sd_alg_values": [ "SHA-256" ]
},
"purpose": [{
"lang": "en-US",
"text": "To prove the identity of the holder"
},
{
"lang": "no-NO",
"text": "For å bevise innehaverens identitet"
},
{
"lang": "jp-JP",
"text": "保持者の身元を証明するため"
}
],
"claims": [
{ "path": [ "last_name" ] },
{
Expand Down
20 changes: 1 addition & 19 deletions openid-4-verifiable-presentations-1_0.md
Original file line number Diff line number Diff line change
Expand Up @@ -751,23 +751,6 @@ In detail, the array is processed by the Wallet from left to right as follows:
The result of the processing is the set of elements which is requested for
presentation.


## Purpose Description {#purpose_description}

A purpose description array is an object that describes the purpose for which
the Verifier is requesting the Verifiable Credential. It can contain multiple
objects, each describing the purpose in a specific language. Each object
contains the following properties:

`lang:`
: REQUIRED. A string that specifies the language of the purpose
description. The value of this property MUST be a valid language tag as defined
in [@!BCP47].

`text`:
: REQUIRED. A string that contains the purpose description in the
language specified by the `lang` property.

## Credential Rules {#credential_rules}

Just as for claims, the Verifier can define rules that specify which
Expand Down Expand Up @@ -2254,8 +2237,7 @@ Credential in the format `mso_mdoc` with the claims `vehicle_holder` and

<{{examples/query_lang/simple_mdoc.json}}

The following is a non-normative example of a VP Query that shows the usage of
the `purpose` property, and requests the claim `last_name` and
The following is a non-normative example of a VP Query that requests the claim `last_name` and

- either the claim `postal_code`, or
- the claims `locality` and `region`:
Expand Down

0 comments on commit acdfd88

Please sign in to comment.