← All posts

End-to-end verifiability in plain words

Switzerland published the source code of its internet voting system, invited the world to inspect it — and researchers found a hidden backdoor that could make a fraudulent count look mathematically proven.

It is March 2019, and in the offices of Swiss Post in Bern, something is happening that looks, on its surface, like the gold standard of democratic transparency. Switzerland's federal postal authority and its Spanish vendor, Scytl, are about to publish the full source code of the country's internet voting system for public scrutiny — ahead of its planned use in binding federal referendums. Not just opening it to certified auditors in a sealed room. Publishing it on the internet, for anyone.

Three independent cryptographers — Sarah Jamie Lewis, Olivier Pereira, and Vanessa Teague — downloaded it and started reading.

What they found should change how you think about every election-integrity guarantee you have ever been offered.


A proof that proved nothing

The Swiss Post system did not just claim to count votes correctly. It claimed to offer verifiable counting — a mathematical proof, generated by the system itself, that any observer could check to confirm the votes had been tallied honestly. This concept has a name: end-to-end verifiability (E2E-V). It is considered the cryptographic frontier of election integrity, the property that lets you replace "trust the officials" with "check the math."

The researchers found that the system's shuffle proof — the cryptographic step that anonymises and verifies the ballot mix — relied on a commitment scheme with a trapdoor. A commitment scheme, in plain terms, is a way to seal an answer in an envelope: you commit to a value before anyone else sees it, and later you open the envelope to prove you didn't cheat. A trapdoor commitment lets someone who knows the secret — the trapdoor value — produce a fake-but-convincing seal.

Here is what that meant in practice: an insider who knew the trapdoor values could generate a shuffle-proof transcript that passed every public verification check while having actually altered the votes inside. The proof would look valid. Any independent observer running the verification algorithm would see it pass. And the election result could be wrong.

The researchers named their report "Ceci n'est pas une preuve" — "This is not a proof." Swiss Post and Scytl acknowledged the finding. Swiss authorities suspended the e-voting system. The source code that was supposed to invite scrutiny had, by being published, enabled scrutiny — and scrutiny found the flaw.

That is a success story, of a kind. But it is an uncomfortable one.


What "end-to-end verifiable" is supposed to mean

Before we get to why the Swiss episode matters beyond Switzerland, it is worth being precise about what end-to-end verifiability is supposed to guarantee — in plain words, without the mathematical machinery.

A fully E2E-verifiable voting system has three checkable properties, each of which a voter or independent observer can confirm without trusting any single authority:

Cast as intended. The ballot I submitted reflects my actual choices — not what a compromised device decided to record on my behalf.

Recorded as cast. My ballot, as I submitted it, made it into the official ballot box. It was not dropped, swapped, or silently discarded.

Tallied as recorded. The final count correctly adds up every ballot in the box. No votes were created or destroyed in the counting step.

The key word throughout is independently. E2E-V is not "the officials checked these things and say they are fine." It is "you — a voter, a researcher, a journalist, anyone — can run a check and get the same answer." The check should be open to scrutiny without requiring you to trust the system's designers, vendors, or administrators.

The Swiss system claimed all three properties. The trapdoor in the shuffle proof meant the third was a fiction. A proof that can be faked by an insider is not a proof; it is a performance.

A verifiability claim is only as strong as the scrutiny it has survived.


Why the proof itself must be checkable

Here is the deeper problem the Swiss episode exposes, and it applies far beyond cryptographic voting systems.

Every auditing mechanism has assumptions baked into it. A hand recount assumes human counters do not make systematic errors. A risk-limiting audit assumes the paper ballots it samples are authentic and readable. A cryptographic proof assumes the mathematics underlying it is correctly implemented. Each of these assumptions can fail — not because anyone is dishonest, but because complexity hides errors.

Consider what happened in Windham, New Hampshire, where a 2020 state representative race showed a large gap between machine totals and a hand recount. A forensic audit ordered by the state legislature later found that fold creases from an improperly set folding machine had caused optical scanners to read blank ovals as votes — at rates ranging from about 20 percent to more than 72 percent of folds through targets, depending on conditions. No malware. No tampering. A mechanical and optical artifact silently shifted the count. The error was traceable only because paper ballots existed and could be re-examined.

That is the analogue of the Swiss trapdoor: the verification mechanism itself was the source of false confidence. In Windham, the machine reported a result, and the machine-generated record was the error. In Switzerland, the cryptographic proof reported a correct shuffle, and the proof could be forged. In both cases, the layer you relied on to catch problems was the layer that had the problem.

The lesson is not that cryptography is unreliable or that hand counts are unreliable. The lesson is that any verification method must itself be independently checkable by people who had no hand in building it. This is not a counsel of despair. It is a design specification.


What "checkable by anyone" actually requires

The German Federal Constitutional Court put the citizen-verifiability standard in constitutional terms in its landmark 2009 ruling: voting must work so that the essential steps of the voting and of the determination of the result can be examined by the citizen reliably and without any specialist knowledge. The Court found that electronic voting machines that stored votes only in internal memory, with no independently verifiable record, failed this standard — not because fraud was proven, but because the check required expert knowledge most citizens do not have. The machines were pulled from German polling stations.

