Skip to main content

Voting system basics

Decentralized voting systems are a popular thing on lots of blockchain networks. They are even used to control the DAOs. There is no big deal to developing this system for EVM network. But we should have it in a distributed way. Look at the scheme:

Voteing ystem scheme

Let's use a similar TIP-3 mechanic: having a root contract (Vote) and personal Wallets (Ballots). Every participant deploys a ballot for itself, that has a vote function, which will call the callback of Vote contract and pass the vote result into. But what if we want to allow voting only for concrete users? Just add an activate function in our Ballot contract, that will be called externally and only by our vote creator (external calls may be signed). Move on to developing.