-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathindex.html
2071 lines (1916 loc) · 78.9 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
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html>
<head>
<title>Bitstring Status List v1.0</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' class='remove'></script>
<script class="remove"
src="https://cdn.jsdelivr.net/gh/w3c/[email protected]/dist/main.js"></script>
<script class="remove">
var respecConfig = {
// specification status (e.g., WD, LCWD, NOTE, etc.). If in doubt use ED.
specStatus: "CRD",
group: "vc",
// the specification's short name, as in http://www.w3.org/TR/short-name/
shortName: "vc-bitstring-status-list",
// subtitle for the spec
subtitle: "Privacy-preserving status information for Verifiable Credentials",
// if you wish the publication date to be other than today, set this
//publishDate: "2024-05-21",
crEnd: "2024-06-21",
implementationReportURI: "https://w3c.github.io/vc-bitstring-status-list-test-suite/",
//previousMaturity: "CG-FINAL",
//previousPublishDate: "2021-03-18",
// 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: {
ALLOSAUR: {
title: "ALLOSAUR: Accumulator with Low-Latency Oblivious Sublinear Anonymous credential Updates with Revocations",
href: "https://eprint.iacr.org/2022/1362.pdf",
date: "January 5th, 2024",
publisher: "Cryptology ePrint Archive"
}
},
doJsonLd: true,
github: "https://github.com/w3c/vc-bitstring-status-list",
includePermalinks: false,
// if there a publicly available Editor's Draft, this is the link
edDraftURI: "https://w3c.github.io/vc-bitstring-status-list/",
// editors, add as many as you like
// only "name" is required
editors: [{
name: "Manu Sporny",
url: "https://www.linkedin.com/in/manusporny/",
company: "Digital Bazaar",
companyURL: "https://www.digitalbazaar.com/",
w3cid: 41758
}, {
name: "Dave Longley",
url: "https://github.com/dlongley",
company: "Digital Bazaar",
companyURL: "https://www.digitalbazaar.com/",
w3cid: 48025
}, {
name: 'Mike Prorock',
url: 'https://www.mesur.io/',
company: 'mesur.io',
companyURL: 'https://www.mesur.io/',
w3cid: 130636
}, {
name: 'Mahmoud Alkhraishi',
url: 'https://github.com/mkhraisha',
company: 'Mavennet',
companyURL: 'https://www.mavennet.com/',
w3cid: 121911
}],
// 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: "Dave Longley",
url: "https://github.com/dlongley",
company: "Digital Bazaar",
companyURL: "https://www.digitalbazaar.com/",
w3cid: 48025
}, {
name: "Manu Sporny",
url: "http://manu.sporny.org/",
company: "Digital Bazaar",
companyURL: "https://www.digitalbazaar.com/",
w3cid: 41758
}, {
name: 'Orie Steele',
url: 'https://github.com/OR13',
company: 'Transmute',
companyURL: 'https://transmute.industries/',
w3cid: 109171
}],
// turn off unused defns warning since we have restrictRefs
lint: {
"no-unused-dfns": false,
"informative-dfn": false
},
xref: ["INFRA", "I18N-GLOSSARY", "VC-DATA-MODEL-2.0"],
// post process
postProcess: [window.respecVc.createVcExamples],
// 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 neighborhood
// Team Contact.
//wgPatentURI: "https://www.w3.org/2004/01/pp-impl/98922/status",
maxTocLevel: 2,
inlineCSS: true,
otherLinks: [{
key: "Related Documents",
data: [{
value: "Verifiable Credentials Data Model v2.0",
href: "https://www.w3.org/TR/vc-data-model-2.0/"
}]
}]
};
</script>
<style>
code {
color: rgb(199, 73, 0);
font-weight: bold;
}
pre {
overflow-x: auto;
white-space: pre-wrap;
}
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: SteelBlue;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.color-text {
font-weight: bold;
text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
}
ol.algorithm {
counter-reset: numsection;
list-style-type: none;
}
ol.algorithm li {
margin: 0.5em 0;
}
ol.algorithm li:before {
font-weight: bold;
counter-increment: numsection;
content: counters(numsection, ".") ") ";
}
.supported {
background-color: #93c47d;
}
.missing {
background-color: #e06666;
}
table.simple {
border-collapse: collapse;
margin: 25px 0;
min-width: 400px;
border: 1px solid #dddddd;
}
table.simple thead tr {
background-color: #005a9c;
color: #ffffff;
text-align: left;
}
table.simple th,
table.simple td {
padding: 12px 15px;
vertical-align: top;
text-align: left;
}
table.simple tbody tr {
border-bottom: 1px solid #dddddd;
}
table.simple tbody tr:nth-of-type(even) {
background-color: #00000008;
}
table.simple tbody tr:last-of-type {
border-bottom: 2px solid #005a9c;
}
</style>
</head>
<body>
<section id='abstract'>
<p>
This specification describes a privacy-preserving, space-efficient, and
high-performance mechanism for publishing status information such as
suspension or revocation of Verifiable Credentials through use of bitstrings.
</p>
</section>
<section id='sotd'>
<p>
The Working Group is actively seeking implementation feedback for this
specification. In order to exit the Candidate Recommendation phase, the
Working Group has set the requirement of at least two independent
implementations for each mandatory or optional feature in the specification. For details
on the conformance testing process, see the
<a href="https://w3c.github.io/vc-bitstring-status-list-test-suite/">
implementation report</a>.
</p>
</section>
<section class="informative">
<h2>Introduction</h2>
<p>
It is often useful for an [=issuer=] of [=verifiable credentials=]
[[VC-DATA-MODEL-2.0]] to link to a location where a [=verifier=] can check to see
if a credential has been suspended or revoked. There are a variety of privacy
and performance considerations that are made when designing, publishing, and
processing status lists.
</p>
<p>
One such privacy consideration happens when there is a one-to-one mapping
between a [=verifiable credential=] and a URL where the status is
published. This type of mapping enables the website that publishes the URL to
correlate the [=holder=], time, and [=verifier=] when the status is
checked. This could enable the [=issuer=] to discover the type of interaction
the [=holder=] is having with the [=verifier=], such as providing an age
verification credential when entering a bar. Being tracked by the [=issuer=]
of a driver's license when entering an establishment violates a privacy
expectation that many people have today.
</p>
<p>
Similarly, there are performance considerations that are explored when designing
status lists. One such consideration is where the list is published and the
burden it places from a bandwidth and processing perspective, both on the server
and the client fetching the information. In order to meet privacy expectations,
it is useful to bundle the status of large sets of credentials into a single
list to help with group privacy. However, doing so can place an impossible
burden on both the server and client if the status information is as much as a
few hundred bytes in size per credential across a population of
hundreds of millions of [=holders=].
</p>
<p>
The rest of this document proposes a highly compressible, bitstring-based
status list mechanism with strong privacy-preserving characteristics,
that is compatible with the architecture of the Web, is highly space-efficient,
and lends itself well to content distribution networks. As an example of
using this specification to achieve a number of beneficial privacy and
performance goals, it is possible to create a status list that can be
constructed for 100,000 [=verifiable credentials=] that is roughly
12,500 bytes in size in the worst case. In a case where a few hundred
credentials have been revoked, the size of the list is less than a
few hundred bytes while providing privacy in a group of 100,000 individuals.
</p>
<section class="informative">
<h3>Conceptual Framework</h3>
<p>
This section outlines the core concept utilized by the status list
mechanism described in this specification. At the most basic level, status
information for all [=verifiable credentials=] issued by an [=issuer=]
is expressed as items in a list. Each [=issuer=] manages a list
of all [=verifiable credentials=] that it has issued. Each
[=verifiable credential=] is associated with an item in its list.
When a single bit specifies a status, such as "revoked" or "suspended",
then that status is expected to be true when the bit is set (`1`) and
false when unset (`0`).
</p>
<p>
One of the benefits of using a bitstring is that it is a highly compressible
data format since, in the average case, large numbers of credentials will
remain unrevoked. This will ensure long sections of bits that are the same
value and thus highly compressible using run-length compression techniques
such as GZIP [[RFC1952]]. The default status list size is 131,072 entries,
equivalent to 16 KB of single bit values. When only a handful of
[=verifiable credentials=] are revoked, GZIP compresses the bitstring
to a few hundred bytes.
</p>
<p>
Another benefit of using a bitstring is that it enables large numbers of
[=verifiable credential=] statuses to be placed in the same list.
This specification uses a minimum list length of 131,072. This
size ensures an adequate amount of group privacy in the average case.
If better group privacy is required, the bitstring can be made larger.
</p>
<figure id="bitstring">
<img style="margin: auto; display: block; width: 75%;"
src="diagrams/BitstringStatusListConcept.svg" alt="
diagram showing a list of boxes at the top of the image with two of
them in red depicting revoked credentials. Text beside the boxes to
the right reads 16 kilobytes. An depiction of the boxes being GZIP
compressed into a cylinder on the bottom of the page shows that
compression has resulted in a final size of 135 bytes.">
<figcaption style="text-align: center;">
A visual depiction of the concepts outlined in this section.
</figcaption>
</figure>
<p class="note"
title="Status information is about the verifiable credential">
The status information associated with a particular [=verifiable credential=]
is about the [=verifiable credential=] itself and might not apply to any
underlying or backing [=credential=], such as an educational degree. For
example, in the case of such an educational degree, it is possible for a
[=verifiable credential=] to be revoked because the mechanism used to
create its digital signature has been compromised, while the backing educational
degree remains valid.
</p>
</section>
<section class="informative">
<h3>Terminology</h3>
<p>
Terminology used throughout this document is defined in the
<a data-cite="VC-DATA-MODEL-2.0#terminology">Terminology</a> section of the
[[[VC-DATA-MODEL-2.0]]] specification.
</p>
</section>
<section id="conformance" class="normative">
<p>
A <dfn>conforming document</dfn> is any concrete expression of the
data model that follows the relevant normative requirements in Section
<a href="#data-model"></a>.
</p>
<p>
A <dfn>conforming processor</dfn> is any algorithm realized
as software and/or hardware that generates and/or consumes a
[=conforming document=] according to the relevant normative statements in
Section <a href="#algorithms"></a>. Conforming processors MAY choose to only
support bitstring entry sizes of 1. Conforming processors MUST produce errors
when non-conforming documents are consumed.
</p>
</section>
</section>
<section class="normative">
<h2>Data Model</h2>
<p>
There are numerous ways to express status information associated with digital
credentials. Some of these mechanisms include Certificate Revocation Lists (CRL)
[[?RFC5280]], the Online Certificate Status Protocol (OCSP) [[?RFC2560]], Bloom
Filters [[?RFC8932]], and cryptographic accumulators [[?ALLOSAUR]]. This
specification optimizes for a variety of requirements that are different from
other mechanisms. These requirements include:
</p>
<table class="simple" id="#pfatable">
<thead>
<tr>
<th style="text-align: center;">Technology</th>
<th style="text-align: center;">CRL</th>
<th style="text-align: center;">OCSP</th>
<th style="text-align: center;">Bloom</th>
<th style="text-align: center;">Accumulator</th>
<th style="text-align: center;">Bitstring</th>
</tr>
</thead>
<tbody>
<tr>
<td>
Provides tunable group privacy
</td>
<td class="supported">✓</td>
<td class="missing">✗</td>
<td class="supported">✓</td>
<td class="supported">✓</td>
<td class="supported">✓</td>
</tr>
<tr>
<td>
Does not require signed assertion for each credential
</td>
<td class="supported">✓</td>
<td class="missing">✗</td>
<td class="supported">✓</td>
<td class="supported">✓</td>
<td class="supported">✓</td>
</tr>
<tr>
<td>
Resistant to [=issuer=] tracking when fetched by [=verifier=]
</td>
<td class="supported">✓</td>
<td class="supported">✓</td>
<td class="supported">✓</td>
<td class="supported">✓</td>
<td class="supported">✓</td>
</tr>
<tr>
<td>
Caching is space efficient with many revocations
</td>
<td class="missing">✗</td>
<td class="missing">✗</td>
<td class="supported">✓</td>
<td class="supported">✓</td>
<td class="supported">✓</td>
</tr>
<tr>
<td>
Highly compressible (>90% average compression)
</td>
<td class="missing">✗</td>
<td class="missing">✗</td>
<td class="supported">✓</td>
<td class="supported">✓</td>
<td class="supported">✓</td>
</tr>
<tr>
<td>
Updates are efficient (fast and entire population does not need to update)
</td>
<td class="supported">✓</td>
<td class="missing">✗</td>
<td class="supported">✓</td>
<td class="missing">✗</td>
<td class="supported">✓</td>
</tr>
<tr>
<td>
Uses cryptographic primitives approved by IETF
</td>
<td class="supported">✓</td>
<td class="supported">✓</td>
<td class="supported">✓</td>
<td class="missing">✗</td>
<td class="supported">✓</td>
</tr>
<tr>
<td>
No false positives
</td>
<td class="supported">✓</td>
<td class="supported">✓</td>
<td class="missing">✗</td>
<td class="supported">✓</td>
<td class="supported">✓</td>
</tr>
<tr>
<td>
Can be delivered by [=holder=] (stapling)
</td>
<td class="missing">✗</td>
<td class="supported">✓</td>
<td class="missing">✗</td>
<td class="supported">✓</td>
<td class="supported">✓</td>
</tr>
<tr>
<td>
Easily profiled for usage with [=verifiable credentials=]
</td>
<td class="missing">✗</td>
<td class="missing">✗</td>
<td class="missing">✗</td>
<td class="missing">✗</td>
<td class="supported">✓</td>
</tr>
</tbody>
</table>
<section>
<h3>BitstringStatusListEntry</h3>
<p>
When an [=issuer=] desires to enable status information for a
[=verifiable credential=], they MAY add a `credentialStatus`
property that uses the data model described in this section. Any
expression of the data model in this section MUST be expressed in a
conforming [=verifiable credential=] as defined in [[VC-DATA-MODEL-2.0]].
</p>
<p class="issue atrisk"
title="Bitstring entry sizes greater than 1 are at risk.">
The Working Group is currently seeking implementer feedback regarding the
utility of bitstring entries that have sizes greater than one. Supporting
such entries adds complexity to the solution, and it's not clear whether there
is enough of an implementation community to support the feature. The WG is
considering three options: (1) require conforming implementations to support
the feature; (2) allow implementations to optionally support the feature; or
(3) remove the feature. At present, the specification implements option (2).
</p>
<table class="simple">
<thead>
<tr>
<th style="white-space: nowrap">Property</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>
An optional identifier for the status list entry. The constraints on the `id`
property are listed in the Verifiable Credentials Data Model specification
[[VC-DATA-MODEL-2.0]]. If present, the value is expected to be a URL that
identifies the status information associated with the <a>verifiable
credential</a>. It MUST NOT be the URL for the status list. The value is not
used during the verification or validation process, and does not need to be
related to the `statusListCredential` value. If necessary, the value can be used
to uniquely identify the `BitstringStatusListEntry` object, such as when it is
stored in a database.
</td>
</tr>
<tr>
<td>type</td>
<td>
The `type` property MUST be `BitstringStatusListEntry`.
</td>
</tr>
<tr>
<td>statusPurpose</td>
<td>
The purpose of the status entry MUST be a string. While the value of the
string is arbitrary, the following values MUST be used for their intended
purpose:
<table class="simple">
<thead>
<tr>
<th style="white-space: nowrap">Value</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>`refresh`</td>
<td>
Used to signal that an updated [=verifiable credential=] is available via the
credential's <a data-cite="VC-DATA-MODEL-2.0#refreshing">refresh service</a>
feature. This status does not invalidate the [=verifiable credential=] and is
not reversible.
</td>
</tr>
<tr>
<td>`revocation`</td>
<td>
Used to cancel the validity of a [=verifiable credential=]. This status is
not reversible.
</td>
</tr>
<tr>
<td>`suspension`</td>
<td>
Used to temporarily prevent the acceptance of a [=verifiable credential=].
This status is reversible.
</td>
</tr>
<tr>
<td>`message`</td>
<td>
Used to convey an arbitrary message related to the status of the
[=verifiable credential=].
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td>statusListIndex</td>
<td>
The `statusListIndex` property MUST be an arbitrary size integer
greater than or equal to 0, expressed as a string in base 10. The value identifies the
position of the status of the [=verifiable credential=]. Implementations
SHOULD assign indexes randomly, such that inferences — such as the recency
of the assignment or the size of the group — cannot be easily drawn from
that position.
</td>
</tr>
<tr>
<td>statusListCredential</td>
<td>
The `statusListCredential` property MUST be a URL to a
[=verifiable credential=]. When the URL is dereferenced, the resulting
[=verifiable credential=] MUST have `type` property that
includes the `BitstringStatusListCredential` value.
</td>
</tr>
<tr>
<td id="statusSize">statusSize</td>
<td>
The `statusSize` indicates the size of the status entry in bits. `statusSize`
MAY be provided. If `statusSize` is not present as a property of the
`credentialStatus`, then `statusSize` MUST be processed as `1`. If present,
`statusSize` MUST be an integer greater than zero. If `statusSize` is provided
and is greater than `1`, then the property `credentialStatus.statusMessage`
MUST be present, and the number of status messages MUST equal the
number of possible values.
</td>
</tr>
<tr>
<td id="statusMessage">statusMessage</td>
<td>
If present, the `statusMessage` property MUST be an array, the length
of which MUST equal the number of possible status messages indicated
by `statusSize` (e.g., `statusMessage` array MUST have 2 elements if
`statusSize` has 1 bit, 4 elements if `statusSize` has 2 bits, 8
elements if `statusSize` has 3 bits, etc.). `statusMessage` MAY be
present if `statusSize` is `1`, and MUST be present if `statusSize` is
greater than `1`. If the `statusMessage` array is not present, the
message values associated with the `status` bit values of `1` and `0`
are "set" and "unset", respectively. If the `statusMessage` array is
present, each element MUST contain the two properties described below,
and MAY contain additional properties.
<ul>
<li id="status">
`status`, a string representing the hexadecimal value of the status prefixed
with `0x`
</li>
<li id="message">
`message`, a string used by software developers to assist with debugging
which SHOULD NOT be displayed to end users.
</li>
</ul>
Implementers MAY add additional values to objects in the `statusMessage` array.
Implementers MAY use the string value of `undefined` in the value to indicate
that a corresponding status is not defined for the associated status value, but
that it may be defined in the future. Rules for how to handle various status
messages are outside the scope of normative requirements in this document, but
it is assumed that implementers will document rules for processing various
status codes.
</td>
</tr>
<tr>
<td id="statusReference">statusReference</td>
<td>
An implementer MAY include the `statusReference` property. If present, its
value MUST be a URL or an array of URLs [[URL]] which dereference to material
related to the status. Implementers using a `statusPurpose` of `message` are
strongly encouraged to provide a `statusReference`.
<p class="note" title="Details around reference">
`statusReference` is especially important when interpretation of the status for
a credential may involve some understanding of the business case involved.
</p>
</td>
</tr>
</tbody>
</table>
<p>
Status list entries can be used to express the purpose of a
status associated with a [=verifiable credential=] by using the
`statusPurpose` property.
</p>
<p>
The use of `revocation` or `suspension` as the status purpose
includes the semantics of the status, with `revocation`
indicating that a status bit expresses whether a
[=verifiable credential=] has been revoked and `suspension`
indicating that a status bit expresses whether a
[=verifiable credential=] has been suspended. The example below
demonstrates the use of these status purposes:
</p>
<pre class="example nohighlight"
title="Example StatusListCredential using simple entries">
{
"@context": [
"https://www.w3.org/ns/credentials/v2",
"https://www.w3.org/ns/credentials/examples/v2"
],
"id": "https://example.com/credentials/23894672394",
"type": ["VerifiableCredential", "EmployeeIdCredential"],
"issuer": "did:example:12345",
"validFrom": "2024-04-05T14:27:42Z",
<span class="highlight">"credentialStatus": [{
"id": "https://example.com/credentials/status/3#94567",
"type": "BitstringStatusListEntry",
"statusPurpose": "revocation",
"statusListIndex": "94567",
"statusListCredential": "https://example.com/credentials/status/3"
}, {
"id": "https://example.com/credentials/status/4#23452",
"type": "BitstringStatusListEntry",
"statusPurpose": "suspension",
"statusListIndex": "23452",
"statusListCredential": "https://example.com/credentials/status/4"
}]</span>,
"credentialSubject": {
"id": "did:example:6789",
"type": "Person",
"employeeId": "A-123456"
}
}
</pre>
<p>
The use of `message` as the status purpose enables an issuer to
define an arbitrary number of custom, descriptive messages about
the status of the [=verifiable credential=]. The [=issuer=] commits to
the set of messages that may be associated with a particular entry
(i.e., with a particular [=verifiable credential=]) through the
`statusSize`, `statusMessage`, and optional `statusReference` properties,
at the time of [=verifiable credential=] issuance. This is to ensure that
the [=holder=] knows what sort of information might be associated with a
particular [=verifiable credential=] they keep in their possession, that
could then be discoverable by a [=verifier=] that later receives that
credential.
</p>
<pre class="example nohighlight"
title="Example StatusListCredential using more complex entries">
{
"@context": [
"https://www.w3.org/ns/credentials/v2",
"https://www.w3.org/ns/credentials/examples/v2"
],
"id": "https://example.com/credentials/2947478373",
"type": ["VerifiableCredential", "BillOfLadingExampleCredential"],
"issuer": "did:example:12345",
"validFrom": "2024-04-05T03:52:31Z",
<span class="highlight">"credentialStatus": {
"id": "https://example.com/credentials/status/8#492847",
"type": "BitstringStatusListEntry",
"statusPurpose": "message",
"statusListIndex": "492847",
"statusSize": 2,
"statusListCredential": "https://example.com/credentials/status/8",
"statusMessage": [
{"status":"0x0", "message":"pending_review"},
{"status":"0x1", "message":"accepted"},
{"status":"0x2", "message":"rejected"},
...
],
"statusReference": "https://example.org/status-dictionary/"
}</span>,
"credentialSubject": {
"id": "did:example:6789",
"type": "BillOfLading",
...
}
}
</pre>
</section>
<section>
<h3>BitstringStatusListCredential</h3>
<p>
When a status list [=verifiable credential=] is published, it MUST be a
conforming document, as defined in [[VC-DATA-MODEL-2.0]], that expresses the
data model in this section. The following section describes the format of
the [=verifiable credential=] that encapsulates the status list.
</p>
<p>
The status list is expressed inside a [=verifiable credential=] in order to
enable a [=holder=] to provide it directly to a [=verifier=]. This mechanism,
sometimes called "certificate stapling", increases privacy for the [=holder=] by
ensuring that the [=verifier=] does not need to contact the [=issuer=] to
retrieve the status list. Still, a [=verifier=] might choose to ignore the
[=holder=]-provided status list, even when its authenticity is verifiable,
if it desires a more recent version of a status list, for instance.
</p>
<p>
[=Issuers=] and [=verifiers=] are advised that the [=issuer=] of a
[=verifiable credential=] and the [=issuer=] of an associated
`BitstringStatusListCredential` might not be the same. There are technical,
legal, institutional, political, and other reasons that might make it
appropriate to separate the authority over the original credential from the
authority to revoke, or otherwise change the status of, such a credential.
Therefore, the `issuer` value of a [=verifiable credential=] containing a
`BitstringStatusListEntry` MAY be different from the `issuer` value of a
`BitstringStatusListCredential`.
</p>
<p class="issue atrisk" title="TTL conflicts with `validUntil`">
The Working Group is considering the removal of the `ttl` ("time to live")
feature because its semantics conflict with the semantics of the `validUntil`
feature of [=verifiable credentials=]. When a [=verifier=] performs
validation and evaluates a `BitstringStatusListCredential` that contains both
a `ttl` property and a `validUntil` property, each with a different value
(i.e., each indicating a different point in time when the credential is to
"expire"), it is not clear which (if either) property a validator can be
expected to ignore. In other words, if a `ttl` value specifies an expiration
datetime of midnight today, but the `validUntil` property specifies an
expiration datetime of midnight tomorrow, then what is a [=verifier=]
expected to do? Fundamentally, `ttl` and `validUntil` have conflicting
semantics. One way to resolve this conflict is to remove `ttl` and specify
that caching behavior can be expressed using protocol mechanisms (such as the
`expires` header in HTTP), and that any caching performed MUST align with the
`validUntil` value for the [=verifiable credential=]. The Working Group is
seeking feedback from the implementer community regarding this feature.
</p>
<table class="simple">
<thead>
<tr>
<th style="white-space: nowrap">Property</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>
The [=verifiable credential=] that contains the status list MAY
express an `id` property that matches the value specified in
`statusListCredential` for the corresponding
`BitstringStatusListEntry` (see <a href="#bitstringstatuslistentry"></a>).
</td>
</tr>
<tr>
<td>type</td>
<td>
The [=verifiable credential=] that contains the status list MUST
express a `type` property that includes the
`BitstringStatusListCredential` value.
</td>
</tr>
<tr>
<td>validFrom</td>
<td>
The earliest point in time at which the status list is valid. This property is
defined in the Verifiable Credentials Data Model specification in
<a href="https://www.w3.org/TR/vc-data-model-2.0/#validity-period">
Section 4.6: Validity Period</a>.
</td>
</tr>
<tr>
<td>validUntil</td>
<td>
The latest point in time at which the status list is valid. This property is
defined in the Verifiable Credentials Data Model specification in
<a href="https://www.w3.org/TR/vc-data-model-2.0/#validity-period">
Section 4.6: Validity Period</a>.
</td>
</tr>
<tr>
<td>credentialSubject.type</td>
<td id="BitstringStatusList">
The `type` of the credential [=subject=], which is the
status list, MUST be `BitstringStatusList`.
</td>
</tr>
<tr>
<td id="statusPurpose">credentialSubject.statusPurpose</td>
<td>
The value of the purpose property of the status entry, `statusPurpose`, MUST be
one or more strings. While the value of each string is arbitrary, the following
values MUST be used for their intended purpose:
<table class="simple">
<thead>
<tr>
<th style="white-space: nowrap">Value</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>`refresh`</td>
<td>
Used to signal that an updated [=verifiable credential=] is available via the
credential's <a data-cite="VC-DATA-MODEL-2.0#refreshing">refresh service</a>
feature. This status does not invalidate the [=verifiable credential=] and is not reversible.
</td>
</tr>
<tr>
<td>`revocation`</td>
<td>
Used to cancel the validity of a [=verifiable credential=]. This status is
not reversible.
</td>
</tr>
<tr>
<td>`suspension`</td>
<td>
Used to temporarily prevent the acceptance of a [=verifiable credential=].
This status is reversible.
</td>
</tr>
<tr>
<td>`message`</td>
<td>
Used to indicate a status message associated with a <a>verifiable
credential</a>. The status message descriptions MUST be defined in
`credentialSubject.statusMessages`. `credentialSubject.statusSize` MUST be
specified when this `statusPurpose` value is used.
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td id="encodedList">credentialSubject.encodedList</td>
<td>
The `encodedList` property of the credential [=subject=] MUST be a
<a data-cite="VC-DATA-INTEGRITY#multibase-0">Multibase-encoded base64url (with
no padding)</a> [[RFC4648]] representation of the GZIP-compressed [[RFC1952]]
bitstring values for the associated range of [=verifiable credential=]
status values. The uncompressed bitstring MUST be at least 16KB in size. The
bitstring MUST be encoded such that the first index, with a value of zero (`0`),
is located at the left-most bit in the bitstring and the last index, with a
value of one less than the length of the bitstring (`bitstring_length - 1`), is
located at the right-most bit in the bitstring. Further information on bitstring
encoding can be found in Section <a href="#bitstring-encoding"></a>.
</td>
</tr>
<tr>
<td id="ttl">credentialSubject.ttl</td>
<td>
The `ttl` is an OPTIONAL property that indicates the "time to live" in
milliseconds before a refresh SHOULD be attempted. If not present, no default
value is assumed. The value does not override or replace the
<a data-cite="VC-DATA-MODEL-2.0#validity-period">validity period</a>
of the `BitstringStatusList`. Implementations that publish the status list
SHOULD align any protocol-specific caching information, such as the HTTP
`Cache-Control` header, with the value in this field.
</td>
</tr>
</tbody>
</table>
<p>
The example below demonstrates how the `BitstringStatusListEntry` is used
with a `BitstringStatusListCredential` to provide the [=verifier=] with
the information necessary to determine the status of a particular
[=verifiable credential=].
</p>
<pre class="example nohighlight" title="Example BitstringStatusListCredential">
{
"@context": [
"https://www.w3.org/ns/credentials/v2"
],
"id": "<span class="highlight">https://example.com/credentials/status/3</span>",
"type": ["VerifiableCredential", "<span class="highlight">BitstringStatusListCredential</span>"],
"issuer": "did:example:12345",
"validFrom": "2021-04-05T14:27:40Z",
"credentialSubject": {
"id": "https://example.com/status/3#list",
"type": "<span class="highlight">BitstringStatusList</span>",
"statusPurpose": "<span class="highlight">revocation</span>",
"encodedList": "<span class="highlight">uH4sIAAAAAAAAA-3BMQEAAADCoPVPbQwfoAAAAAAAAAAAAAAAAAAAAIC3AYbSVKsAQAAA</span>"
}
}
</pre>
</section>
</section>
</section>
<section class="normative">
<h2>Algorithms</h2>
<p>
The following section outlines the algorithms that are used to generate
and validate status lists as described by this document.
</p>
<p>
If an implementation of any of the algorithms in this section processes a property
defined in Section <a href="#data-model"></a> whose value is malformed due to
not complying with associated "MUST" statements, a
<a data-cite="VC-DATA-MODEL-2.0#MALFORMED_VALUE_ERROR">MALFORMED_VALUE_ERROR</a>
MUST be raised.
</p>
<p class="issue atrisk"
title="Attempting alignment with IETF Token Status List specification">
The Working Group is seeking feedback related to implementer desire to align
with the IETF OAuth Working Group