I think this is an area where you don't need a technological solution, just a legal one.
Vote selling/buying just needs to be as illegal as blackmail, fraud, etc. Fines and jail terms. (As I assume it already is?)
The thing is, it's going to be incredibly easy to catch, because if you're attempting to pay a group of people (employees, villagers, whatever) to sway their vote, there's always going to be at least one person who doesn't want to and inform the law. (Or else you don't need to be paying in the first place.) Hell, set up punitive damages so a whisteblower is guaranteed 50x whatever price they were being offered for their vote.
The idea is that people post their votes publicly, but encrypted, and there's a procedure (based on zero-knowledge proofs) that allows to check that an encrypted vote is correctly accounted for in the tally without decrypting said vote. If sufficiently many voters post their encrypted votes (and if it's not too predictable who will do so), a wrong tally will be detected with high probability.
My assumptions are that 1) individual votes have almost no value on their own, so coercion or vote selling should be limited by low appeal, and 2) we still have a justice system, if someone forces you to vote a certain way, report it. Buying any significant number of votes would be exceedingly difficult to keep secret. Especially given how little compensation could be offered for them.
While it's true that law enforcement has a role to play here, if you're being paid, you probably aren't going to report on yourself.
> individual votes have almost no value on their own
That's probably true in a national election, but it might not be true in e.g. a mayoral race.
I have offered to sell my vote to anyone in my area (a swing area of New Hampshire) who wants another vote for their side in any election at any level. I've never even set a price.
Not one person has ever offered a cent for it.
I mention this just by way of making the point that small-scale vote buying, which would be the hardest kind to detect, isn't happening.
Theoretically at least, detecting and preventing vote-buying at a scale significant enough to change the outcome of an election should be much easier.
Would-be buyers have to get word out to enough people for it to matter, but if most people assume this is unethical (or even just undesirable), it shouldn't be hard to get nearly everyone else to be willing to rat out the buyers.
I don't think the problem is nearly as hard to solve as you're thinking it is.
The odds of your vote swinging an election at any level are lower than the risk of being struck by lightning twice. Nobody wants to buy one vote. They need to buy hundreds or thousands before it will matter, and that makes them easier to catch.
So your result is the expected one. But the outcome would not be the same with most types of harebrained "let's just vote with our phones" that people come up with regularly.
This is also why it is in most countries illegal to take photos or film around the voter booth.
A photo of me with my completed ballot, in the voting booth, has always been part of the offer, since that was the same year I finally quit bothering to cast my own ballot.
[0] https://www.nbcnews.com/news/us-news/federal-appeals-court-r...
But I believe major point is still the same. Nobody knows if that's the actual posted ballot. You could easily take several and only cast one.
It is my personal belief that votes absolutely carry a market value, they're just very hard to monetize. (Which is usually regarded to be a virtue.)
If you hate abortion, but like $100 more than you hate abortion, then why shouldn't we just give you $100?
Of course, there is the knock-on effect of wanting inequality so you can control people and keep the vote price low, that's true. But that's just a question of the vote economics. I'm sure we can work something out.
Because it gives the person with more money more voting power (even moreso than they already have).