TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: How does a Bitcoin based voting app works?

6 pointsby dcarmoover 8 years ago
I've been thinking about this for a while. From my understanding, each vote cast would create an entry on the global blockchain. But the minimum one can spend to create a node is a Satoshi, which is frowned upon on the community, and even so when you get to millions of votes, it'd become a bit expensive to keep the app working. Did I get this right or is there a better approach to scale?

6 comments

olegkikinover 8 years ago
If you want fair voting (one person - one vote), instead of rich voting (one dollar - one vote), you absolutely must map actual people to their voting mechanism.<p>You could, for instance, create 1 billion private keys, and distribute them individually among 1 billion people. And then they would vote by signing their voting choices on your voting website. Of course, you don&#x27;t even need Bitcoin for this scheme.<p>It&#x27;s much more complex than that though, since you have to deal with things like<p>1) Private key theft<p>2) Private key sales (rich people buying individual votes)<p>3) Issuing new keys to the new voters<p>4) Blocking keys of the dead voters<p>5) Make sure your DB of everyone&#x27;s private keys doesn&#x27;t get stolen<p>6) Not issuing multiple keys to the same person<p>7) Making sure individual voting records don&#x27;t become public, only the aggregates<p>And all of these organizational things are much much harder than the secure voting code.
评论 #13100900 未加载
matt_wulfeckover 8 years ago
At 3.2 maximum transactions per second it would take approximately 500 days of non-stop voting to get through all 146m registered voters in the USA (and during that time the BTC market would be doing nothing but voting). So to answer the question a BTC-based voting system where a transaction is used to cast a vote won&#x27;t work.<p>For this to work you&#x27;d need a different network with different speeds and abilities, but then you lose the benefits of the distributed BTC network.<p>We can&#x27;t even get all states to do an ID check before voting because of disenfranchisement concerns. I don&#x27;t think a block chain idea is going to get very far.
评论 #13101061 未加载
PichlerDover 8 years ago
This wouldn&#x27;t take place on the Bitcoin Blockchain, at least not in an on-chain manner as it would be way to slow and costly.<p>Voting itself comes in different forms. If you mean voting for a head of state to curb election fraud I could imagine this (for now) to be done in a more traditional way.<p>1) You go to vote in a normal voting booth 2) In the booth you have an offline computer, allowing you to pick a candidate and create a hash on a flash drive. 3) You enter the drive into an online computer infront of the voting scrutineers and the transaction is pushed to a blockchain.<p>The advantage of such a system might be that you can verify that your vote was counted by keeping the public key, while on the other hand it avoids vote selling if it makes sure that you can&#x27;t check again who was voted for in the transaction.
quickbenover 8 years ago
Scale it for your own voting requirement.<p>Maybe Bitcoin will fit as a template, maybe it won&#x27;t. Can you take the blockchain as an idea , and start with an empty one?
sly010over 8 years ago
It doesn&#x27;t.<p>There is no such thing as fair and anonymous voting, digital or otherwise. If you can&#x27;t tie a person to their vote, you will never know if they sold their vote, at best you can limit the number of total votes.<p>Bitcoin makes it very hard to tie a physical person to a digital identity, therefore makes it very easy to sell your vote.
评论 #13101728 未加载
dozzieover 8 years ago
Please learn first how cryptographers attempt to solve problems in voting, and, more importantly, <i>what these problems actually are</i>. Blockchain is just a timestamping protocol. Voting has nothing to do with timestamps and everything with (1) not knowing how your neighbour voted and (2) validating that your vote was properly counted.
评论 #13100839 未加载
评论 #13101042 未加载
评论 #13100966 未加载
评论 #13100967 未加载