About
DareX: A Decentralized Social Challenge Platform DareX is a cutting-edge decentralized application (dApp) that transforms real-world challenges into a gamified, crypto-powered social experience. At its core, DareX is a platform where users can create, accept, and complete real-life "dares" for cryptocurrency rewards. The entire process, from a dare's creation to its final payout, is managed by smart contracts on the blockchain, ensuring transparency, fairness, and security.
The project is designed as a mini-app to run natively within the World App ecosystem, leveraging its secure and user-friendly environment.
Key Components and Technologies
The DareX platform is a sophisticated blend of modern web technologies and core Web3 principles.
1. User Authentication: World App Wallet & SIWE Instead of traditional logins or requiring users to connect external wallets like MetaMask, DareX uses World App's native Wallet Authentication. This is the primary and only method for users to sign in.
How it Works: The application follows the Sign-In with Ethereum (SIWE) standard. When a user wants to log in, the app's backend generates a unique, secure message called a "nonce." The World App then prompts the user to sign this message with their wallet's private key. This signature, which proves ownership of the wallet without revealing any secrets, is sent back to the application's backend for verification. This process provides a highly secure, passwordless login experience.
2. Core Logic: Modular Smart Contracts
The backbone of DareX is a set of modular smart contracts written in Solidity.
DareXModular.sol: This is the main contract that acts as the central hub. It handles the creation of new dares, linking participants to their submissions, and initiating the final reward distribution.
RewardDistribution.sol: When a user creates a dare, the crypto reward (e.g., PYUSD, ETH) is locked in this dedicated contract. This contract acts as a neutral escrow, automatically sending the reward to the winner upon successful completion or returning it to the creator if the dare is not completed successfully. This eliminates the need for any central party to manage funds.
Voting.sol: For every dare created, a new, unique Voting contract is deployed. This contract is responsible for managing the community-based voting process for that specific dare, ensuring that each challenge is judged independently.
3. Proof of Completion: Decentralized Storage with Filecoin A critical part of any dare is proving it was completed. DareX solves this in a decentralized way.
Filecoin & Lighthouse: When a participant completes a dare, they upload evidence, such as images or videos. These files are not stored on a traditional server, which could be a single point of failure. Instead, they are uploaded to the Filecoin network using the Lighthouse SDK. Lighthouse is a service that makes it easy to permanently store data on Filecoin and the InterPlanetary File System (IPFS).
Content Identifier (CID): Upon a successful upload, Lighthouse returns a unique Content Identifier (CID). This CID is a permanent, hash-based address for the proof files.
On-Chain Link: This CID is then stored on the blockchain as part of the dare's submission record in the DareXModular contract. This creates an unbreakable and publicly verifiable link between the on-chain dare and its off-chain proof, which can be viewed by anyone, anytime.
The User Journey
The entire user experience is designed to be seamless and engaging.
Sign-In: A user opens DareX inside their World App and signs in with a single tap using their wallet.
Create a Dare: A user can create a new challenge, writing a title and description, and setting a crypto reward. The reward amount is then transferred from their wallet to the RewardDistribution contract.
Accept a Dare: Other users can browse the "Dare Marketplace" and accept challenges.
Submit Proof: After completing the dare, the participant uses the app to upload their video or photo proof. The files are sent to Filecoin, and the resulting CID is submitted to the smart contract.
Community Voting: Once a proof is submitted, the community is notified and can vote on its validity. This decentralized governance ensures fair play.
Reward Payout: After the dare's deadline, the completeDare function is triggered. The Voting contract reports the result. If the proof is deemed valid, the RewardDistribution contract automatically sends the crypto reward to the participant's wallet.
By integrating these technologies, DareX creates a trustless ecosystem for social challenges, where the rules are enforced by code, and the community is empowered to govern the platform.
From the public ETHGlobal showcase page. Votes, swipes and the judge score are hackfeed's own.






