234 points · by theanonymousone · 1mo ago · 230 comments
That still leaves tons of other technical problems to address, like security of mail-ballots / absentee ballots, the security of ballot boxes used for early voting (because you probably cannot run the above manual partial audit due to then having nightly results available to the public; or maybe you accept that), voter registration, etc.
Your ID card contains a private key, you use that key to sign a transaction. It doesn't matter that machine you are running on is compromised as these details can be verified at a later date.
Example A: You vote for candidate A, but software changes to candidate B and software displays that you voted for candidate A. At any later time you can check with an independent device and look at the transaction finding out that it was altered with and retract your vote / change it.
Example B: How do you know your vote was counted? Publish a hash and the signature of every vote, recompute the final tally and compare with all the votes. If your vote is not in the final tally the hash will be different and you can visibly see your vote in the dataset as every transaction is published. To preserve privacy each round has a number, private key + number -> new key so each fingerprint will be unique between votes.
I've spent a lot of time thinking about this problem, and my conclusion is that cryptography alone is not the solution, for reasons like:
1. The public needs to believe it, and hypertechnical solutions are a hard sell.
2. Any blockchain approach needs to preserve the secrecy of the ballot, otherwise you get all the problems you can expect of non-secret votes (coercion, vote buying, shaming network effects).
3. You still need to have the cryptographic rubber meet the physical road _somewehere_ -- it has to, otherwise the need for vote secrecy means that the results can be entirely fictitious and pre-programmed and there is no way to check!
I.e., you can have a paperless blockchain solution IFF you abandon vote secrecy. That is a very tough to swallow pill.
On the other hand, if you accept paper ballots and manual partial audits as part of the solution, then blockchain can have a role to play. For example, the machines could display a blockchain head every 50 ballots cast, and voters take a copy of the blockchain head visible to them, then after the election the public can verify the integrity of the blockchain, and the fact that you only get running tallies every 50 ballots means you get vote secrecy.
A system that uses paper ballots and partial manual audits can be explained to the public, and the public can develop confidence in it. Blockchains can then add a good deal of confidence: the blockchain tells you that the tallies were not modified after the fact, and the partial manual audit tells you to an acceptable level of statistical confidence that the digital cast vote record contains the actual paper ballots _as marked and cast_ by voters.
This is false. I know this is a common thought on HN because some formerly popular youtuber did a video about this topic that is still regularly reposted here, but he was already wrong in theory back then and it is certainly wrong in practice today. Secrecy/anonymity and verifiability are no longer mutually exclusive as anyone who is well versed in modern cryptography will be able to tell you.
This doesn't directly affect your comment, but I'd like to head it off before more occur: "Distributed Database" != "Blockchain".
We've had distributed databases with hashes for many decades. It'd be cheap, easy, and fast to run a couple hundred pre-determined nodes controlled by many different governments and institutions who are unlikely to >50% collude.
In contrast, the different and new pieces for "Blockchain" all revolve around one root requirement of letting anybody start up an arbitrary number of nodes--which we don't need for elections. Without that requirement, dozens of problems and workarounds fall away, like the problem of voters standing around for transaction clearing times.
With voting you need to have one piece of the pipeline that is not auditable externally and taken on faith. It could be vote counting or it could be the step that matches your ephemeral signing key with your identity, but doesn't keep the logs.
This needs some level of integrity of the election administration body and public trust of it.
>A system that uses paper ballots and partial manual audits can be explained to the public, and the public can develop confidence in it.
It doesn't matter that the ballots are paper. What matters is they are at the same time a) given only to qualified voters (1x each) and b) are not tied to voters identities once issued and c) once cast are properly counted.
You can go all digital and gain B with a mixer, but this makes the process prone to denial of service and it's too complicated to explain anyway.
Not if everyone voted the same on something…
Public doesn't need to know the details. Production of paper, printers is quite complex and so production of the pen. Yet people are not concerned about that when voting and we don't publish schematics of a printer that printed the ballots.
Since I'm able to retract my vote, I cannot sell it. And since I can retract my vote, I cannot be coerced in any way.
Passports would need to become like hardware wallets with screens such as Trezor. Who's firmware and design are open source.
The screen means I can see what I'm signing and later be shown what I signed.
Now, I don't want people to know who I vote for. So we make it e-passport gate so that no one can enter with me.
Now I want to be able to verify my vote at a later date but not let others know it was me. Well this too is solved by multiple cryptocurrencies like monero and z-cash.
I can go to my local town hall enter a room alone using a e-passport style gate and check my vote at the machine. My device can verify my vote.
Someone with the vote can only see that 1 of N voters did it. Where N is so large they can't identify me.
No duplicate vote is possible.
Literally no one would agree to this however.
Or ballot boxes. Where citizen can keep their eyes on their ballot until it is counted.
Even back in 2002, TV channels in France (60m inhabitants) broadcast the winner at 20:00:30, using statistical models.
But recently, they removed the ability for citizen to stay during the counting, relying on designated persons, which breaks the chain of trust. Might as well cast my vote into a black bag or an electronic machine, no trust at all.
Trust was never the goal. As the means of coercion are higher and the capacity of communication is filtered, it becomes unnecessary to involve citizen in voting, isn't it?
Here in Australia, representatives of the various political parties observe the counting as scrutineers. I did it once. It’s absolutely fascinating seeing the system and rules. All (lower house) votes are physical slips of paper. Officials sort them into piles of 50 based on their first preference, in a big warehouse. Scrutineers watch them do it. We are allowed to contest their reading and sorting of a vote, but not physically touch anything.
I’m sorry to hear you can’t see your own democracy in action. I have more trust in our election process seeing it up close, in person.
Congrats, you just broke privacy. An abusive husband can now check the vote of his wife, so she can be forced to vote in a way she doesn't want to.
This enables coercion of voters. It must be impossible to attribute any vote to any specific person.
In the end, you always must trust humans.
2) How does cryptography helps to verify that teachers vote without pressure and not in principal's office under supervision? Or that they are not forced to give their mobile phones and ID cards to a principal for "inspection"? And the same for employees in large companies, government employees, military, police, doctors etc.
3) How does cryptography helps to verify people are not voting for a payment?
I am surprised that when someone says "cryptography" programmers become so blind that cannot see even the elephant in the room. It feels like everyone is brainwashed by propaganda.
> At any later time you can check with an independent device and look at the transaction finding out that it was altered with and retract your vote / change it.
Easy for a non-programmer.
> these details can be verified at a later date.
After election results are officially confirmed, and cannot be changed.
Can you? I am not familiar with any electronic voting system because they are not allowed where I vote. Does any system give the voter access to their vote later to check that it was registered correctly?
Not even sure whether that would be a desired functionality. Free elections are secret for a reason. If you can check whether you voted correctly others can, too. Even if that functionality were protected by the private key again, it might be misused. There are governments/comompanies where they'd say: Show me how you voted or you are in prison/fired.
There is no problem that electronic voting solves that paper ballots and scanners do not, and the latter are not only more secure but are seen to be more secure. Trust is essential in a voting system and only paper ballots provide the necessary level of trust.
There is a specific problem with mail-in voting and disabled voters, for example elderly people who can't go to the polls and can't get an electronic ballot marker. 25 US states deliver ballots electronically and 15 allow electronic voting for this specific case [1].
[1] https://www.ncsl.org/elections-and-campaigns/electronic-ball...
This seems to make a pretty dramatic change to the election protocol, no?
Consider example A': You vote for candidate A, but later realize that you hate candidate A. You repudiate your recorded vote for candidate A.
What should happen?
2) How do you avoid the cloud derived encryption keys?
I'll quote Bruce Schneier [1]:
If you think cryptography can solve your problem, *you don’t understand your problem* and you don’t understand cryptography.
0: I already do anything related to any interaction with a computer system for them (including payments, social security, medical, travel, etc.)1: He dug into the origins of this here: https://www.schneier.com/blog/archives/2026/05/laurie-anders...
Only a selected few orgs and groups are allowed to audit and in a very controlled environment because they also rely on security through obscurity. The source code is not available to the citizens.
If by any chance I'm wrong and someone can point me a source code repo, please enlighten me.
https://international.tse.jus.br/en/electronic-ballot-box/pr...
Officially, it's because of total horseshit reasons.
They said it was unconstitutional because it would "compromise the secrecy of the vote". It most certainly wouldn't: the paper would be deposited on a sealed ballot box that obscures the voting order, and the voter wouldn't be given a copy.
They also said it was unconstitutional because it couldn't be implemented in a timely manner. I barely have words to express how dumb that is.
https://conjur.com.br/2020-set-16/supremo-confirma-liminar-i...
The discussion is all about politics because these "official" reasons are obviously stupid and don't fly. We're trying to infer the real reasons why they resist the auditable system.
2022 elections exposed the supreme court judges as unabashedly partidarian and more than willing to violate the constitution to favor the left wing candidate Lula. There's also the fact that Lula never won an election back when Brazil used paper ballots, but dominated the country for nearly 20 years after the introduction of the voting machines.
More than enough to start raising some serious doubts about these so called "authorities".
You just need to find the right balance.
In my country we still rely on a paper process - which is very hard to tamper with but also has a bunch of problems - recently we needed to repeat local state elections because of such problems including shortages of ballot papers, unusually long queues to vote, ballots being delivered to the wrong locations, and in some cases voters being turned away. Many of these problems go away with digital voting - but then you have other issues.
I don’t think a perfect solution can exist
E.g., a counter can put a bit of pencil lead under a fingernail and mark overvotes on ballots they don't like, thus causing them to be adjudicated or not counted.
Not even a remote access to a demo ballot machine.
That means it doesn't matter one bit how correct you are if the regular Joe does believe you tricked. Adding computers into the mix always makes this worse. And again, this is not something you can fix with clever solutions and cryptography (that admittedly fascinates me nonetheless), the problem is that people can't see electricity generally and I something at the scale of a computer, even if you could it would be utterly meaningless.
This is why the paper ballot system is so glorious in its stupid inefficiency, because it spreads the trust in a way any adult who has mastered object permanence can verify for themselves. Invite the conflicting parties to monitor and have them begrudgingly admit their defeat in the face of the simple, inefficient but agreeable process.
This is why I as a cryptography fan, programmer and hardware guy think electronic voting is not up to the task for high stakes elections.
What is the goal? Having fancy crypto or people being confident about elections?
If spreading the trust is the goal what makes you say "inefficient". It is orders of magnitude better then any crypto system.
The costliest item is counting by hand, so... don't. Use ballot scanning and counting machines and then implement a timely partial manual audit to demonstrate that the BMDs and BSCDs functioned correctly.
While I’m a proponent of the paper process let’s not pretend it immediately means you can be confident about the election
There’s also the bear mechanism. In the forest, you don’t have to run faster than a bear, you need to run faster, than the person you are with. Let’s say there’s an issue with id-cards or electronic signatures in general. The attackers could wait several years and attack voting risking, that all electronic votes are annulled as their attacks are uncovered. Or they could just wreak complete havoc on the entire society right now. The electronic signatures are so ubiquitous here you can literally do anything. Sign a document as the President, take out loans on behalf of everyone, get everyone divorced (or married), take all their money etc. why would you wait?
I'm sure this is overly naive, but what am I missing?
I mean that's too abstract and philosophical of a problem when talking about voting machines/software: there are much more prevalent and concrete risks including but not limited to APT-grade breach/espionage if your country is important enough, and the various other issues (some in your comment itself).
I'd like to see a system that allow us to vote on issues directly.
Money for war? War with Iran? Support Israel? etc.
[1] https://en.wikipedia.org/wiki/Electronic_voting_in_Estonia
But the rest is very useful. During last elections, one of the opposition parties I’m not a fan of finally got their act together and put actual pressure on the electoral committee rather than ludicrous nonsense: procedural issues, hygiene etc. That’s great! Very much appreciated. When the op sais we don’t have doubts he probably means we don’t have doubts about there being sufficient process to keep this thing getting better
That doesn't matter. The system is dependent on people's trust in the system. Sooner or later that trust will be eroded, you might hear convincing reports of external influence, people might be duped by a persuasive authoritarian candidate, it doesn't really matter.
Fear, uncertainty and doubt are enough for the system to lose legitimacy and spreading FUD about things people don't really understand is really easy, history is filled with examples of this.
oH tHeY mUsT hAvE mAdE sOmE lAsT miNuTe bUgFiXeS.
Everyone with half a brain should know that this is completely compromised. Nobody wanting to run fair elections would support electronic voting.
Currently, with people trusting the government, this system is great. I can just cast my vote online, like I do everything else here, and I can be reasonably sure that my vote is counted thanks to the aforementioned trust in the system.
But I really fear the day that trust erodes.
On the other hand, though, once the trust is gone, I think it doesn’t really matter whether it’s an analog or digital count. People won’t trust the system anyways.
Then again, there’s a lot of nuances and different levels of trust, which is the reason why I don’t know what the right answer is.
Then the defense-in-depth is that paper ballots are inherently decentralized. Even if you manage to pull off a complex operation to rig ballots at a local voting location, you'd have to do the same at hundreds or thousands of other locations to affect the results of the election.
Each voting station gets a paper voter list. When one votes, their name is struck off this list and added to a new one by different people. Then ballots are tallied one by one in front of observers, and the count and both lists are checked to match.
Finally, the preliminary tally is sent, but physical evidence is brought to a nearby court by the station members for custody, plus a copy of some documents sent by mail, so the electoral boards can aggregate the results during public sessions.
(As Ireland is a PR-STV country, this leads to _extremely long_ vote counts. I think the most recent European Parliament election didn't assign all the seats for about a week.)
Hmmm, maybe I’m underselling this, you probably can cheat by a lot of percentage points still and get away with it. But at some point if the official results are like Putin’s while local results show everyone hates your guts, it might start tipping people off.
Millions of slips of paper are very easy to burn, and print...
E-votes just make it cheaper/easier to vote in free countries. I don't think we have invented a truly dictator-proof voting system available yet.
Why not? Estonia had paper ballot voting for the entire soviet occupation of about half a century, didn't have any effect on the amount of rigging though. Same with Russia today, they use paper ballots, but results still don't matter.
Paper vs electronic voting is just a small component in election fairness and there are upsides and downsides to both.
The key point being "everyone is doing their job". You need to make the system so transparent and involve so many observers/auditors that there's nowhere for corruption to hide.
If you threaten the opposition with prison (or worse) if they tell anyone about your fraud then you don't have a democracy to begin with. The only way to preserve any semblance of legitimacy is if you manage to keep thousands to tens of thousands of people quiet on all of this.
I don’t see why that should be the case. If you can influence gov elections every couple of years that seems like a pretty big deal.
On the other hand having the voting source code public and auditable seems like a good way to build trust
It's not the source code that matters. It's the whole architecture, design, supply chain, and implementation as in down to object code _including_ firmware.
There's issues that are pretty fundamental with the black-box approach that the electronic ballot becomes. Paper and transparent ballots can be scrutinized pretty easily, but once you have a black box that might also be connected to the internet there's nothing you can really trust.
We saw this with the Bitcoin wallets recently, with hidden 5g modems being added in a supply chain attack. The payoff in this case for the attackers was large enough to motivate them go to such extreme lengths.
Interfering with a democratic countries elections is a pretty big incentive for across like Russia. They also have the resources to do it.
I believe the Swiss also open sourced their e-voting software.
This source code being open is great, but it’s not the wole story. E-voting is deliberately designed to fit into the context of voting in general and into the societal context. Your paper vote always overrides your electronic vote and there’s provisions in the law allowing cancellation of electronic voting and immediately falling back to paper. In the societal context, electronic identity and signatures are ubiquitous, voting is the least it’s used for.
Thus, the question is not if the system the code implements is secure but if the whole thing is. Of course, if you find a security issue in the code, get in touch and your contribution will be welcomed. But please do not claim e-voting to be inherently insecure without an understanding of how it works on the ground and what happens around it. Happy to explain.
> The intention behind this repository is to make source code of the Estonian online voting system available for public review.
> The repository is not used for active development, but will be kept up to date, so the code that can be found here is the code that is used for election.
The repository is not used for active development, but will be kept up to date, so the code that can be found here is the code that is used for election. As the voting system used for legally binding elections must strictly follow the legislation, the actual development of Estonian I-voting system and I-vote verification application is supervised by State Electoral Office of Estonia. Please refer to www.valimised.ee for further information.
It works great for the military and for the clergy where it is even worse. I don't know why we don't something like that for the rulers.
Us "computer folks" convincing ourselves is the easy part. Maybe after enough studying of the system, I'd be absolutely sure that my vote was counted, but what would the other 90 % of the population think? This not a "people are stupid" argument, a brain surgeon or nuclear physicist or philosopher isn't going to put in the effort to understand fully homomorphic cryptography, hardware-based security, etc. Why should they?
The alternative works perfectly fine and it's so easy to explain. It's obvious to anyone, no matter their level or field of education, how their vote makes it from their hand into the tally, what prevents it from being misused and what they can do to further reduce that already tiny probability.
You can see, feel and experience the technical measures keeping your vote safe. The people keeping their eyes on the ballot box alp day may literally be your neighbours, as are the people counting. You can reason about their motivations, you can theorise in your head about what lengths you'd have to go to in order to change even a few votes and how unlikely you would be to succeed.
The biggest danger to elections, ultimately, isn't the risk of cheating. It's the risk of losing the people's trust.
(I'm in the local election commission (that's layer 2 out of 4 in our particular election management hierarcy), we just had a big referendum, everyone keeps asking me about online elections so this rant was fresh on my mind)
It's funny too - 15 years ago on HN people would discuss blockchain voting systems or ways to make it 100% secure. It seems like lately a lot of people carrying water for the potential that one party is associated with 95% of the fraud - and don't wish to discuss the vote being fair.
In any system, I suspect it is possible. There are strategies that allow doing private set intersections (or similar): https://en.wikipedia.org/wiki/Private_set_intersection (i.e. a set with one member is "you", and you can check to see if you're in that 764, without knowing who the others are)
I'm not sure what strategies would also allow you to not reveal to the vote collectors where your vote went, but there might be something.
> Private set intersection is a secure multiparty computation cryptographic technique[1] that allows two parties holding sets to compare encrypted versions of these sets in order to compute the intersection. In this scenario, neither party reveals anything to the counterparty except for the elements in the intersection.
Revealing even elements in the intersection, if that means revealing individual votes, breaks ballot secrecy.
However, how do you know you're one of the X votes displayed in the final tally ?
Faking paper ballots is totally doable, but you can take various precautions to make that very difficult. For example, you can deliver ballots to polling locations in sequentially-numbered packs and shuffle them at the voter sign-in desk: by shuffling the packs before delivery, by having the elections judges record which packs they got and which numbers went unused, by making them sign ballots prior to placing them on the sign-in table, and so on, you can make it very difficult for elections administration staff to later replace those paper ballots. But you're going to need timely, partial or full hand-count audits in order to make it necessary to replace paper ballots in order to replace results.
Election security is pretty expensive, but compared to the _value_ of elections, it's nothing.
I think such a system could still work, but just like the voter has to go to the booth alone to vote, they must go the booth alone to verify.
That being said I think the Estonian voting system does a decent job of being trustworthy. Publishing the source code is a big step to the better as well. As far as I knew the system was written in Java but seems like they have upgraded it in Go. Good job! Probably the best in the world.
I might be missing something obvious but I'm not quite seeing the logical inconsistency between their two goals. Note they're only asking to verify their own vote, not to verify every other person's vote. For that, isn't it enough for authorities to announce a product of large primes, letting each person verify that their own prime was in the set? At each stage, the machines only report the product of primes up the chain, not the individual ones.
It seems to me the difficulty is with the fact that we have so many places to hide malicious things with modern technology (tiny electronics, firmware, etc.), not a logical incompatibility between the goals. If you had some sort of abacus that did all this mechanically without reprogrammability... or a large computer whose logic was fully verifiable... then everyone could inspect the machine and verify that it behaves correctly prior to elections, and e.g. a camera/observers/etc. can ensure no tampering occurred with the machine until the tallies were conducted.
Still, if you had the authorities to announce a product of large primes - whatever that means - how do you know they announced the correct primes and not something they made up? I'm afraid any clever cryptographic scheme you come up with falls the victim of the same dilemma: if you can check that your vote was counted right, you lose anonymity. Also how do you check no fake votes were added?
As far as I know, the Estonian voting system works in two stages. First there is an authenticator, that verifies that each given vote is signed properly, is only given once and can be counted, without looking at the payload. Then it anonymizes the votes and signs the result file which is transferred to another system which counts the votes. The communication is unidirectional so that the front-end doesn't get any feedback from the back end save some data transfer acks.
As I said, a decent job. It's not perfect in any meaning of the word. It's practical and it works. People trust it because they trust the people who designed it and run it.
This, and the need for everyday Joe to be able to understand what is done at every step.
Which has always been my biggest beef about digital vote. I'm all trusting the people writing voting software to do their best, actually. Being a Software engineer myself, I'm more concerned about bugs and hacks than deliberate tampering by the government. Especially in an age where AI agents can access pretty much anything ever connected to an electric plug...
You are aware of malicious hacking.
In code, you have no insight into what actually happens.
trivia: did you know that a tear in any of the pages of your passport renders it invalid?