Skip to content

Commit

Permalink
fix: vp formats
Browse files Browse the repository at this point in the history
  • Loading branch information
peppelinux committed Nov 4, 2023
1 parent 591e652 commit ac19840
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 76 deletions.
101 changes: 45 additions & 56 deletions docs/en/relying-party-solution.rst
Original file line number Diff line number Diff line change
Expand Up @@ -567,72 +567,61 @@ Below is a non-normative response example:
"https://www.spid.gov.it/SpidL2",
"https://www.spid.gov.it/SpidL3"
],
"vp_formats": {
"jwt_vp_json": {
"alg": [
"EdDSA",
"ES256K"
"vp_formats_supported": {
"vc+sd-jwt": {
"sd-jwt_alg_values": [
"ES256",
"ES384"
],
"kb-jwt_alg_values": [
"ES256",
"ES384"
]
}
},
}
},
"presentation_definitions": [
{
"id": "pid-sd-jwt:unique_id+given_name+family_name",
"id": "pid",
"id": "pid",
"input_descriptors": [
{
"id": "sd-jwt",
"id": "IdentityCredential",
"format": {
"jwt": {
"alg": [
"EdDSA",
"ES256"
]
},
"constraints": {
"limit_disclosure": "required",
"fields": [
{
"path": [
"$.sd-jwt.type"
],
"filter": {
"type": "string",
"const": "PersonIdentificationData"
}
},
{
"path": [
"$.sd-jwt.cnf"
],
"filter": {
"type": "object",
}
},
{
"path": [
"$.sd-jwt.family_name"
],
"intent_to_retain": "true"
},
{
"path": [
"$.sd-jwt.given_name"
],
"intent_to_retain": "true"
},
{
"path": [
"$.sd-jwt.unique_id"
],
"intent_to_retain": "true"
"vc+sd-jwt": {}
},
"constraints": {
"limit_disclosure": "required",
"fields": [
{
"path": [
"$.type"
],
"filter": {
"type": "string",
"const": "IdentityCredential"
}
]
}
},
{
"path": [
"$.family_name"
]
},
{
"path": [
"$.given_name"
]
},
{
"path": [
"$.unique_id"
],
"intent_to_retain": "true"
}
]
}
}
]
},
},
{
"id": "mDL-sample-req",
"input_descriptors": [
Expand Down
21 changes: 11 additions & 10 deletions docs/en/trust.rst
Original file line number Diff line number Diff line change
Expand Up @@ -433,16 +433,17 @@ Below there is a non-normative example of an Entity Statement issued by an Accre
]
},
},
"client": {
"vp_formats": {
"jwt_vp": {
"alg":
"subset_of": [
"EdDSA",
"ES256K"
]
}
}
"wallet_relying_party": {
"vp_formats_supported": {
"vc+sd-jwt": {
"sd-jwt_alg_values": [
"ES256",
"ES384"
],
"kb-jwt_alg_values": [
"ES256",
"ES384"
]
}
}
}
Expand Down
19 changes: 9 additions & 10 deletions docs/en/wallet-instance-attestation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -269,9 +269,8 @@ Payload
|| || authorization server supports. |
|| || `RFC 8414 section 2`_ |
+---------------------------+------------------------------------------------+
|| vp_formats_supported || JSON object containing |
|| || ``jwt_vp_json`` and ``jwt_vc_json`` |
|| || supported algorithms array. |
|| vp_formats || JSON object containing at least |
|| || ``vc+sd-jwt``. |
+---------------------------+------------------------------------------------+
|| request_object_signing || JSON array containing a list of the |
|| _alg_values_supported || JWS signing algorithms (alg values) |
Expand Down Expand Up @@ -324,13 +323,13 @@ Below is an example of Wallet Instance Attestation:
"response_modes_supported": [
"form_post.jwt"
],
"vp_formats_supported": {
"jwt_vp_json": {
"alg_values_supported": ["ES256"]
},
"jwt_vc_json": {
"alg_values_supported": ["ES256"]
}
"vp_formats": {
"vc+sd-jwt": {
"sd-jwt_alg_values": [
"ES256",
"ES384"
]
}
},
"request_object_signing_alg_values_supported": [
"ES256"
Expand Down

0 comments on commit ac19840

Please sign in to comment.