Skip to content

Commit d451113

Browse files
committed
Sync context.
- Sync with vc-data-model context. - Add `renderMethod`. - Organize context for readability (no semantic changes).
1 parent 9059b3e commit d451113

File tree

2 files changed

+240
-227
lines changed

2 files changed

+240
-227
lines changed

contexts/credentials-v2.jsonld

Lines changed: 111 additions & 107 deletions
Original file line numberDiff line numberDiff line change
@@ -4,87 +4,29 @@
44
"@vocab": "https://www.w3.org/ns/credentials/issuer-dependent#",
55
"id": "@id",
66
"type": "@type",
7-
"kid": {
8-
"@id": "https://www.iana.org/assignments/jose#kid",
9-
"@type": "@id"
10-
},
11-
"iss": {
12-
"@id": "https://www.iana.org/assignments/jose#iss",
13-
"@type": "@id"
14-
},
15-
"sub": {
16-
"@id": "https://www.iana.org/assignments/jose#sub",
17-
"@type": "@id"
18-
},
19-
"jku": {
20-
"@id": "https://www.iana.org/assignments/jose#jku",
21-
"@type": "@id"
22-
},
23-
"x5u": {
24-
"@id": "https://www.iana.org/assignments/jose#x5u",
25-
"@type": "@id"
26-
},
27-
"aud": {
28-
"@id": "https://www.iana.org/assignments/jwt#aud",
29-
"@type": "@id"
30-
},
31-
"exp": {
32-
"@id": "https://www.iana.org/assignments/jwt#exp",
33-
"@type": "https://www.w3.org/2001/XMLSchema#nonNegativeInteger"
34-
},
35-
"nbf": {
36-
"@id": "https://www.iana.org/assignments/jwt#nbf",
37-
"@type": "https://www.w3.org/2001/XMLSchema#nonNegativeInteger"
38-
},
39-
"iat": {
40-
"@id": "https://www.iana.org/assignments/jwt#iat",
41-
"@type": "https://www.w3.org/2001/XMLSchema#nonNegativeInteger"
42-
},
43-
"cnf": {
44-
"@id": "https://www.iana.org/assignments/jwt#cnf",
45-
"@context": {
46-
"@protected": true,
47-
"kid": {
48-
"@id": "https://www.iana.org/assignments/jwt#kid",
49-
"@type": "@id"
50-
},
51-
"jwk": {
52-
"@id": "https://www.iana.org/assignments/jwt#jwk",
53-
"@type": "@json"
54-
}
55-
}
56-
},
57-
"_sd_alg": {
58-
"@id": "https://www.iana.org/assignments/jwt#_sd_alg"
59-
},
60-
"_sd": {
61-
"@id": "https://www.iana.org/assignments/jwt#_sd",
62-
"@type": "@json"
63-
},
64-
"...": {
65-
"@id": "https://www.iana.org/assignments/jwt#..."
7+
"description": "https://schema.org/description",
8+
"digestMultibase": {
9+
"@id": "https://w3id.org/security#digestMultibase",
10+
"@type": "https://w3id.org/security#multibase"
6611
},
6712
"digestSRI": {
6813
"@id": "https://www.w3.org/2018/credentials#digestSRI",
6914
"@type": "https://www.w3.org/2018/credentials#sriString"
7015
},
71-
"digestMultibase": {
72-
"@id": "https://w3id.org/security#digestMultibase",
73-
"@type": "https://w3id.org/security#multibase"
74-
},
7516
"mediaType": {
7617
"@id": "https://schema.org/encodingFormat"
7718
},
78-
"description": "https://schema.org/description",
7919
"name": "https://schema.org/name",
80-
"EnvelopedVerifiableCredential": "https://www.w3.org/2018/credentials#EnvelopedVerifiableCredential",
81-
"EnvelopedVerifiablePresentation": "https://www.w3.org/2018/credentials#EnvelopedVerifiablePresentation",
8220
"VerifiableCredential": {
8321
"@id": "https://www.w3.org/2018/credentials#VerifiableCredential",
8422
"@context": {
8523
"@protected": true,
8624
"id": "@id",
8725
"type": "@type",
26+
"confidenceMethod": {
27+
"@id": "https://www.w3.org/2018/credentials#confidenceMethod",
28+
"@type": "@id"
29+
},
8830
"credentialSchema": {
8931
"@id": "https://www.w3.org/2018/credentials#credentialSchema",
9032
"@type": "@id"
@@ -102,14 +44,6 @@
10244
"@id": "https://www.w3.org/2018/credentials#evidence",
10345
"@type": "@id"
10446
},
105-
"validFrom": {
106-
"@id": "https://www.w3.org/2018/credentials#validFrom",
107-
"@type": "http://www.w3.org/2001/XMLSchema#dateTime"
108-
},
109-
"validUntil": {
110-
"@id": "https://www.w3.org/2018/credentials#validUntil",
111-
"@type": "http://www.w3.org/2001/XMLSchema#dateTime"
112-
},
11347
"issuer": {
11448
"@id": "https://www.w3.org/2018/credentials#issuer",
11549
"@type": "@id"
@@ -124,20 +58,29 @@
12458
"@id": "https://www.w3.org/2018/credentials#refreshService",
12559
"@type": "@id"
12660
},
127-
"termsOfUse": {
128-
"@id": "https://www.w3.org/2018/credentials#termsOfUse",
61+
"relatedResource": {
62+
"@id": "https://www.w3.org/2018/credentials#relatedResource",
12963
"@type": "@id"
13064
},
131-
"confidenceMethod": {
132-
"@id": "https://www.w3.org/2018/credentials#confidenceMethod",
65+
"renderMethod": {
66+
"@id": "https://www.w3.org/2018/credentials#renderMethod",
13367
"@type": "@id"
13468
},
135-
"relatedResource": {
136-
"@id": "https://www.w3.org/2018/credentials#relatedResource",
69+
"termsOfUse": {
70+
"@id": "https://www.w3.org/2018/credentials#termsOfUse",
13771
"@type": "@id"
72+
},
73+
"validFrom": {
74+
"@id": "https://www.w3.org/2018/credentials#validFrom",
75+
"@type": "http://www.w3.org/2001/XMLSchema#dateTime"
76+
},
77+
"validUntil": {
78+
"@id": "https://www.w3.org/2018/credentials#validUntil",
79+
"@type": "http://www.w3.org/2001/XMLSchema#dateTime"
13880
}
13981
}
14082
},
83+
"EnvelopedVerifiableCredential": "https://www.w3.org/2018/credentials#EnvelopedVerifiableCredential",
14184
"VerifiablePresentation": {
14285
"@id": "https://www.w3.org/2018/credentials#VerifiablePresentation",
14386
"@context": {
@@ -153,18 +96,19 @@
15396
"@type": "@id",
15497
"@container": "@graph"
15598
},
99+
"termsOfUse": {
100+
"@id": "https://www.w3.org/2018/credentials#termsOfUse",
101+
"@type": "@id"
102+
},
156103
"verifiableCredential": {
157104
"@id": "https://www.w3.org/2018/credentials#verifiableCredential",
158105
"@type": "@id",
159106
"@container": "@graph",
160107
"@context": null
161-
},
162-
"termsOfUse": {
163-
"@id": "https://www.w3.org/2018/credentials#termsOfUse",
164-
"@type": "@id"
165108
}
166109
}
167110
},
111+
"EnvelopedVerifiablePresentation": "https://www.w3.org/2018/credentials#EnvelopedVerifiablePresentation",
168112
"JsonSchemaCredential": "https://www.w3.org/2018/credentials#JsonSchemaCredential",
169113
"JsonSchema": {
170114
"@id": "https://www.w3.org/2018/credentials#JsonSchema",
@@ -185,12 +129,21 @@
185129
"@protected": true,
186130
"id": "@id",
187131
"type": "@type",
188-
"statusPurpose": "https://www.w3.org/ns/credentials/status#statusPurpose",
189132
"encodedList": {
190133
"@id": "https://www.w3.org/ns/credentials/status#encodedList",
191134
"@type": "https://w3id.org/security#multibase"
192135
},
193-
"ttl": "https://www.w3.org/ns/credentials/status#ttl",
136+
"statusMessage": {
137+
"@id": "https://www.w3.org/ns/credentials/status#statusMessage",
138+
"@context": {
139+
"@protected": true,
140+
"id": "@id",
141+
"type": "@type",
142+
"message": "https://www.w3.org/ns/credentials/status#message",
143+
"status": "https://www.w3.org/ns/credentials/status#status"
144+
}
145+
},
146+
"statusPurpose": "https://www.w3.org/ns/credentials/status#statusPurpose",
194147
"statusReference": {
195148
"@id": "https://www.w3.org/ns/credentials/status#statusReference",
196149
"@type": "@id"
@@ -199,16 +152,7 @@
199152
"@id": "https://www.w3.org/ns/credentials/status#statusSize",
200153
"@type": "https://www.w3.org/2001/XMLSchema#positiveInteger"
201154
},
202-
"statusMessage": {
203-
"@id": "https://www.w3.org/ns/credentials/status#statusMessage",
204-
"@context": {
205-
"@protected": true,
206-
"id": "@id",
207-
"type": "@type",
208-
"status": "https://www.w3.org/ns/credentials/status#status",
209-
"message": "https://www.w3.org/ns/credentials/status#message"
210-
}
211-
}
155+
"ttl": "https://www.w3.org/ns/credentials/status#ttl"
212156
}
213157
},
214158
"BitstringStatusListEntry": {
@@ -217,12 +161,12 @@
217161
"@protected": true,
218162
"id": "@id",
219163
"type": "@type",
220-
"statusPurpose": "https://www.w3.org/ns/credentials/status#statusPurpose",
221-
"statusListIndex": "https://www.w3.org/ns/credentials/status#statusListIndex",
222164
"statusListCredential": {
223165
"@id": "https://www.w3.org/ns/credentials/status#statusListCredential",
224166
"@type": "@id"
225-
}
167+
},
168+
"statusListIndex": "https://www.w3.org/ns/credentials/status#statusListIndex",
169+
"statusPurpose": "https://www.w3.org/ns/credentials/status#statusPurpose"
226170
}
227171
},
228172
"DataIntegrityProof": {
@@ -236,6 +180,10 @@
236180
"@id": "http://purl.org/dc/terms/created",
237181
"@type": "http://www.w3.org/2001/XMLSchema#dateTime"
238182
},
183+
"cryptosuite": {
184+
"@id": "https://w3id.org/security#cryptosuite",
185+
"@type": "https://w3id.org/security#cryptosuiteString"
186+
},
239187
"domain": "https://w3id.org/security#domain",
240188
"expires": {
241189
"@id": "https://w3id.org/security#expiration",
@@ -263,13 +211,13 @@
263211
"@type": "@id",
264212
"@container": "@set"
265213
},
266-
"capabilityInvocation": {
267-
"@id": "https://w3id.org/security#capabilityInvocationMethod",
214+
"capabilityDelegation": {
215+
"@id": "https://w3id.org/security#capabilityDelegationMethod",
268216
"@type": "@id",
269217
"@container": "@set"
270218
},
271-
"capabilityDelegation": {
272-
"@id": "https://w3id.org/security#capabilityDelegationMethod",
219+
"capabilityInvocation": {
220+
"@id": "https://w3id.org/security#capabilityInvocationMethod",
273221
"@type": "@id",
274222
"@container": "@set"
275223
},
@@ -280,10 +228,6 @@
280228
}
281229
}
282230
},
283-
"cryptosuite": {
284-
"@id": "https://w3id.org/security#cryptosuite",
285-
"@type": "https://w3id.org/security#cryptosuiteString"
286-
},
287231
"proofValue": {
288232
"@id": "https://w3id.org/security#proofValue",
289233
"@type": "https://w3id.org/security#multibase"
@@ -293,6 +237,66 @@
293237
"@type": "@id"
294238
}
295239
}
240+
},
241+
"...": {
242+
"@id": "https://www.iana.org/assignments/jwt#..."
243+
},
244+
"_sd": {
245+
"@id": "https://www.iana.org/assignments/jwt#_sd",
246+
"@type": "@json"
247+
},
248+
"_sd_alg": {
249+
"@id": "https://www.iana.org/assignments/jwt#_sd_alg"
250+
},
251+
"aud": {
252+
"@id": "https://www.iana.org/assignments/jwt#aud",
253+
"@type": "@id"
254+
},
255+
"cnf": {
256+
"@id": "https://www.iana.org/assignments/jwt#cnf",
257+
"@context": {
258+
"@protected": true,
259+
"kid": {
260+
"@id": "https://www.iana.org/assignments/jwt#kid",
261+
"@type": "@id"
262+
},
263+
"jwk": {
264+
"@id": "https://www.iana.org/assignments/jwt#jwk",
265+
"@type": "@json"
266+
}
267+
}
268+
},
269+
"exp": {
270+
"@id": "https://www.iana.org/assignments/jwt#exp",
271+
"@type": "https://www.w3.org/2001/XMLSchema#nonNegativeInteger"
272+
},
273+
"iat": {
274+
"@id": "https://www.iana.org/assignments/jwt#iat",
275+
"@type": "https://www.w3.org/2001/XMLSchema#nonNegativeInteger"
276+
},
277+
"iss": {
278+
"@id": "https://www.iana.org/assignments/jose#iss",
279+
"@type": "@id"
280+
},
281+
"jku": {
282+
"@id": "https://www.iana.org/assignments/jose#jku",
283+
"@type": "@id"
284+
},
285+
"kid": {
286+
"@id": "https://www.iana.org/assignments/jose#kid",
287+
"@type": "@id"
288+
},
289+
"nbf": {
290+
"@id": "https://www.iana.org/assignments/jwt#nbf",
291+
"@type": "https://www.w3.org/2001/XMLSchema#nonNegativeInteger"
292+
},
293+
"sub": {
294+
"@id": "https://www.iana.org/assignments/jose#sub",
295+
"@type": "@id"
296+
},
297+
"x5u": {
298+
"@id": "https://www.iana.org/assignments/jose#x5u",
299+
"@type": "@id"
296300
}
297301
}
298302
}

0 commit comments

Comments
 (0)