Skip to content

Commit

Permalink
Add valid signatures for jwt_vc_json section
Browse files Browse the repository at this point in the history
  • Loading branch information
javereec committed Oct 5, 2024
1 parent 5cd6d72 commit abd431c
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 18 deletions.
16 changes: 12 additions & 4 deletions examples/credential_request_jwt_vc_json_with_claims.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,17 @@
},
"proof": {
"proof_type": "jwt",
"jwt": "eyJraWQiOiJkaWQ6ZXhhbXBsZTplYmZlYjFmNzEyZWJjNmYxYzI3NmUxMmVjMjEva2V5cy8
xIiwiYWxnIjoiRVMyNTYiLCJ0eXAiOiJKV1QifQ.eyJpc3MiOiJzNkJoZFJrcXQzIiwiYXVkIjoiaHR
0cHM6Ly9zZXJ2ZXIuZXhhbXBsZS5jb20iLCJpYXQiOiIyMDE4LTA5LTE0VDIxOjE5OjEwWiIsIm5vbm
NlIjoidFppZ25zbkZicCJ9.ewdkIkPV50iOeBUqMXCC_aZKPxgihac0aW9EkL1nOzM"
"jwt": "eyJ0eXAiOiJvcGVuaWQ0dmNpLXByb29mK2p3dCIsImFsZyI6IkVT
MjU2Iiwia2lkIjoiZGlkOmp3azpleUpyYVdRaU9pSjFjbTQ2YVdWMFpqcHdZ
WEpoYlhNNmIyRjFkR2c2YW5kckxYUm9kVzFpY0hKcGJuUTZjMmhoTFRJMU5q
cFdZa3BQVTNacWVGVTJURGhETjBkVlR6UmtjMmhKV1ZZemVtSjJSbmRyV1VJ
ME0xbEtOVXQwZERoRklpd2lhM1I1SWpvaVJVTWlMQ0pqY25ZaU9pSlFMVEkx
TmlJc0ltRnNaeUk2SWtWVE1qVTJJaXdpZUNJNklrMWtReTFQUzNFMFFWRkta
bFpEV0RWNmNGRnZURGhxTkZaRlpuWlFXRGs0ZEZVNWFIaGpUbGhIY204aUxD
SjVJam9pYm5OWGJtWmlOazVYYzBzek9VSklMV2hCWVZOclExTmxORUo1YldW
T2MyTktSVjl6WVVRelJETmlUU0o5In0.eyJhdWQiOiJodHRwczovL2NyZWRl
bnRpYWwtaXNzdWVyLmV4YW1wbGUuY29tIiwiaWF0IjoxNzI4MDcxNDYyLCJu
b25jZSI6InRaaWduc25GYnAifQ.Er4QnNhoJWNHcS7FPpr4QpINYuL7nGWhX
rKF8U9irPsyv7BJ02tyOFck4J8DKLTv7ELncULsU0rIQXT3tgLzGQ"
}
}
42 changes: 28 additions & 14 deletions examples/credential_response_jwt_vc_json.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,36 @@ Cache-Control: no-store
{
"credentials": [
{
"credential": "eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJ2YyI6
"credential": "eyJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NiJ9.eyJ2YyI6
eyJAY29udGV4dCI6WyJodHRwczovL3d3dy53My5vcmcvMjAxOC9jcmVkZW50
aWFscy92MSIsImh0dHBzOi8vd3d3LnczLm9yZy8yMDE4L2NyZWRlbnRpYWxz
L2V4YW1wbGVzL3YxIl0sImlkIjoiaHR0cDovL2V4YW1wbGUuZWR1L2NyZWRl
bnRpYWxzLzM3MzIiLCJ0eXBlIjpbIlZlcmlmaWFibGVDcmVkZW50aWFsIiwi
VW5pdmVyc2l0eURlZ3JlZUNyZWRlbnRpYWwiXSwiaXNzdWVyIjoiaHR0cHM6
Ly9leGFtcGxlLmVkdS9pc3N1ZXJzLzU2NTA0OSIsImlzc3VhbmNlRGF0ZSI6
IjIwMTAtMDEtMDFUMDA6MDA6MDBaIiwiY3JlZGVudGlhbFN1YmplY3QiOnsi
aWQiOiJkaWQ6ZXhhbXBsZTplYmZlYjFmNzEyZWJjNmYxYzI3NmUxMmVjMjEi
LCJkZWdyZWUiOnsidHlwZSI6IkJhY2hlbG9yRGVncmVlIiwibmFtZSI6IkJh
Y2hlbG9yIG9mIFNjaWVuY2UgYW5kIEFydHMifX19LCJpc3MiOiJodHRwczov
L2V4YW1wbGUuZWR1L2lzc3VlcnMvNTY1MDQ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bG9yRGVncmVlIiwibmFtZSI6IkJhY2hlbG9y
IG9mIFNjaWVuY2UgYW5kIEFydHMifX19LCJpc3MiOiJodHRwczovL2NyZWRl
bnRpYWwtaXNzdWVycy5leGFtcGxlLmNvbSIsIm5iZiI6MTczNTY4OTYwMCwi
anRpIjoiaHR0cHM6Ly9jcmVkZW50aWFsLWlzc3VlcnMuZXhhbXBsZS5jb20v
Y3JlZGVudGlhbHMvMzczMiIsInN1YiI6ImRpZDpqd2s6ZXlKcmFXUWlPaUox
Y200NmFXVjBaanB3WVhKaGJYTTZiMkYxZEdnNmFuZHJMWFJvZFcxaWNISnBi
blE2YzJoaExUSTFOanBXWWtwUFUzWnFlRlUyVERoRE4wZFZUelJrYzJoSldW
WXplbUoyUm5kcldVSTBNMWxLTlV0MGREaEZJaXdpYTNSNUlqb2lSVU1pTENK
amNuWWlPaUpRTFRJMU5pSXNJbUZzWnlJNklrVlRNalUySWl3aWVDSTZJazFr
UXkxUFMzRTBRVkZLWmxaRFdEVjZjRkZ2VERocU5GWkZablpRV0RrNGRGVTVh
SGhqVGxoSGNtOGlMQ0o1SWpvaWJuTlhibVppTms1WGMwc3pPVUpJTFdoQllW
TnJRMU5sTkVKNWJXVk9jMk5LUlY5ellVUXpSRE5pVFNKOSJ9.0oR-cnki37M
J_Sw8rib6UqkzvXq9G5ZdQKrFvNjqtPEckmLVyxJNQ7hhNCjbHqJrE91LoXQ
U2XDQxmQrF1rYWA"
}
],
"c_nonce": "fGFF7UkhLa",
Expand Down
13 changes: 13 additions & 0 deletions examples/issuer_jwks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"jwks": [
{
"kid": "urn:ietf:params:oauth:jwk-thumbprint:sha-256:mlUpog7vEewFBem6Ul09c2dtTwc8dFzVpIDX3sqGWW0",
"kty": "EC",
"crv": "P-256",
"alg": "ES256",
"x": "_LC1FTUl0MltKAOQzXNsofVMpWFV2obLGrNCat_CQ-g",
"y": "kBjoyjNuMVAOq--qVUgylDoLKuMdk4imS-Kk5ahuYIU",
"d": "tIZfJ9SQr-FBRgU9JL_zR_-Kp4iwLRHH97znsyFlm7M"
}
]
}
4 changes: 4 additions & 0 deletions openid-4-verifiable-credential-issuance-1_0.md
Original file line number Diff line number Diff line change
Expand Up @@ -2033,6 +2033,10 @@ The following is a non-normative example of a Credential Response with Credentia

<{{examples/credential_response_jwt_vc_json.txt}}

The following is a non-normative example of a dereferenced document for the Issuer HTTP URL identifier.

<{{examples/issuer_jwks.json}}

### VC Secured using Data Integrity, using JSON-LD, with a Proof Suite Requiring Linked Data Canonicalization

#### Format Identifier
Expand Down

0 comments on commit abd431c

Please sign in to comment.