← Back to home

Mini Vote

Next generation ranked-choice voting via World Mini App to support better democracy

Problem Statement

Simple ranked-choice voting World Mini App. It showcases a new paradigm for voting systems to address fundamental flaws in our democratic processes.CORE FUNCTIONALITYThe system enables:Election Creation and Management: Authorized users can create new elections with custom candidates, voting periods, and specific World ID verification requirements.Ranked-Choice Voting: Voters can rank candidates in order of preference, including support for equal rankings (ties), providing a more nuanced expression of voter preferences than traditional single-choice voting.World ID Verification: Each vote requires World ID verification, ensuring one-person-one-vote integrity while maintaining voter privacy through zero-knowledge proofs.On-Chain Vote Recording: All votes are recorded on World Chain, providing transparency and immutability while preventing tampering.Tideman/Condorcet Winner Calculation: The system uses advanced voting theory algorithms to determine winners based on pairwise comparisons between candidates, resulting in outcomes that better represent voter preferences.WHY IT MATTERSExisting electoral systems are fundamentally flawed, resulting in undemocratic outcomes where people are neither are nor feel well represented. These systems insidiously encourage and reward bad behavior from politicians, undermining the very foundations of society.The Core Problem:Current voting systems force artificial compromises that distort democratic will:Strategic Voting: Voters must choose between their preferred candidate and "electability"Polarization: Binary choices amplify division and eliminate nuanced positionsUnrepresentative Winners: Candidates can win without broad support due to vote splittingPerverse Incentives: Politicians are rewarded for attacking opponents rather than building consensusVoter Disillusionment: People lose faith when the system consistently fails to reflect their valuesThe Alternative:This project implements cutting-edge voting methodology to resolve fundamental compromises plaguing all well-known electoral systems. Rather than debating which flawed system is "least bad," we demonstrate a profoundly superior approach that:Eliminates Strategic Voting: Voters can always vote their true preferences without fear of "wasting" their voteRewards Consensus-Building: Politicians benefit from being broadly acceptable, not just intensely supported by a narrow baseEnsures Democratic Legitimacy: Winners have genuine majority support through sophisticated preference aggregationReduces Polarization: The system naturally favors candidates who can bridge dividesThe Mission:While this won't immediately fix democracy, it makes a demonstrably better voting system conveniently available to all. The goal is threefold: provide immediate utility for organizations needing better decision-making tools, demonstrate how superior systems work in practice, and spread awareness that far better alternatives exist. By changing the dialogue from "which compromise should we accept?" to "why accept compromises at all?", we can catalyze broader electoral reform.Research Foundation:This project draws from original research on voting systems and collaboration with members of multiple organizations campaigning for electoral reform in the UK. While these groups may not be specifically interested in blockchain technology, there is widespread recognition of the need for and appetite for better voting systems across the democratic reform community.REAL-WORLD APPLICATIONSThis app can be used for:Community governance decisionsDAO proposals and electionsStudent government electionsProfessional organization leadership selectionLocal government initiativesAny context requiring secure, verified voting with ranked preferences

Solution

TECHNOLOGY STACKFrontend:Next.js 14 with TypeScript for the main application frameworkTailwind CSS for responsive, mobile-first styling optimized for World AppMiniKit SDK for seamless World App integration and World ID verificationReact DnD for intuitive drag-and-drop candidate ranking interfaceFramer Motion for smooth animations and user feedbackSmart Contracts:Solidity smart contracts deployed on World Chain Sepolia testnetHardhat development environment for contract compilation and deploymentOpenZeppelin libraries for secure contract patternsWorld ID Verification integrated directly into voting contract logicBlockscout for contract verification and explorationBlockchain Integration:ethers.js for blockchain interaction and transaction managementWorld Chain as the primary blockchain for vote storage and verificationIPFS (planned) for storing election metadata and candidate informationARCHITECTURE & IMPLEMENTATIONSmart Contract Design:The core voting contract implements a sophisticated ranked-choice voting system with World ID verification. Each vote is stored as an encrypted ranking array, with the World ID nullifier hash ensuring one-vote-per-person while maintaining privacy.Ranking Algorithm:Using pair-ranked based method for determining winners, which involves:Creating pairwise comparison matrices between all candidatesCalculating the strength of victory for each pairingSorting and locking in the strongest victories firstAvoiding cycles to determine the final rankingMobile-First UX:The interface was specifically designed for the World App environment with:Touch-optimized drag-and-drop for ranking candidatesProgressive disclosure of complex voting optionsReal-time validation and feedbackOffline-capable design for areas with poor connectivitySecurity Considerations:All votes are cryptographically signed and verifiedWorld ID prevents sybil attacks while preserving anonymitySmart contract logic prevents double voting and tamperingFrontend validation with backend verification for all user inputsNOTABLE TECHNICAL ACHIEVEMENTSWorld App Integration:Deep integration with MiniKit allows for seamless user experience within the World App ecosystem, including automatic wallet connection and streamlined World ID verification.By combining cutting-edge voting theory with modern blockchain technology and mobile-first design, this project represents a significant advancement in digital democracy tools.

Hackathon

ETHGlobal Prague

2025

Prizes

  • 🏆

    Big Blockscout Explorer Pool Prize

    Blockscout

Contributors