Skip to content

Commit e9e02bf

Browse files
authored
Include disclosure of age_equal_or_over/18 in the PID example (#216)
1 parent 5b93e96 commit e9e02bf

File tree

3 files changed

+17
-9
lines changed

3 files changed

+17
-9
lines changed

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,7 @@ draft-ietf-oauth-sd-jwt-vc.xml
2121
package-lock.json
2222
report.xml
2323
!requirements.txt
24+
25+
# Ignore output of examples except for specification.yml
26+
examples/*/*
27+
!examples/*/specification.yml

draft-ietf-oauth-sd-jwt-vc.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,7 @@ The following Disclosures are created by the Issuer:
754754

755755
{{examples/03-pid/disclosures.md}}
756756

757-
The following shows a presentation of the SD-JWT with a Key Binding JWT that discloses only the nationality of the Holder:
757+
The following shows a presentation of the SD-JWT with a Key Binding JWT that discloses only nationality and the fact that the person is over 18 years old:
758758

759759
<{{examples/03-pid/sd_jwt_presentation.txt}}
760760

@@ -784,6 +784,10 @@ for their contributions (some of which substantial) to this draft and to the ini
784784

785785
# Document History
786786

787+
-03
788+
789+
* Include disclosure of age_equal_or_over/18 in the PID example
790+
787791
-02
788792

789793
* Made specific rules for public verification key validation conditional

examples/03-pid/specification.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,19 @@ user_claims:
1919
country: DE
2020
!sd also_known_as: Schwester Agnes
2121
age_equal_or_over:
22-
!sd '12': true
23-
!sd '14': true
24-
!sd '16': true
25-
!sd '18': true
26-
!sd '21': true
27-
!sd '65': false
22+
!sd "12": true
23+
!sd "14": true
24+
!sd "16": true
25+
!sd "18": true
26+
!sd "21": true
27+
!sd "65": false
2828

2929

3030
holder_disclosed_claims:
3131
nationalities:
3232
- true
33-
#age_equal_or_over:
34-
# '18': true
33+
age_equal_or_over:
34+
"18": true
3535

3636
add_decoy_claims: false
3737
key_binding: true

0 commit comments

Comments
 (0)