Skip to content

Commit d82b52a

Browse files
committed
Specify the Verifiable Credentials v2.0 context.
1 parent b134927 commit d82b52a

File tree

1 file changed

+92
-0
lines changed
  • contexts/credentials

1 file changed

+92
-0
lines changed

contexts/credentials/v2

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
{
2+
"@context": {
3+
"@protected": true,
4+
5+
"id": "@id",
6+
"type": "@type",
7+
8+
"VerifiableCredential": {
9+
"@id": "https://www.w3.org/2018/credentials#VerifiableCredential",
10+
"@context": {
11+
"@protected": true,
12+
13+
"credentialSchema": {
14+
"@id": "https://www.w3.org/2018/credentials#credentialSchema",
15+
"@type": "@id"
16+
},
17+
"credentialStatus": {
18+
"@id": "https://www.w3.org/2018/credentials#credentialStatus",
19+
"@type": "@id"
20+
},
21+
"credentialSubject": {
22+
"@id": "https://www.w3.org/2018/credentials#credentialSubject",
23+
"@type": "@id"
24+
},
25+
"description": {
26+
"@id": "https://schema.org/description",
27+
"@type": "http://www.w3.org/2001/XMLSchema#string"
28+
},
29+
"evidence": {
30+
"@id": "https://www.w3.org/2018/credentials#evidence",
31+
"@type": "@id"
32+
},
33+
"holder": {
34+
"@id": "https://www.w3.org/2018/credentials#holder",
35+
"@type": "@id"
36+
},
37+
"issued": {
38+
"@id": "https://www.w3.org/2018/credentials#issued",
39+
"@type": "http://www.w3.org/2001/XMLSchema#dateTime"
40+
},
41+
"issuer": {
42+
"@id": "https://www.w3.org/2018/credentials#issuer",
43+
"@type": "@id"
44+
},
45+
"name": {
46+
"@id": "https://schema.org/description",
47+
"@type": "http://www.w3.org/2001/XMLSchema#string"
48+
},
49+
"proof": {
50+
"@id": "https://w3id.org/security#proof",
51+
"@type": "@id", "@container": "@graph"
52+
},
53+
"refreshService": {
54+
"@id": "https://www.w3.org/2018/credentials#refreshService",
55+
"@type": "@id"
56+
},
57+
"termsOfUse": {
58+
"@id": "https://www.w3.org/2018/credentials#termsOfUse",
59+
"@type": "@id"
60+
},
61+
"validFrom": {
62+
"@id": "https://www.w3.org/2018/credentials#validFrom",
63+
"@type": "http://www.w3.org/2001/XMLSchema#dateTime"
64+
},
65+
"validUntil": {
66+
"@id": "https://www.w3.org/2018/credentials#validUntil",
67+
"@type": "http://www.w3.org/2001/XMLSchema#dateTime"
68+
}
69+
}
70+
},
71+
72+
"VerifiablePresentation": {
73+
"@id": "https://www.w3.org/2018/credentials#VerifiablePresentation",
74+
"@context": {
75+
"@protected": true,
76+
77+
"holder": {
78+
"@id": "https://www.w3.org/2018/credentials#holder",
79+
"@type": "@id"
80+
},
81+
"proof": {
82+
"@id": "https://w3id.org/security#proof",
83+
"@type": "@id", "@container": "@graph"
84+
},
85+
"verifiableCredential": {
86+
"@id": "https://www.w3.org/2018/credentials#verifiableCredential",
87+
"@type": "@id", "@container": "@graph"
88+
}
89+
}
90+
}
91+
}
92+
}

0 commit comments

Comments
 (0)