Skip to content

Commit

Permalink
changed metadata claim names as proposed by Mike
Browse files Browse the repository at this point in the history
  • Loading branch information
tlodderstedt committed Oct 4, 2023
1 parent 8fbc5c5 commit 248a2c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions draft-oid4vc-haip-sd-jwt-vc.md
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,8 @@ The following is a non-normative example of a Credential Response with Credentia

The Verifier SHOULD add a `vp_formats_supported` element to its metadata (e.g. in the `client_metadata` authorization request parameter) to let the wallet know what protection algorithms it supports in conjunction with SD-JWT VCs. The format element MUST have the key `vc+sd-jwt`, the value is an object consisting of the following elements:

* `sd_jwt_alg`: OPTIONAL. A JSON array containing identifiers of cryptographic algorithms the verifier supports for protection of a SD-JWT. If present, the `alg` JOSE header (as defined in [@!RFC7515]) of the presented SD-JWT MUST match one of the array values.
* `kb_jwt_alg`: OPTIONAL. A JSON array containing identifiers of cryptographic algorithms the verifier supports for protection of a KB-JWT. If present, the `alg` JOSE header (as defined in [@!RFC7515]) of the presented KB-JWT MUST match one of the array values.
* `sd-jwt_alg_values`: OPTIONAL. A JSON array containing identifiers of cryptographic algorithms the verifier supports for protection of a SD-JWT. If present, the `alg` JOSE header (as defined in [@!RFC7515]) of the presented SD-JWT MUST match one of the array values.
* `kb-jwt_alg_values`: OPTIONAL. A JSON array containing identifiers of cryptographic algorithms the verifier supports for protection of a KB-JWT. If present, the `alg` JOSE header (as defined in [@!RFC7515]) of the presented KB-JWT MUST match one of the array values.

The following is a non-normative example of `client_metadata` request parameter value in a request to present a SD-JWT VC.

Expand Down
4 changes: 2 additions & 2 deletions examples/client_metadata_sd_jwt_vc.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"vp_formats": {
"vc+sd-jwt": {
"sd_jwt_alg": [
"sd-jwt_alg_values": [
"ES256",
"ES384"
],
"kb_jwt_alg": [
"kb-jwt_alg_values": [
"ES256",
"ES384"
]
Expand Down

0 comments on commit 248a2c7

Please sign in to comment.