Inspiration
Power Voting dApp aims to build a DAO Governance dApp to utilizes ZKP and timelock to achieve fair and private voting.
What it does
In DAO Governance, before the voting deadline, no one’s voting results will be seen by others, and the voting process will not be disturbed by other participant’s voting results. After the voting deadline, anyone can count the votes in a decentralized manner, and the results of the counting will executed and stored by smart contract and will not be manipulated by any centralized organization or individual.
How we built it
Stores voting information on Aleo blockchain, and all voting operations are executed on the chain to utilizes Aleo's ZKP to make the voting process reliable.
When community members vote, they use the timelock technology to lock the voting content, and voting content cannot be viewed until the voting expiration time reaches, so that no one can know the voting information of other members before voting expiration time reaches.
After the counting time arrives, any voting participant can initiate a vote count without being affected by any centralized organization.
All the voting power, credits and voting information are stored in record, voting participants’ privacy won’t be disclosed. After voting counted, all the results are stored in mapping, anyone can count and view the voting result.
Uses Soter | Aleo Wallet Chrome extention to retrieve records and execute contracts.
Challenges we ran into
As Leo language doesn't support String type currently, we have to use Field to store proposal content, but Field is too short to store proposal content.
As there isn't a product like The Graph for Aleo, we have to write a backend service to store and index voting data.
Accomplishments that we're proud of
We quickly learned the features of Leo language and implemented the first version of Power Voting dApp, which supports functions such as voting, counting, and timelock.
What we learned
We learned about the new features of Aleo and Leo, as well as the experience of excellent projects in the Aleo ecosystem in this zkHackathon.
What's next for Power Voting
Keep following up the updates of Aleo and Leo to improve Power Voting dApp. Power Voting dApp aims to become the infrastructure of DAO governance.
Built With
- go
- ipfs
- leo
- typescript
Log in or sign up for Devpost to join the conversation.