-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathNIST_V1_election_event_logging.xsd
More file actions
371 lines (371 loc) · 19.1 KB
/
NIST_V1_election_event_logging.xsd
File metadata and controls
371 lines (371 loc) · 19.1 KB
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
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema elementFormDefault="qualified" targetNamespace="http://itl.nist.gov/ns/voting/1500-101/v1" version="1.0.2" xmlns="http://itl.nist.gov/ns/voting/1500-101/v1" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<!-- ========== Roots ========== -->
<xsd:element name="ElectionEventLog" type="ElectionEventLog"/>
<xsd:element name="ElectionEventLogDocumentation" type="ElectionEventLogDocumentation"/>
<!-- ========== Enumerations ========== -->
<xsd:simpleType name="DeviceType">
<xsd:annotation>
<xsd:documentation xml:lang="en">Used in Device::Type to describe the type or usage of the device generating the event.</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="adjudication">
<xsd:annotation>
<xsd:documentation xml:lang="en">Electronic adjudication function for reviewing absentee/mail-in ballots anomalies (blanks/overvotes/write-ins/unreadable ballots).</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="ballot-activation">
<xsd:annotation>
<xsd:documentation xml:lang="en">Devices for enabling a vote capture device (VCD) to display a ballot, possibly directly connected to the VCD or through a smart card interface.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="bmd">
<xsd:annotation>
<xsd:documentation xml:lang="en">Ballot marking devices (voter facing).</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="ballot-printing">
<xsd:annotation>
<xsd:documentation xml:lang="en">Marked ballot printing devices (voter facing).</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="blank-ballot-printing">
<xsd:annotation>
<xsd:documentation xml:lang="en">On-demand blank ballot printers.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="dre">
<xsd:annotation>
<xsd:documentation xml:lang="en">Electronic voter stations, standalone or daisy chained to a DRE-controller (voter facing).</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="dre-controller">
<xsd:annotation>
<xsd:documentation xml:lang="en">Network controller for electronic voting (poll worker facing).</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="electronic-cast">
<xsd:annotation>
<xsd:documentation xml:lang="en">DREs, or other devices that store cast vote records electronically (voter facing).</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="electronic-cast-paper">
<xsd:annotation>
<xsd:documentation xml:lang="en">DREs, or devices that store cast vote records electronically and also print a paper record (voter facing).</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="electronic-poll-book">
<xsd:annotation>
<xsd:documentation xml:lang="en">Electronic poll book devices.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="ems">
<xsd:annotation>
<xsd:documentation xml:lang="en">Election management systems, including for pre- and post-election administration and reporting functions.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="scan-batch">
<xsd:annotation>
<xsd:documentation xml:lang="en">Scanning devices for batches of ballots, auto-feeding, e.g., Central Count (poll worker facing).</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="scan-single">
<xsd:annotation>
<xsd:documentation xml:lang="en">Scanning devices for single-sheets, e.g., Precinct Count (voter facing), but could be used for Central Count by an election official.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="transmission-sending">
<xsd:annotation>
<xsd:documentation xml:lang="en">Remote transmission clients, e.g., for sending of unofficial results from a remote location to a central location (sending station).</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="transmission-receiving">
<xsd:annotation>
<xsd:documentation xml:lang="en">Remote transmission hosts, e.g., for the receiving of unofficial results at a central location from a remote location (receiving station).</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="other">
<xsd:annotation>
<xsd:documentation xml:lang="en">Used when no other value in this enumeration applies.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="EventDispositionType">
<xsd:annotation>
<xsd:documentation xml:lang="en">Used in Event::Disposition for types of event dispositions.</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="failure">
<xsd:annotation>
<xsd:documentation xml:lang="en">For a failure disposition.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="na">
<xsd:annotation>
<xsd:documentation xml:lang="en">Used when the disposition is not applicable or there is no disposition.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="success">
<xsd:annotation>
<xsd:documentation xml:lang="en">For a successful disposition.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="other">
<xsd:annotation>
<xsd:documentation xml:lang="en">Used when no other value in this enumeration applies.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="HashType">
<xsd:annotation>
<xsd:documentation xml:lang="en">Used in Hash::Type to indicate the type of hash being used for an image file.</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="md6">
<xsd:annotation>
<xsd:documentation xml:lang="en">To indicate that the MD6 message digest algorithm is being used.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="sha-256">
<xsd:annotation>
<xsd:documentation xml:lang="en">To indicate that the SHA 256-bit signature is being used.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="sha-512">
<xsd:annotation>
<xsd:documentation xml:lang="en">To indicate that the SHA 512-bit (32-byte) signature is being used.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="other">
<xsd:annotation>
<xsd:documentation xml:lang="en">Used when no other value in this enumeration applies.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
</xsd:restriction>
</xsd:simpleType>
<!-- ========== Classes ========== -->
<xsd:complexType name="Device">
<xsd:annotation>
<xsd:documentation xml:lang="en">Device contains information about the device generating election event logs. Id is the only required attribute, all other attributes are optional. If the device type is not found in the DeviceType enumeration, Type is 'other' and OtherType contains the appropriate type.</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="Details" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation xml:lang="en">Used to associate any details with the event log.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="Event" type="Event" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation xml:lang="en">Used to describe a logged event.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="HashType" type="HashType" minOccurs="0">
<xsd:annotation>
<xsd:documentation xml:lang="en">The type of the hash, from the HashType enumeration.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="OtherHashType" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation xml:lang="en">If HashType is 'other', the type of the hash.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="Id" type="xsd:string">
<xsd:annotation>
<xsd:documentation xml:lang="en">A serial number or otherwise identifier associated with the device.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="Manufacturer" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation xml:lang="en">Manufacturer of the device.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="Model" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation xml:lang="en">Model of the device.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="Type" type="DeviceType" minOccurs="0">
<xsd:annotation>
<xsd:documentation xml:lang="en">Enumerated usage of the device, e.g., ems, scan-single, etc.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="OtherType" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation xml:lang="en">Used when Type is 'other'.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="Version" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation xml:lang="en">Version identification of the device.</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="ElectionEventLog">
<xsd:annotation>
<xsd:documentation xml:lang="en">ElectionEventLog is the root class. It includes Device for identifying the device(s) generating the election events, the date and time when the election event log was created, and an identification of the election. Details is used as needed for additional description/details. HashType is used to specify a cryptographic hash associated with the events, that is, an event log entry, using values from the HashType enumeration. If the type of hash is not found in the HashType enumeration, HashType is 'other' and OtherHashType contains the type of hash.</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="Details" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation xml:lang="en">Used to associate any details with the event log.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="Device" type="Device" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation xml:lang="en">Used to describe the device(s) generating the election events.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="ElectionId" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation xml:lang="en">Identifies the election associated with the log.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="GeneratedTime" type="xsd:dateTime">
<xsd:annotation>
<xsd:documentation xml:lang="en">Identifies the date and time the log was generated.</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="ElectionEventLogDocumentation">
<xsd:annotation>
<xsd:documentation xml:lang="en">ElectionEventLogDocumention is the root class. It includes EventIdDescription and EventTypeDescription, as well as other information for identifying the specific device associated with the election event documentation.</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="DeviceId" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation xml:lang="en">A serial number or otherwise identifier associated with the device.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="DeviceManufacturer" type="xsd:string">
<xsd:annotation>
<xsd:documentation xml:lang="en">Manufacturer of the device.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="DeviceModel" type="xsd:string">
<xsd:annotation>
<xsd:documentation xml:lang="en">Model of the device.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="DeviceVersion" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation xml:lang="en">Version identification of the device.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="EventIdDescription" type="EventIdDescription" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation xml:lang="en">For associating a description with an event ID.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="EventTypeDescription" type="EventTypeDescription" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation xml:lang="en">For associating a description with an event type.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="GeneratedDate" type="xsd:date">
<xsd:annotation>
<xsd:documentation xml:lang="en">Identifies the date the documentation report was generated.</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="Event">
<xsd:annotation>
<xsd:documentation xml:lang="en">Event holds information about a specific event. Severity is an optional attribute for describing a severity indication for the event. If the event disposition is not found in the EventDispositionType enumeration, Disposition is 'other' and OtherDisposition contains the other disposition.</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="Description" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation xml:lang="en">Used for a brief description of the event.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="Details" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation xml:lang="en">Used for additional information about the event, e.g., vendor reserved information.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="Disposition" type="EventDispositionType">
<xsd:annotation>
<xsd:documentation xml:lang="en">The disposition, e.g., success or failure, of the event.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="OtherDisposition" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation xml:lang="en">Used when Disposition is 'other'.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="Hash" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation xml:lang="en">Contains a cryptographic hash of the event, encoded as a string.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="Id" type="xsd:string">
<xsd:annotation>
<xsd:documentation xml:lang="en">An identifier associated with the event.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="Sequence" type="xsd:string">
<xsd:annotation>
<xsd:documentation xml:lang="en">A sequence number/string to uniquely identify the event in the log file.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="Severity" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation xml:lang="en">Used for an indication of the severity of the event, as determined by the device vendor.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="TimeStamp" type="xsd:dateTime">
<xsd:annotation>
<xsd:documentation xml:lang="en">Identifies the date and time the event was generated.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="Type" type="xsd:string">
<xsd:annotation>
<xsd:documentation xml:lang="en">Used for the type of event, as determined by the device vendor.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="UserId" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation xml:lang="en">An identifier associated with a user, as relevant.</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="EventIdDescription">
<xsd:annotation>
<xsd:documentation xml:lang="en">For associating a brief description with an election event ID, used in ElectionEventLogDocumentation::EventIdDescription.</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="Description" type="xsd:string">
<xsd:annotation>
<xsd:documentation xml:lang="en">Used for a brief description of the event.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="Id" type="xsd:string">
<xsd:annotation>
<xsd:documentation xml:lang="en">An identifier associated with the event.</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="EventTypeDescription">
<xsd:annotation>
<xsd:documentation xml:lang="en">For associating a description with an election event log type, used in ElectionEventLogDocumentation::EventTypeDescription.</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="Description" type="xsd:string">
<xsd:annotation>
<xsd:documentation xml:lang="en">Used for a description of the event type.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="Type" type="xsd:string">
<xsd:annotation>
<xsd:documentation xml:lang="en">An identifier associated with the event type.</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>