Skip to content

Commit 88cd427

Browse files
committed
chore: Add v2 context
1 parent 4eece91 commit 88cd427

File tree

1 file changed

+340
-0
lines changed

1 file changed

+340
-0
lines changed
Lines changed: 340 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,340 @@
1+
{
2+
"@context": {
3+
"@protected": true,
4+
5+
"id": "@id",
6+
"type": "@type",
7+
8+
"description": "https://schema.org/description",
9+
"digestMultibase": {
10+
"@id": "https://w3id.org/security#digestMultibase",
11+
"@type": "https://w3id.org/security#multibase"
12+
},
13+
"digestSRI": {
14+
"@id": "https://www.w3.org/2018/credentials#digestSRI",
15+
"@type": "https://www.w3.org/2018/credentials#sriString"
16+
},
17+
"mediaType": {
18+
"@id": "https://schema.org/encodingFormat"
19+
},
20+
"name": "https://schema.org/name",
21+
22+
"VerifiableCredential": {
23+
"@id": "https://www.w3.org/2018/credentials#VerifiableCredential",
24+
"@context": {
25+
"@protected": true,
26+
27+
"id": "@id",
28+
"type": "@type",
29+
30+
"confidenceMethod": {
31+
"@id": "https://www.w3.org/2018/credentials#confidenceMethod",
32+
"@type": "@id"
33+
},
34+
"credentialSchema": {
35+
"@id": "https://www.w3.org/2018/credentials#credentialSchema",
36+
"@type": "@id"
37+
},
38+
"credentialStatus": {
39+
"@id": "https://www.w3.org/2018/credentials#credentialStatus",
40+
"@type": "@id"
41+
},
42+
"credentialSubject": {
43+
"@id": "https://www.w3.org/2018/credentials#credentialSubject",
44+
"@type": "@id"
45+
},
46+
"description": "https://schema.org/description",
47+
"evidence": {
48+
"@id": "https://www.w3.org/2018/credentials#evidence",
49+
"@type": "@id"
50+
},
51+
"issuer": {
52+
"@id": "https://www.w3.org/2018/credentials#issuer",
53+
"@type": "@id"
54+
},
55+
"name": "https://schema.org/name",
56+
"proof": {
57+
"@id": "https://w3id.org/security#proof",
58+
"@type": "@id",
59+
"@container": "@graph"
60+
},
61+
"refreshService": {
62+
"@id": "https://www.w3.org/2018/credentials#refreshService",
63+
"@type": "@id"
64+
},
65+
"relatedResource": {
66+
"@id": "https://www.w3.org/2018/credentials#relatedResource",
67+
"@type": "@id"
68+
},
69+
"renderMethod": {
70+
"@id": "https://www.w3.org/2018/credentials#renderMethod",
71+
"@type": "@id"
72+
},
73+
"termsOfUse": {
74+
"@id": "https://www.w3.org/2018/credentials#termsOfUse",
75+
"@type": "@id"
76+
},
77+
"validFrom": {
78+
"@id": "https://www.w3.org/2018/credentials#validFrom",
79+
"@type": "http://www.w3.org/2001/XMLSchema#dateTime"
80+
},
81+
"validUntil": {
82+
"@id": "https://www.w3.org/2018/credentials#validUntil",
83+
"@type": "http://www.w3.org/2001/XMLSchema#dateTime"
84+
}
85+
}
86+
},
87+
88+
"EnvelopedVerifiableCredential":
89+
"https://www.w3.org/2018/credentials#EnvelopedVerifiableCredential",
90+
91+
"VerifiablePresentation": {
92+
"@id": "https://www.w3.org/2018/credentials#VerifiablePresentation",
93+
"@context": {
94+
"@protected": true,
95+
96+
"id": "@id",
97+
"type": "@type",
98+
99+
"holder": {
100+
"@id": "https://www.w3.org/2018/credentials#holder",
101+
"@type": "@id"
102+
},
103+
"proof": {
104+
"@id": "https://w3id.org/security#proof",
105+
"@type": "@id",
106+
"@container": "@graph"
107+
},
108+
"termsOfUse": {
109+
"@id": "https://www.w3.org/2018/credentials#termsOfUse",
110+
"@type": "@id"
111+
},
112+
"verifiableCredential": {
113+
"@id": "https://www.w3.org/2018/credentials#verifiableCredential",
114+
"@type": "@id",
115+
"@container": "@graph",
116+
"@context": null
117+
}
118+
}
119+
},
120+
121+
"EnvelopedVerifiablePresentation":
122+
"https://www.w3.org/2018/credentials#EnvelopedVerifiablePresentation",
123+
124+
"JsonSchemaCredential":
125+
"https://www.w3.org/2018/credentials#JsonSchemaCredential",
126+
127+
"JsonSchema": {
128+
"@id": "https://www.w3.org/2018/credentials#JsonSchema",
129+
"@context": {
130+
"@protected": true,
131+
132+
"id": "@id",
133+
"type": "@type",
134+
135+
"jsonSchema": {
136+
"@id": "https://www.w3.org/2018/credentials#jsonSchema",
137+
"@type": "@json"
138+
}
139+
}
140+
},
141+
142+
"BitstringStatusListCredential":
143+
"https://www.w3.org/ns/credentials/status#BitstringStatusListCredential",
144+
145+
"BitstringStatusList": {
146+
"@id": "https://www.w3.org/ns/credentials/status#BitstringStatusList",
147+
"@context": {
148+
"@protected": true,
149+
150+
"id": "@id",
151+
"type": "@type",
152+
153+
"encodedList": {
154+
"@id": "https://www.w3.org/ns/credentials/status#encodedList",
155+
"@type": "https://w3id.org/security#multibase"
156+
},
157+
"statusMessage": {
158+
"@id": "https://www.w3.org/ns/credentials/status#statusMessage",
159+
"@context": {
160+
"@protected": true,
161+
162+
"id": "@id",
163+
"type": "@type",
164+
165+
"message": "https://www.w3.org/ns/credentials/status#message",
166+
"status": "https://www.w3.org/ns/credentials/status#status"
167+
}
168+
},
169+
"statusPurpose":
170+
"https://www.w3.org/ns/credentials/status#statusPurpose",
171+
"statusReference": {
172+
"@id": "https://www.w3.org/ns/credentials/status#statusReference",
173+
"@type": "@id"
174+
},
175+
"statusSize": {
176+
"@id": "https://www.w3.org/ns/credentials/status#statusSize",
177+
"@type": "https://www.w3.org/2001/XMLSchema#positiveInteger"
178+
},
179+
"ttl": "https://www.w3.org/ns/credentials/status#ttl"
180+
}
181+
},
182+
183+
"BitstringStatusListEntry": {
184+
"@id":
185+
"https://www.w3.org/ns/credentials/status#BitstringStatusListEntry",
186+
"@context": {
187+
"@protected": true,
188+
189+
"id": "@id",
190+
"type": "@type",
191+
192+
"statusListCredential": {
193+
"@id":
194+
"https://www.w3.org/ns/credentials/status#statusListCredential",
195+
"@type": "@id"
196+
},
197+
"statusListIndex":
198+
"https://www.w3.org/ns/credentials/status#statusListIndex",
199+
"statusPurpose":
200+
"https://www.w3.org/ns/credentials/status#statusPurpose"
201+
}
202+
},
203+
204+
"DataIntegrityProof": {
205+
"@id": "https://w3id.org/security#DataIntegrityProof",
206+
"@context": {
207+
"@protected": true,
208+
209+
"id": "@id",
210+
"type": "@type",
211+
212+
"challenge": "https://w3id.org/security#challenge",
213+
"created": {
214+
"@id": "http://purl.org/dc/terms/created",
215+
"@type": "http://www.w3.org/2001/XMLSchema#dateTime"
216+
},
217+
"cryptosuite": {
218+
"@id": "https://w3id.org/security#cryptosuite",
219+
"@type": "https://w3id.org/security#cryptosuiteString"
220+
},
221+
"domain": "https://w3id.org/security#domain",
222+
"expires": {
223+
"@id": "https://w3id.org/security#expiration",
224+
"@type": "http://www.w3.org/2001/XMLSchema#dateTime"
225+
},
226+
"nonce": "https://w3id.org/security#nonce",
227+
"previousProof": {
228+
"@id": "https://w3id.org/security#previousProof",
229+
"@type": "@id"
230+
},
231+
"proofPurpose": {
232+
"@id": "https://w3id.org/security#proofPurpose",
233+
"@type": "@vocab",
234+
"@context": {
235+
"@protected": true,
236+
237+
"id": "@id",
238+
"type": "@type",
239+
240+
"assertionMethod": {
241+
"@id": "https://w3id.org/security#assertionMethod",
242+
"@type": "@id",
243+
"@container": "@set"
244+
},
245+
"authentication": {
246+
"@id": "https://w3id.org/security#authenticationMethod",
247+
"@type": "@id",
248+
"@container": "@set"
249+
},
250+
"capabilityDelegation": {
251+
"@id": "https://w3id.org/security#capabilityDelegationMethod",
252+
"@type": "@id",
253+
"@container": "@set"
254+
},
255+
"capabilityInvocation": {
256+
"@id": "https://w3id.org/security#capabilityInvocationMethod",
257+
"@type": "@id",
258+
"@container": "@set"
259+
},
260+
"keyAgreement": {
261+
"@id": "https://w3id.org/security#keyAgreementMethod",
262+
"@type": "@id",
263+
"@container": "@set"
264+
}
265+
}
266+
},
267+
"proofValue": {
268+
"@id": "https://w3id.org/security#proofValue",
269+
"@type": "https://w3id.org/security#multibase"
270+
},
271+
"verificationMethod": {
272+
"@id": "https://w3id.org/security#verificationMethod",
273+
"@type": "@id"
274+
}
275+
}
276+
},
277+
278+
"...": {
279+
"@id": "https://www.iana.org/assignments/jwt#..."
280+
},
281+
"_sd": {
282+
"@id": "https://www.iana.org/assignments/jwt#_sd",
283+
"@type": "@json"
284+
},
285+
"_sd_alg": {
286+
"@id": "https://www.iana.org/assignments/jwt#_sd_alg"
287+
},
288+
"aud": {
289+
"@id": "https://www.iana.org/assignments/jwt#aud",
290+
"@type": "@id"
291+
},
292+
"cnf": {
293+
"@id": "https://www.iana.org/assignments/jwt#cnf",
294+
"@context": {
295+
"@protected": true,
296+
297+
"kid": {
298+
"@id": "https://www.iana.org/assignments/jwt#kid",
299+
"@type": "@id"
300+
},
301+
"jwk": {
302+
"@id": "https://www.iana.org/assignments/jwt#jwk",
303+
"@type": "@json"
304+
}
305+
}
306+
},
307+
"exp": {
308+
"@id": "https://www.iana.org/assignments/jwt#exp",
309+
"@type": "https://www.w3.org/2001/XMLSchema#nonNegativeInteger"
310+
},
311+
"iat": {
312+
"@id": "https://www.iana.org/assignments/jwt#iat",
313+
"@type": "https://www.w3.org/2001/XMLSchema#nonNegativeInteger"
314+
},
315+
"iss": {
316+
"@id": "https://www.iana.org/assignments/jose#iss",
317+
"@type": "@id"
318+
},
319+
"jku": {
320+
"@id": "https://www.iana.org/assignments/jose#jku",
321+
"@type": "@id"
322+
},
323+
"kid": {
324+
"@id": "https://www.iana.org/assignments/jose#kid",
325+
"@type": "@id"
326+
},
327+
"nbf": {
328+
"@id": "https://www.iana.org/assignments/jwt#nbf",
329+
"@type": "https://www.w3.org/2001/XMLSchema#nonNegativeInteger"
330+
},
331+
"sub": {
332+
"@id": "https://www.iana.org/assignments/jose#sub",
333+
"@type": "@id"
334+
},
335+
"x5u": {
336+
"@id": "https://www.iana.org/assignments/jose#x5u",
337+
"@type": "@id"
338+
}
339+
}
340+
}

0 commit comments

Comments
 (0)