Scrutalis implements ElectionGuard 2.0 (Microsoft Research): a 4096-bit multiplicative group Z_p of prime order Q of 256 bits (spec §3.1.1), exponential ElGamal encryption, zero-knowledge Chaum-Pedersen proofs, threshold key sharing following Pedersen's scheme (guardians and quorum), and the ballot chaining of spec §3.4 for end-to-end verifiability. The hash function H used throughout is HMAC-SHA-256 as a random oracle (spec §2.0.0, eq. 105).
Ballot encryption — exponential ElGamal
Each possible answer to a question (not only the chosen one) is encrypted under the joint public key K: Enc(m, ξ) = (g^ξ mod p, K^(ξ+m) mod p) — spec 2.0.0, eq. 24 — with m ∈ {0, 1} and ξ a random nonce drawn in Z_q.
Systematically encrypting every possible answer, and not only the selected one, is necessary: if only the chosen answer produced a ciphertext, merely knowing which answer was encrypted would reveal the choice. This encryption runs exclusively in the voter's browser, never on the server side.
Zero-knowledge proofs — Chaum-Pedersen
Each ciphertext comes with a disjunctive Chaum-Pedersen proof establishing that it encodes a value in the valid range (0 or 1), without revealing which. A second proof, called the "aggregate proof", concerns the homomorphic sum of the ciphertexts of one same question: it guarantees that the total number of selected answers respects the question's limit (a single answer for a single-choice question), which a proof per individual answer cannot guarantee on its own — several answers could each individually prove 0 or 1 without their sum being valid.
The two families of proofs are separated by domain (two distinct one-byte constants in the hash computation) so that a proof of one can never be replayed as a proof of the other. These proofs are verifiable by anyone, without knowing the vote or any secret.
Homomorphic count
ElGamal ciphertexts are homomorphically additive: adding the ciphertexts of the same answer across all the ballots produces a single ciphertext of the total, without ever decrypting an individual ballot. A single decryption is needed per possible answer, at the close of the vote, never while it is open.
Key sharing and threshold decryption (Pedersen)
Each guardian is assigned a random polynomial of degree (quorum − 1) (key ceremony, spec §3.2). The joint public key is the product of the constant terms of each polynomial; each guardian's secret share is the sum of the values of all the polynomials evaluated at its own index (a Shamir secret sharing). Decryption combines the partial decryptions of a quorum of guardians, each weighted by its Lagrange coefficient (evaluated at x = 0) for the subset of guardians actually present — any subset of size equal to the quorum works, not a predetermined subset.
Documented, acknowledged limitation: today, the key ceremony runs in a single trusted server-side process (the polynomials of all the guardians are generated there together), rather than each guardian generating its own on its own machine without ever transmitting its raw coefficients. The threshold property itself is real and not simulated — the joint key is a genuine sum of independent secrets, and decryption really does require a quorum of human guardians, never Scrutalis alone — only the generation environment is not yet distributed. The full separation of guardians from generation onwards is on the roadmap.
Ballot chaining and confirmation codes (spec §3.4)
Each encrypted ballot produces a cryptographic hash of its content (the answer/pad/data triplets of each ciphertext, sorted so as never to depend on the submission order), then a confirmation code that chains this hash to that of the previous ballot: H(Bi) = H(H_E ; χ_Bi, H(Bi−1)), the first ballot of a referendum chaining from a starting value derived from the vote's extended base hash (H_E).
This confirmation code is given to the voter on their receipt, and the complete chain of a referendum is published (without ever associating a code with the voter's identity) on the public verification page. Anyone can independently recompute the whole chain from the published hashes and verify that it matches what is published — and that their own code does appear in it: this is what makes it possible to detect that a ballot would have been inserted, removed or reordered after the fact.
Acknowledged adaptation relative to the spec: ElectionGuard normally chains one hash per question then a global hash of the ballot; Scrutalis has no intermediate "per question" step and directly hashes the sorted set of the ballot's ciphertexts — cryptographically equivalent for the intended property (any change to an answer, or to the answer a ciphertext is associated with, changes this hash).
Audit log
A mechanism distinct from the ballot chaining above: each administrative action (creating, opening, closing a referendum, etc.) is recorded in a log chained by SHA-256 hash, partitioned by organisation. Altering or deleting a past entry breaks the chain in a detectable way. This log never contains the content of a vote — only the fact that an action took place.
References
Scrutalis does not reinvent home-made cryptography. ElectionGuard is an open protocol, published by Microsoft Research, and the threshold-encryption mechanism it uses builds on academic work published and peer-reviewed since the 1980s.
- ElectionGuard — official website ↗
- ElectionGuard — full technical specification ↗
- ElectionGuard — source code (GitHub, Microsoft) ↗
Four academic publications, the direct origin of the mechanisms described on this page:
- J. Benaloh, M. Naehrig, O. Pereira, D. S. Wallach, « ElectionGuard: a Cryptographic Toolkit to Enable Verifiable Elections », USENIX Security Symposium, 2024. ↗
The reference article describing ElectionGuard itself, co-written by its authors (Microsoft Research) with researchers from UCLouvain (Belgium) and Rice University (United States).
- J. C. Benaloh, M. J. Fischer, « A Robust and Verifiable Cryptographically Secure Election Scheme », 26th Annual Symposium on Foundations of Computer Science (FOCS), 1985, p. 372-382. ↗
The first verifiable electronic voting scheme in history, published by the author who would create ElectionGuard three decades later.
- T. P. Pedersen, « A Threshold Cryptosystem without a Trusted Party », EUROCRYPT, 1991, LNCS vol. 547, p. 522-526. ↗
The academic foundation of threshold encryption: how to share a decryption key between several guardians without any third party ever holding the complete key.
- D. Chaum, T. P. Pedersen, « Wallet Databases with Observers », CRYPTO, 1992, LNCS vol. 740, p. 89-105. ↗
The origin of the zero-knowledge proofs ("Chaum-Pedersen proofs") that ElectionGuard uses to prove that a ballot is valid without ever revealing the choice it contains.