-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
8 approvals. open for more than a week. agreement to merge during WG calls, with a possibility of @paulbastian doing a PR adding examples of KB JWT. * Add annex for SD-JWT VC format * Fix formatting * Updated kb-jwt to include nonce and aud from the request * Clarify nonce and aud claims of kb-jwt as a note * Update presentation request to authorization request Co-authored-by: Brian Campbell <[email protected]> * Introduce unsecured sd-jwt vc payload to help explain how to match requested claims defined in PE * Add example of unsecured payload sd-jwt vc * Remove statement PD input_descriptor vc+sd-jwt format object to be empty * Add sd-jwt and kb-jwt algorithms to the PD example * Editorial: consistent use of IETF SD-JWT VC when mentioning the format * Capitalize Credentials Co-authored-by: Christian Bormann <[email protected]> * Simplify wording Co-authored-by: Christian Bormann <[email protected]> * Remove newlines from end of file * Remove .DS_Store file from credentials folder * Change protection of jwts into signing of jwts Co-authored-by: Kristina <[email protected]> * protection -> signing Co-authored-by: Paul Bastian <[email protected]> * verifier -> Verifier Co-authored-by: Oliver Terbu <[email protected]> * Small fix Co-authored-by: Oliver Terbu <[email protected]> * Apply suggestions from code review Co-authored-by: Oliver Terbu <[email protected]> --------- Co-authored-by: Brian Campbell <[email protected]> Co-authored-by: Christian Bormann <[email protected]> Co-authored-by: Kristina <[email protected]> Co-authored-by: Paul Bastian <[email protected]> Co-authored-by: Oliver Terbu <[email protected]>
- Loading branch information
1 parent
e6ebec4
commit e714728
Showing
8 changed files
with
195 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"vp_formats": { | ||
"vc+sd-jwt": { | ||
"sd-jwt_alg_values": ["ES256", "ES384"], | ||
"kb-jwt_alg_values": ["ES256", "ES384"] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"_sd": [ | ||
"3oUCnaKt7wqDKuyh-LgQozzfhgb8gO5Ni-RCWsWW2vA", | ||
"8z8z9X9jUtb99gjejCwFAGz4aqlHf-sCqQ6eM_qmpUQ", | ||
"Cxq4872UXXngGULT_kl8fdwVFkyK6AJfPZLy7L5_0kI", | ||
"TGf4oLbgwd5JQaHyKVQZU9UdGE0w5rtDsrZzfUaomLo", | ||
"jsu9yVulwQQlhFlM_3JlzMaSFzglhQG0DpfayQwLUK4", | ||
"sFcViHN-JG3eTUyBmU4fkwusy5I1SLBhe1jNvKxP5xM", | ||
"tiTngp9_jhC389UP8_k67MXqoSfiHq3iK6o9un4we_Y", | ||
"xsKkGJXD1-e3I9zj0YyKNv-lU5YqhsEAF9NhOr8xga4" | ||
], | ||
"iss": "https://example.com/issuer", | ||
"iat": 1683000000, | ||
"exp": 1883000000, | ||
"vct": "https://credentials.example.com/identity_credential", | ||
"_sd_alg": "sha-256", | ||
"cnf": { | ||
"jwk": { | ||
"kty": "EC", | ||
"crv": "P-256", | ||
"x": "TCAER19Zvu3OHF4j4W4vfSVoHIP1ILilDls7vCeGemc", | ||
"y": "ZxjiWWbZMQGHVWKVQ4hbSIirsVfuecCE6t4jT9F2HZQ" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"vct": "https://credentials.example.com/identity_credential", | ||
"given_name": "John", | ||
"family_name": "Doe", | ||
"birthdate": "1940-01-01" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"id": "example_sd_jwt_vc_request", | ||
"input_descriptors": [ | ||
{ | ||
"id": "identity_credential", | ||
"format": { | ||
"vc+sd-jwt": { | ||
"sd-jwt_alg_values": ["ES256", "ES384"], | ||
"kb-jwt_alg_values": ["ES256", "ES384"] | ||
} | ||
}, | ||
"constraints": { | ||
"limit_disclosure": "required", | ||
"fields": [ | ||
{ | ||
"path": ["$.vct"], | ||
"filter": { | ||
"type": "string", | ||
"const": "https://credentials.example.com/identity_credential" | ||
} | ||
}, | ||
{ | ||
"path": ["$.family_name"] | ||
}, | ||
{ | ||
"path": ["$.given_name"] | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"definition_id": "example_sd_jwt_vc_request", | ||
"id": "example_sd_jwt_vc_presentation_submission", | ||
"descriptor_map": [ | ||
{ | ||
"id": "identity_credential", | ||
"path": "$", | ||
"format": "vc+sd-jwt" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
eyJhbGciOiAiRVMyNTYiLCAidHlwIjogInZjK3NkLWp3dCIsICJraWQiOiAiZG9jLXNp | ||
Z25lci0wNS0yNS0yMDIyIn0.eyJfc2QiOiBbIjNvVUNuYUt0N3dxREt1eWgtTGdRb3p6 | ||
ZmhnYjhnTzVOaS1SQ1dzV1cydkEiLCAiOHo4ejlYOWpVdGI5OWdqZWpDd0ZBR3o0YXFs | ||
SGYtc0NxUTZlTV9xbXBVUSIsICJDeHE0ODcyVVhYbmdH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GciOiAiRVMyNTYiLCAidHlwIjogImtiK2p3dCJ9.eyJub25jZS | ||
I6ICJuLTBTNl9XekEyTWoiLCAiYXVkIjogImh0dHBzOi8vZXhhbXBsZS5jb20vdmVyaW | ||
ZpZXIiLCAiaWF0IjogMTcwOTgzODYwNCwgInNkX2hhc2giOiAiRHktUll3WmZhYW9DM2 | ||
luSmJMc2xnUHZNcDA5YkgtY2xZUF8zcWJScXRXNCJ9.RmgIhqCHYWerxbDboMuB0lli6 | ||
3HPJHI9Vl2ZNOGh20C7_6p7nf3Wkd2wkx5WlmwTwtHKc87MBY2nuRLoeduQMA |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters