The cryptography behind electronic voting (and why paper ballots are still essential)
Cryptographic voting protocols like Helios and ElectionGuard can keep ballots secret and make tallies publicly verifiable, but they cannot replace paper ballots in general elections because software failures must remain detectable independently of the software (software independence). Ballots are encrypted with threshold-shared exponential ElGamal so encrypted votes can be summed homomorphically and only the tally decrypted, with zero-knowledge proofs ensuring each ciphertext holds a permitted value. Benaloh's challenge method and ElectionGuard's hash-chained ballot commitments let voters detect compromised clients or servers that alter or drop ballots, but detection depends on many voters participating, and voter authentication, coercion resistance and injected ballots remain unsolved without external evidence such as paper records.
Related posts
- How Trail of Bits helps verify the integrity of your Signal chats
Trail of Bits easyNoviceSignal's Automatic Key Verification is a key transparency system that keeps a globally consistent, auditable map from phone numbers to public keys, so a compromised server cannot quietly hand out a false key. Trail of Bits runs one of three independent auditors, alongside Signal and Cloudflare. Its auditor is an independent open-source implementation that tracks each new entry in a local Merkle tree and periodically signs tree heads from a single consistent lineage. Clients require signatures from all three auditors within the last seven days, which caps a split-view attack at about one week before warnings appear.
- Introducing Automatic Key Verification
Signal mediumAdept
Signal's automatic key verification uses key transparency to confirm that the binding between a phone number or username and its public key is globally consistent, giving the same protection against a compromised directory as comparing safety numbers, without meeting in person. The design is an append-only log of key changes. Each entry has a sorted index snapshot, which lets clients binary-search for a contact's key in about 30 lookups over a billion entries. Key owners monitor the same entries to confirm their own key is listed correctly. Third-party auditors (Cloudflare and Trail of Bits) sign each log entry once, which keeps the directory operator from showing different views to different users.
- The post-quantum future of web privacy
Cloudflare hardMasterPrivacy Pass tokens rely on RSA and elliptic curves, so a quantum attacker could forge them, but redemption remains unconditionally unlinkable even after Q-day. Cloudflare outlines a post-quantum path for its next-generation MOLE credential system, whose issuer-hiding endorsements let a moderator verify a token came from a trusted anchor without learning which one. The proposed building block is PoMFRIT, a blind signature that proves knowledge of a multivariate (MAYO or UOV) signature on a hashed commitment using the VOLE-in-the-Head zero-knowledge proof system. Swapping MAYO for UOV yields roughly 4.3KB signatures in exchange for 46.6KB public keys, and the same components can be recomposed into the other credential types MOLE needs.
- Private analytics via zero-trust aggregation
Google Research hardMasterGoogle's private analytics service now layers a new lattice-based, one-shot secure aggregation protocol on top of TEE execution, so individual device data is never decrypted in server memory even if the enclave is compromised by side-channel attacks. Clients send a single message whose ciphertexts aggregate both the values and the encryption keys; small rotating client committees hold hints that unlock only the aggregate, which is masked with differential privacy noise. TEE attestation gives verifiable proof that the published aggregation code is what actually runs. The system is being used to measure real-world effectiveness of Android SafetyCore's on-device safety classifiers without exposing user content.
- How Meta built large-scale cryptographic monitoring
Meta Engineering mediumAdeptMeta logs every operation in FBCrypto, its managed cryptographic library, without sampling by aggregating identical events into per-event counts in an in-process buffer and flushing them periodically to Scribe, with data landing in Scuba and Hive. The buffer is a folly::ConcurrentHashMap shared across threads. Randomized first-flush delays smooth write spikes, and derived-key operations are rolled up under the parent key name to cut volume while still giving a pessimistic count for detecting key overuse. The resulting dataset drives key rotation, inventories of weak and quantum-vulnerable algorithms for migration, migration-safety alarms based on success rates, and fleet-wide library version tracking. Remaining challenges include Scribe and Scuba capacity and flushing safely at shutdown.