Skip to content

✨ Ensure Overvotes can be passed into system #385

Closed

Description

@keithrfung

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:

  1. Placeholders are recorded for all the votes. Example: selection limit = 1, 1 placeholder; selection limit = 2, 2 placeholders.
  2. Contest is marked as overvote using encrypted_data and holds information about contests selected.
  3. 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.

  1. All selectable options in that contest are set to zero.
  2. All placeholder options in that contest are set to one.
  3. 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.
  4. 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.

EG Overvote Representation.docx

Activity

  1. changed the title [-]✨ Handling Overvotes[/-] [+]✨ Ensure Overvotes can be passed into system[/+] on Jul 15, 2021
  2. added
    triage
    on Sep 22, 2021
  3. added
    blocked
    enhancement
    and removed
    triage
    on Dec 9, 2021
  4. removed
    blocked
    on Feb 8, 2022
  5. self-assigned this
    on May 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions