forked from w3c-ccg/vc-csl2017
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
235 lines (202 loc) · 6.7 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
<!DOCTYPE html>
<html>
<head>
<title>Credential Status List 2017</title>
<meta http-equiv='Content-Type' content='text/html;charset=utf-8'/>
<!--
=== NOTA BENE ===
For the three scripts below, if your spec resides on dev.w3 you can check them
out in the same tree and use relative links so that they'll work offline,
-->
<script src='https://www.w3.org/Tools/respec/respec-w3c-common' class='remove'></script>
<script src="./common.js"></script>
<script type="text/javascript" class="remove">
var respecConfig = {
// specification status (e.g. WD, LCWD, NOTE, etc.). If in doubt use ED.
specStatus: "CG-DRAFT",
// the specification's short name, as in http://www.w3.org/TR/short-name/
shortName: "vc-csl2017",
// subtitle
subtitle: "A simple list-based method for checking the current status of a credential",
// if you wish the publication date to be other than today, set this
// publishDate: "2009-08-06",
// if there is a previously published draft, uncomment this and set its YYYY-MM-DD date
// and its maturity status
// previousPublishDate: "1977-03-15",
// previousMaturity: "WD",
// extend the bibliography entries
//localBiblio: ccg.localBiblio,
github: "https://github.com/w3c-ccg/vc-csl2017",
includePermalinks: false,
// if there a publicly available Editor's Draft, this is the link
edDraftURI: "https://w3c-ccg.github.io/vc-csl2017/",
// if this is a LCWD, uncomment and set the end of its review period
// lcEnd: "2009-08-05",
// editors, add as many as you like
// only "name" is required
editors: [
{ name: "Manu Sporny", url: "http://manu.sporny.org/",
company: "Digital Bazaar", companyURL: "https://digitalbazaar.com/" }
],
// authors, add as many as you like.
// This is optional, uncomment if you have authors as well as editors.
// only "name" is required. Same format as editors.
authors: [
{ name: "Manu Sporny", url: "http://manu.sporny.org/",
company: "Digital Bazaar", companyURL: "https://digitalbazaar.com/" }
],
// name of the WG
wg: "Credentials Community Group",
// URI of the public WG page
wgURI: "https://www.w3.org/community/credentials/",
// name (with the @w3c.org) of the public mailing to which comments are due
wgPublicList: "public-credentials",
// URI of the patent status for this WG, for Rec-track documents
// !!!! IMPORTANT !!!!
// This is important for Rec-track documents, do not copy a patent URI from a random
// document unless you know what you're doing. If in doubt ask your friendly neighbourhood
// Team Contact.
wgPatentURI: "https://www.w3.org/community/about/agreements/cla/",
maxTocLevel: 4,
inlineCSS: true
};
</script>
<style>
pre .highlight {
font-weight: bold;
color: green;
}
pre .subject {
font-weight: bold;
color: RoyalBlue;
}
pre .property {
font-weight: bold;
color: DarkGoldenrod;
}
pre .comment {
font-weight: bold;
color: Gray;
}
</style>
</head>
<body>
<section id='abstract'>
<p>
A simple list-based mechanism for publishing and checking the status of a
credential.
</p>
</section>
<section id='sotd'>
<p>
Comments regarding this document are welcome. Please file issues
directly on <a href="https://github.com/w3c-ccg/vs-csl2017/issues/">GitHub</a>,
or send them to
<a href="mailto:[email protected]">[email protected]</a>
(<a href="mailto:[email protected]?subject=subscribe">subscribe</a>,
<a href="https://lists.w3.org/Archives/Public/public-credentials/">archives</a>).
</p>
</section>
<section>
<h1>Introduction</h1>
<p>
A simple list-based mechanism for publishing and checking the status of a
credential.
</p>
<pre class="example nohighlight" title="Usage of status property">
{
"id": "http://dmv.example.gov/credentials/3732",
"type": ["Credential", "ProofOfAgeCredential"],
"issuer": "https://dmv.example.gov/issuers/14",
"issued": "2010-01-01T19:73:24Z",
"claim": {
"id": "did:example:ebfeb1f712ebc6f1c276e12ec21",
"ageOver": 21
},
<span class="highlight">"credentialStatus": {
"id": "https://dmv.example.gov/status/24,
"type": "CredentialStatusList2017"
}</span>,
"proof": { ... }
}</pre>
</section>
<section>
<h1>Data Model</h1>
<p class="issue">
Include the data model for the list-based credential revocation
</p>
<pre class="example nohighlight" title="Usage of status property">
{
"id": "https://dmv.example.gov/status/24,
"description": "Status of example Department of Motor Vehicles credentials."
"verifiableCredential": [{
"claim": {
"id": "http://dmv.example.gov/credentials/3732",
"currentStatus": "Revoked",
"statusReason": "Disciplinary action"
},
"issuer": "http://dmv.example.gov/",
"issued": "2017-12-05T14:27:42Z",
"proof": { ... }
}, {
"claim": {
"id": "http://dmv.example.gov/credentials/2363",
"currentStatus": "Suspended",
"statusReason": "Investigation"
},
"issuer": "http://dmv.example.gov/",
"issued": "2017-12-04T14:27:42Z",
"proof": { ... }
},
// ... more status info here ...
}],
"proof": { ... }
}
</pre>
</section>
<section>
<h1>Protocol</h1>
<p class="issue">
Include the protocol for the list-based credential revocation, which is
basically HTTP GET.
</p>
<pre class="example highlight" title="Credential status list retrieval example">
GET /status/24 HTTP/1.1
Host: dmv.example.gov
Content-Type: application/ld+json
Content-Length: 1062
Accept: application/ld+json, application/json, text/plain, */*
Accept-Encoding: gzip, deflate
Link: <https://w3id.org/credentials/v1>;
rel="http://www.w3.org/ns/json-ld#context";
type="application/ld+json"
{
"id": "https://dmv.example.gov/status/24,
"description": "Status of example Department of Motor Vehicles credentials."
"verifiableCredential": [{
"claim": {
"id": "http://dmv.example.gov/credentials/3732",
"currentStatus": "Revoked",
"statusReason": "Disciplinary action"
},
"issuer": "http://dmv.example.gov/",
"issued": "2017-12-05T14:27:42Z",
"proof": { ... }
}, {
"claim": {
"id": "http://dmv.example.gov/credentials/2363",
"currentStatus": "Suspended",
"statusReason": "Investigation"
},
"issuer": "http://dmv.example.gov/",
"issued": "2017-12-04T14:27:42Z",
"proof": { ... }
},
// ... more status info here ...
}],
"proof": { ... }
}
</section>
</section>
</body>
</html>