CategoriesEncryption Edge

Electronic Voting Machines (EVMs) and Zero-Knowledge Proofs (ZKPs)

Electronic Voting Machines (EVMs) and Zero-Knowledge Proofs

One of the most compelling applications of Zero-Knowledge Proofs is electronic voting. Elections present a particularly interesting cryptographic challenge: the entire voting process needs to be publicly verifiable, while individual votes need to remain private.

Traditionally, these two requirements have been difficult to reconcile. Zero-Knowledge Proofs offer a mathematical mechanism for addressing both.

1. What is fundamentally wrong with trusting an electronic voting machine?

An electronic voting machine is essentially a computer that accepts an input, records it and contributes to an aggregate result.

From a cybersecurity architecture perspective, several questions arise:

  • How do I know that the machine recorded the candidate I selected?
  • How do I know that my vote was not subsequently modified?
  • How do I know that additional, unauthorized votes were not introduced?
  • How do I know that the final tally was computed correctly?
  • Can I independently verify these properties without compromising ballot secrecy?

Traditional EVM security relies on physical security, restricted access, hardware integrity, software validation, procedural controls and, where available, independent paper-based audits.

Zero-Knowledge Proofs introduce an additional layer: mathematical verifiability rather than exclusive reliance on the integrity of the machine.

This is not an assertion that existing EVMs have been compromised. It is a question of how their security guarantees could be strengthened.

2. What would a mathematically verifiable election look like?

Ideally, an election should satisfy the following requirements.

RequirementMeaning
Voter eligibilityOnly authorized voters can vote.
UniquenessEach eligible voter can cast only one counted ballot.
Ballot validityEach ballot conforms to election rules.
Cast as intendedThe recorded ballot reflects the voter’s selection.
Recorded as castThe submitted ballot has not been altered or discarded.
Tallied as recordedAll accepted ballots have been counted correctly.
Ballot secrecyNobody can associate a voter with their selection.
Public verifiabilityIndependent observers can verify the election result.
Coercion resistanceVoters cannot easily be forced to vote a certain way or prove their selection to a third party.

ZKPs can help establish several of these properties, although a complete election system requires additional cryptographic and procedural controls.

3. How can you prove that a vote is valid without revealing the vote?

Consider an election with three candidates: A, B and C.

We represent a vote using three binary variables:

\[ v_A,v_B,v_C\in\{0,1\} \]

A valid vote must satisfy:

\[ v_A+v_B+v_C=1 \]

For example:

Candidate ACandidate BCandidate CValidity
100Valid
010Valid
001Valid
110Invalid
000Invalid

For simplicity, we assume this election requires exactly one selection.

The voter encrypts their selection and generates a Zero-Knowledge Proof establishing that:

  • Each variable is either zero or one.
  • The sum of the three variables is exactly one.
  • The encrypted ballot contains those same variables.

The election authority can verify that the ballot is valid without knowing which candidate was selected.

Illustration of a zero-knowledge ballot

Select a candidate to see how the underlying mathematical statement changes.Candidate ACandidate BCandidate C

Private ballot — visible only in this demonstration

Candidate A

0

Candidate B

1

Candidate C

0

\[ 0+1+0=1 \]

What the public verifier sees

Encrypted ballot

Selection hidden

All values are binary

Exactly one candidate selected

Proof matches encrypted ballot

Ballot validity: verified

Conceptual simulation, not an actual cryptographic proof generator.

Notice that irrespective of which candidate is selected, the statement being verified remains the same.

4. Architecture of a ZKP-enabled electronic voting machine

Conceptual architecture. Voter-verifiable paper records and independent audits should complement this cryptographic workflow.

The important architectural decision is to separate three functions:

  • Identity verification: Who is authorized to vote?
  • Ballot verification: Is the submitted vote valid?
  • Tally verification: Was the final result computed correctly?

There is no inherent requirement for the ballot verification or tallying systems to know the identity of the voter.

5. How do you count encrypted votes without decrypting individual ballots?

This is where another branch of cryptography becomes important: Homomorphic Encryption.

Homomorphic encryption allows certain mathematical operations to be performed directly on encrypted data.

For an additively homomorphic encryption scheme:

\[ E(a)\oplus E(b)=E(a+b) \]

Consider five voters participating in an election between candidates A and B.

Illustrative private ballots

Voter 1

A

Voter 2

B

Voter 3

A

Voter 4

A

Voter 5

B

Homomorphic aggregation\(E(1)\oplus E(0)\oplus E(1)\oplus E(1)\oplus E(0)\)\(=E(3)\)Individual ballots remain encrypted

Decrypted aggregate result

Candidate A

3

Candidate B

2

Only the aggregate result needs to be decrypted.

The election authority can then publish cryptographic proofs demonstrating that the aggregate was correctly decrypted.

Using threshold cryptography, the decryption key can also be distributed among multiple independent election trustees so that no single authority possesses the complete key.

6. Can ZKPs prevent someone from voting twice?

Yes, as part of a properly designed anonymous credential system.

One approach uses a cryptographic construct called a nullifier.

An eligible voter possesses a secret credential \(s\). For a particular election, they generate:

\[ N=H(s,\text{ElectionID}) \]

Where \(H\) is a suitable cryptographic hash function.

The voter provides a Zero-Knowledge Proof establishing that:

  • They possess a valid, authorized voting credential.
  • The credential belongs to the eligible voter set.
  • The nullifier was correctly derived from that credential.

The election system records the nullifier when the ballot is accepted.

If the same credential is used again in the same election, the same nullifier is generated and the duplicate can be rejected.

The verifier does not need to know the voter’s identity or secret credential.

This mechanism still depends on a trustworthy credential issuance process that prevents individuals from obtaining multiple unauthorized credentials.

7. Can the entire election result be represented by a mathematical proof?