That ruling says something important about E2E-V too. A cryptographic proof that requires a mathematics PhD to evaluate is not, in the Court's terms, something citizens can verify. This is not a fatal objection to cryptographic methods — it is a design challenge. The challenge is to build systems where:

  1. The mathematical checks can be run by any reasonably equipped independent researcher, using published algorithms and published data.
  2. The results of those checks are comprehensible to a non-expert, even if the underlying arithmetic is not: "the proof passed" or "the proof failed" can be a one-bit answer anyone can read.
  3. Any failure — a proof that does not pass, a ballot number that doesn't match — is immediately visible and cannot be quietly remedied by an authority who controls the system.

None of that happened in the Swiss case before the code was published. The proof ran, it passed, and no one in the certification process caught that "passing" was not an honest guarantee.


The gap between "open source" and "independently verified"

It is tempting to treat publishing source code as equivalent to independent verification. The Swiss episode is a precise counterexample.

The Swiss Post code was published. The flaw was in the published code. The flaw was not found during internal development or during the certification process — it was found by independent researchers who were not hired to look, who had no stake in the outcome, and who published their findings adversarially. That is a very different thing from "we opened the code for review."

Los Angeles County's VSAP system, certified in California in 2018 as the first publicly-owned, open-source vote-tally system certified under California's standards, is a step in the right direction: public ownership and open code remove the trade-secret barrier that stops outside scrutiny. But open code alone is not a verifiability guarantee. What made the Swiss flaw findable was not just that the code was public — it was that independent cryptographers with no obligation to find nothing were motivated to look. And what made their finding actionable was that the finding was itself public and reproducible.

The same logic applies to any verification layer. The California Secretary of State's 2007 top-to-bottom review — where University of California researchers were given source code for systems used across the state — found serious security weaknesses in every system they examined, including vulnerabilities to malicious software that could spread between machines, insufficient audit mechanisms, and components that trusted each other without verification. Those findings were published. They led to strengthened requirements. That is the model: not a single certification moment, but continuous, adversarial, published review.

The villain is not a party, a vendor, or even a particular technology. The villain is opacity — the condition where the thing that is supposed to prove the count cannot itself be checked.


What a genuinely checkable system would look like

End-to-end verifiability, properly built, has a structure that separates it from "trust us, we ran the proof." Here are the properties that make it real rather than theatrical:

The ballot the voter checks is the ballot the system counts. This is why a QR code that the voter cannot read is a problem. In Curling v. Raffensperger, the U.S. District Court for the Northern District of Georgia found that Georgia's ballot-marking device system "does not provide a verifiable and auditable ballot record because it relies on the QR code for vote tabulation and that code itself cannot be read and verified by the voter." A voter staring at a barcode and human-readable text cannot confirm they agree — they must trust the machine encoded what it printed. That is not independent verification.

The cryptographic proof is published, not just available. Swiss Post published the code. What it did not do — before the researchers looked — was publish the proof of correctness in a form that made the trapdoor findable in a standard review. Verifiability requires publishing not only that the proof ran, but the proof transcript itself, in a format independent parties can re-verify with their own tools.

Independent, adversarial review is routine, not one-off. Brazil's election authority has, since 2009, run annual Public Security Tests in which any qualified person can apply to probe the voting system under controlled conditions, findings are published, and fixes are re-tested before elections. This turns scrutiny from an event into a process — and it is institutionalized by the authority itself, not dependent on a researcher stumbling across a flaw.

The margin of error is smaller than the margin of victory. An audit mechanism with its own irreducible error rate cannot settle a race decided by fewer votes than its error bound. Colorado's statewide risk-limiting audit, the first of its kind in 2017, ties the sample size to the race margin precisely to deliver a defined statistical confidence — not a fixed-percentage spot check that might miss a narrow-margin error. The same logic applies to cryptographic proofs: a proof that can be faked by an insider cannot certify a result, regardless of the race margin.


The question you should be able to answer yourself

Here is the test. After any election you care about, you should be able to do this:

Download a machine-readable file of precinct-level results. Download the cryptographic commitments the system published before the election. Download the proof transcript. Run a publicly available verification tool. See: pass or fail.

You should not need to file a records request. You should not need to hire a lawyer. You should not need to trust that the Secretary of State ran the check and found nothing wrong. The check should be something you, or any journalist, or any researchers like Lewis, Pereira, and Teague, can do independently.

That is what end-to-end verifiability means in practice. And the Swiss episode tells you exactly what happens when a system claims that property without actually delivering it: the proof runs, it passes, and it proves nothing — until someone outside the system looks hard enough to notice.

The reassurance and the guarantee are not the same thing.

A verifiability claim with no independent check is just a more sophisticated form of "trust us."

What would make the Swiss system checkable? The trapdoor's existence would need to have been findable by anyone reviewing the cryptographic specification — not just Lewis, Pereira, and Teague, who found it, but auditors, vendors, and certifiers before deployment. That means cryptographic specifications must be published at the design stage, reviewed publicly and adversarially, and re-reviewed after any change. And the bar for "passes review" cannot be "no one found anything yet." It must be "the security proof is complete, published, and reproducible by parties who wanted to find a flaw."

That gap — between a system that claims E2E-V and a system that actually delivers it in a form anyone can independently check — is the gap we track. It has a name. It has a map.

Explore the full end-to-end verifiability gap →

See how this gap appears across elections worldwide →

Two-minute version of why verifiability matters →


Sources