← Back to home

FanHub

FanHub is an anonymous social platform revolutionizing creator-fan connections through token-gated communities. Built on Oasis Sapphire with ROFL, it enables authentic, secure, and private interactions between creators and their fans.

Screenshots

FanHub screenshot 1
FanHub screenshot 2
FanHub screenshot 3
FanHub screenshot 4
FanHub screenshot 5
FanHub screenshot 6

Problem Statement

💞 FanHub - Where Creators Meet FansDetailed DescriptionFanHub is a decentralized social platform redefining creator-fan interactions. Built on Oasis Sapphire's privacy-focused blockchain technology, it offers exclusive, token-gated communities where meaningful, private connections thrive while preserving user anonymity.FanHub combines a chat and Twitter-like message thread system, enabling fans to engage with their favorite creators (Hosts) in confidential spaces. The platform uses a token-gating mechanism to manage community access, ensuring only those meeting specific token balance requirements can participate.Core TechnologyOasis Sapphire Integration: Leverages confidential smart contracts for secure, private interactionsROFL (Remote Offchain Fault-tolerant Logic): Enables efficient off-chain token balance verificationEnd-to-End Encryption: Ensures complete privacy for all communicationsToken-Gating Mechanism: Smart contracts verify token holdings for community accessKey BenefitsFor Creators:Create exclusive communities for dedicated fansMaintain genuine connections without privacy concernsMonetize engagement through token-based accessControl community membership through token requirementsInteract directly with fans in a secure environmentFor Fans:Join exclusive communities of favorite creatorsMaintain anonymity while engaging with creatorsParticipate in token-powered ecosystemsAccess private content and direct communicationsVerify authenticity of creator interactionsTechnical ArchitectureFrontend:Built with Next.js for optimal performanceIntegrates Wagmi for seamless Web3 functionalityResponsive design for all devicesSmart Contracts:Deployed on Oasis Sapphire networkHandle token-gating logicManage community access controlsProcess encrypted communicationsROFL Service:Performs off-chain token balance verificationEnsures efficient and scalable operationsMaintains system integrityPrivacy FeaturesAnonymous participation while ensuring token ownershipEncrypted group and direct messagingPrivate community spacesSecure token verification without exposing wallet detailsUse CasesExclusive fan communitiesPrivate creator channelsToken-holder only eventsSecure creator-fan communicationsPremium content accessCommunity governanceFanHub represents the future of creator-fan relationships, combining the benefits of Web3 technology with the need for authentic, private social interactions in the digital age.

Solution

How FanHub Was BuiltFanHub combines the power of Oasis Sapphire's privacy features with user-friendly authentication through Privy. Here's how we built it:Core Authentication & Wallet IntegrationWe prioritized accessibility while maintaining security by implementing multiple login options:User Authentication (Privy)We integrated Privy to provide flexible authentication options:Wallet-based login (primary method)Email authenticationSMS verificationEmbedded wallet creation for new Web3 usersThe system automatically creates wallets for users who don't have them, making the platform accessible to crypto newcomers while maintaining security with password protection.Blockchain Integration (Wagmi + Sapphire)We built on Oasis Sapphire's privacy-focused blockchain infrastructure:Support for multiple Sapphire networks (mainnet, testnet, localnet)Custom HTTP transport layer for Sapphire-specific interactionsIntegrated wallet connectors optimized for Sapphire's privacy featuresKey Technical FeaturesPrivacy-First ArchitectureEnd-to-end encrypted messaging using Sapphire's confidential smart contractsPrivate token-gated communitiesSecure wallet integration with privacy preservationUser ExperienceSeamless authentication flow for both Web3 natives and newcomersMultiple login options to reduce entry barriersAutomatic wallet creation for new usersReal-time encrypted messaging that feels naturalSmart Contract IntegrationToken-gating mechanism for community accessEncrypted message handlingEfficient balance verification systemChallenges & SolutionsWeb3 Accessibility:Challenge: Making the platform accessible to non-crypto usersSolution: Implemented Privy's embedded wallets with multiple login optionsPrivacy vs Usability:Challenge: Maintaining privacy without compromising user experienceSolution: Leveraged Sapphire's privacy features with optimized transport layerPartner TechnologiesOasis Sapphire: Provides the privacy-focused blockchain infrastructurePrivy: Handles user authentication and wallet managementWagmi: Manages blockchain interactions and state management

Hackathon

ETHGlobal Bangkok

2024

Prizes

  • 🏆

    Best use of Sapphire and/or ROFL2nd place

    Oasis Protocol

Contributors