In principle, yes — for the digitally recorded portion of the election.

Suppose an election contains \(n\) accepted ballots and \(m\) candidates.

The ballot matrix is:

\[ V= \begin{pmatrix} v_{11}&v_{12}&\cdots&v_{1m}\\ v_{21}&v_{22}&\cdots&v_{2m}\\ \vdots&\vdots&\ddots&\vdots\\ v_{n1}&v_{n2}&\cdots&v_{nm} \end{pmatrix} \]

Every row must satisfy:

\[ \sum_{j=1}^{m}v_{ij}=1 \]

The tally for candidate \(j\) is:

\[ T_j=\sum_{i=1}^{n}v_{ij} \]

And the overall election must satisfy:

\[ \sum_{j=1}^{m}T_j=n \]

A cryptographic proof system could establish that these constraints were satisfied, that the tally corresponds to the committed ballot records, and that all counted credentials were valid and unique.

The election authority publishes:

\[ (T_1,T_2,\ldots,T_m,\pi) \]

Where \(\pi\) is the cryptographic proof.

Any independent observer could run:

\[ \operatorname{Verify}(p,\pi)=\text{True} \]

Here, \(p\) includes the public election parameters, ballot commitments and announced results.

With a suitable succinct proof system, millions of ballots could potentially be covered by a compact aggregate proof.

8. What if the electronic voting machine itself is compromised?

This is perhaps the most important security question in the entire architecture.

Suppose a voter selects candidate A, but compromised EVM software encrypts a vote for candidate B.

The machine could still generate a perfectly valid Zero-Knowledge Proof.

Why?

Because a vote for candidate B is also a mathematically valid vote.

A proof of computational correctness is not necessarily a proof of human intent.

This is the fundamental limitation of relying exclusively on cryptographic proofs.

Additional controls are required, such as voter-verifiable paper audit trails (VVPATs), independent verification devices, ballot challenge protocols, risk-limiting audits and secure hardware and software validation.

The strongest architecture would combine physical evidence of voter intent with cryptographic evidence of ballot processing.

9. Which existing voting systems use these principles?

Several cryptographic voting systems have already explored these concepts.

SystemCryptographic approach
Helios VotingHomomorphic encryption and zero-knowledge ballot validity proofs
ElectionGuardEnd-to-end verifiability, encrypted ballots and cryptographic tally proofs
BeleniosCryptographic credentials, encrypted ballots and publicly verifiable tallying
CivitasResearch into verifiable and coercion-resistant electronic voting
MACIZero-knowledge proofs and mechanisms intended to reduce collusion and bribery in digital voting

These systems demonstrate different aspects of cryptographically verifiable voting. They are not all designed or approved for national political elections.

10. Do we need a blockchain for ZKP-enabled voting?

No.

Blockchain and Zero-Knowledge Proofs solve different problems.

TechnologyProblem addressed
Digital signaturesAuthenticity and integrity
Zero-Knowledge ProofsVerifying statements without exposing private information
Homomorphic encryptionComputing over encrypted ballots
Threshold cryptographyDistributing trust among independent authorities
BlockchainMaintaining a distributed, tamper-evident record
VVPATPhysical evidence of voter intent

A publicly auditable, append-only bulletin board can be implemented without a blockchain.

Blockchain may be useful for distributing election records across independent authorities, but it does not establish that a ballot reflects voter intent or that the original input was legitimate.

11. Could existing Indian EVMs be enhanced with ZKPs?

Conceptually, yes.

India’s standalone EVM architecture, combined with its VVPAT mechanism, could be the starting point for exploring a hybrid physical and cryptographic verification system.

Such a proposed architecture could include:

  • Encrypted ballot generation inside the EVM.
  • Cryptographic proofs of ballot validity.
  • Digitally signed election records.
  • Independent, offline proof verification.
  • Public release of appropriately anonymized cryptographic election records.
  • Cryptographically verifiable constituency-level tallies.
  • Independent reconciliation with VVPAT records.

Internet connectivity during voting would not be inherently necessary. Proofs could be generated offline and exported through a controlled post-election process.

However, this would constitute a substantial redesign rather than a simple software upgrade. It would require careful consideration of hardware capabilities, ballot secrecy, key management, certification, election regulations and independent security testing.

This is a conceptual proposal, not a description of features currently implemented in Indian EVMs.

12. Traditional EVMs versus cryptographically verifiable EVMs

Security propertyTraditional EVMZKP-enabled EVM
Ballot validityMachine logicIndependently verifiable proof
Tally correctnessMachine logic and auditsCryptographic proof and audits
Ballot secrecyPhysical and procedural controlsCryptographic and procedural controls
Duplicate voting preventionElectoral rolls and proceduresProcedures plus anonymous credential proofs
Public mathematical verificationGenerally unavailablePossible
Hardware trustRequiredReduced for certain properties, not eliminated
Voter intent verificationVVPAT, where availableVVPAT or independent verification still required

13. From trusted elections to provable elections

The debate around electronic voting machines is frequently framed as a question of trust.

Can we trust the hardware manufacturer? Can we trust the software? Can we trust the election authority? Can we trust the counting process?

Zero-Knowledge Proofs allow us to ask a fundamentally different question:

Which properties of an election can we mathematically prove rather than merely trust?

The objective is not to eliminate election authorities, physical safeguards or independent audits. It is to reduce the number of security assumptions that citizens must accept without independent verification.

Perhaps the next major evolution in electronic voting will not be faster voting machines, internet-connected voting machines or even blockchain-based voting machines.

It will be cryptographically verifiable voting machines.

Machines that do not simply announce an election result, but also provide mathematical evidence of how that result was derived.

Learn more: Enterprise AI Security Audit

ANUJ.COM

The voice of experience in AI and security.