Repository navigation
Description
Feature Request
Description
Overvotes are when there are more votes selected than are allowed. For example, where only one can be selected there are 3 selected. The ballot once it enters still needs to be able to be challenged by a voter to show the system is verifiable. Currently, an overvote will fail ballot validity.
Proposed Solution
Steps:
The current encryption code ensures overvotes are not allowed. Under certain configurations (See #386), allow overvotes to pass through encryption.
If overvotes are allowed:
- Placeholders are recorded for all the votes. Example: selection limit = 1, 1 placeholder; selection limit = 2, 2 placeholders.
- Contest is marked as overvote using
encrypted_dataand holds information about contests selected. - Previous votes are set to 0
EXAMPLE:
Overvoted Contest (Pick 2)
extended_data: null
selections:
- Candidate A - X
- Candidate B - X
- Candidate C - X
- Placeholder - O
- Placeholder - O
Resolved Contest
extended_data: $overvote_info
selections:
- Candidate A - O
- Candidate B - O
- Candidate C - O
- Placeholder - X
- Placeholder - X
Documentation
From Josh Benaloh (@benaloh)
In some use cases, it is desirable to capture details about overvotes without affecting tallies. In ElectionGuard, an overvote in a contest (i.e., the number of selections exceeds the selection limit) causes the following things to happen.
- All selectable options in that contest are set to zero.
- All placeholder options in that contest are set to one.
- The extended data field for the overvoted contest contains the following data:
a. The first byte is set to x01 as a tag to indicate an overvote.
b. The remaining bytes form a bit array indicating the indices of selections made by the voter. - If the voter selected one or more write-ins among the overvotes, any such write-in text is retained in the text field of the associated write-in even though the associated write-in selection is set to zero.
The lengths of the extended data field(s) and the write-in text fields are set in the ballot coding file. To accommodate preservation of overvote data as described here, the bit-length of each extended data field must be at least 8 greater than the number of selectable options in that contest (including write-ins).
As will be described in greater detail elsewhere, the encryption of all non-binary data on a ballot, (extended data fields, write-in text fields, etc.) is done as follows.
For each contest, a single hashed ElGamal encryption is performed on the concatenation of the extended data fields and each write-in text field in order. This encryption is parsed according to the pre-determined fixed length of each of these fields. This optimization allows all of the non-binary data for a contest to be encrypted using a single ElGamal encryption (1KB using standard parameters) plus the total length of all of the non-binary fields. The trade-off in achieving this optimization is that the non-binary fields within any contest cannot be separately decrypted – if one of these fields is decrypted, all of the fields within that contest are decrypted.
Activity
[-]✨ Handling Overvotes[/-][+]✨ Ensure Overvotes can be passed into system[/+]🔒 Add extended data field to contest
🔒 Add extended data field to contest (#556)