project screenshot 1
project screenshot 2
project screenshot 3
project screenshot 4
project screenshot 5

Real Votes

RealVotes: Revolutionizing Digital Democracy with WorldCoin and Oasis Sapphire

Real Votes

Created At

ETHGlobal Singapore

Winner of

Worldcoin - Pool Prize

Prize Pool

Project Description

Project Overview RealVotes is a cutting-edge decentralized voting application (dApp) that combines the power of WorldCoin's proof of personhood technology with Oasis Sapphire's privacy-preserving blockchain. This innovative solution addresses the critical challenges of online voting systems: identity verification, vote privacy, and process transparency. Key Features

Sybil-Resistant Identity Verification: Leveraging WorldCoin's biometric verification to ensure one person, one vote. Privacy-Preserving Voting: Utilizing Oasis Sapphire's confidential smart contracts for anonymous yet verifiable voting. Real-Time Results: Displaying live vote tallies while maintaining individual vote secrecy. User-Friendly Interface: Built with Next.js and React for a smooth, responsive user experience.

Technical Implementation Frontend

Framework: Next.js 14 with React Styling: Tailwind CSS for responsive design

Blockchain Integration

Web3 Connectivity: Web3Modal for seamless wallet connections Blockchain Interaction: ethers.js and wagmi for robust blockchain operations Supported Networks: Configurable for various testnets and local development

Identity Verification

WorldCoin Integration: WorldID Widget for secure and private identity proofing Local Storage: Caching of verification status for improved user experience

Smart Contract

Platform: Deployed on Oasis Sapphire Testnet Functionality: Manages vote storage, tallying, and rule enforcement Privacy Features: Leverages Sapphire's confidential contract capabilities

User Flow

Wallet Connection: Users connect their Web3 wallet (e.g., MetaMask) to the dApp. Network Validation: The app verifies the connected network, prompting users to switch if necessary. WorldCoin Verification: Users verify their unique identity using the WorldID widget. Voting Process:

Upon successful verification, users can select their voting option. Votes are submitted as confidential transactions on the Oasis Sapphire network.

Result Display: Real-time vote tallies are updated and displayed, maintaining individual vote privacy.

Privacy and Security Measures

Zero-Knowledge Proofs: WorldCoin verifies identity without revealing personal information. Confidential Transactions: Oasis Sapphire ensures vote content is encrypted and not visible on the public blockchain. Anonymous Voting: The smart contract records that an address has voted without linking the specific vote to the address. Transparent Tallying: Despite individual vote privacy, the overall tally is publicly verifiable.

Unique Value Proposition RealVotes stands out by addressing key challenges in digital voting:

Sybil Attack Prevention: WorldCoin's biometric verification eliminates the risk of multiple voting by a single entity. True Anonymity: Combining WorldCoin's privacy-preserving verification with Oasis Sapphire's confidential contracts ensures votes are anonymous yet verifiable. Global Accessibility: WorldCoin's inclusive approach allows for a diverse, worldwide voter base. Scalability: Designed to handle large-scale voting events efficiently. Enhanced Trust: The dual-layer privacy approach (WorldCoin + Oasis Sapphire) builds credibility in the voting process.

Potential Applications While currently implemented for a simple color preference vote, RealVotes' architecture is scalable for more significant use cases:

Corporate Governance Community Decision Making in DAOs Public Opinion Polling Local and National Elections

Future Enhancements

Integration with additional identity verification systems Expansion to support complex voting mechanisms (e.g., ranked-choice voting) Implementation of decentralized vote counting and result verification Development of a mobile application for increased accessibility

Conclusion RealVotes represents a significant leap forward in digital voting technology. By combining WorldCoin's innovative approach to identity verification with Oasis Sapphire's privacy-focused blockchain, we've created a platform that ensures vote integrity, user privacy, and process transparency. This project not only demonstrates the practical application of cutting-edge blockchain technologies but also opens up new possibilities for secure and trustworthy digital democracy.

How it's Made

RealVotes: Technical Implementation Core Stack

Next.js 14 with React and TypeScript Tailwind CSS for styling Framer Motion for animations

Blockchain Integration

Oasis Sapphire for confidential smart contracts Web3Modal for wallet connections ethers.js and wagmi for blockchain interactions Multi-chain support: Sepolia, Base Sepolia, Optimism Sepolia, Oasis Sapphire Testnet

Key Features

WorldCoin integration for Sybil-resistant identity verification Privacy-preserving voting using Oasis Sapphire's confidential transactions Real-time vote tallying with individual vote privacy

Noteworthy Implementation Details

Adapted WorldID verification to work with Oasis Sapphire Custom caching of WorldCoin verification using local storage Optimistic UI updates for responsive user experience Dual-state system to handle blockchain confirmation latency

Challenges Overcome

Ensuring cross-chain compatibility Integrating WorldCoin with Oasis Sapphire Local development setup mimicking multi-chain environment

This project demonstrates the practical application of blockchain privacy features and decentralized identity verification in a voting system, showcasing the potential for these technologies in real-world democratic processes.

background image mobile

Join the mailing list

Get the latest news and updates