Rehab DAO
"Recover Privately, Celebrate Socially" Empowering addiction recovery through decentralization
Problem Statement
π Rehab DAO: Recover Privately. Celebrate Progress. Support Change. The Problem: Privacy vs. Progress in Recovery Imagine trying to get better from addictionβwhile the whole world can see your struggle.Thatβs the harsh reality for millions who want to recover but fear judgment, stigma, or the risk of losing their jobs, families, or scholarships if their recovery journey becomes public.Traditional recovery programs force you to choose:β Get help and risk everyone finding outβ Stay private but lose accountability and supportThe Solution: Rehab DAO Rehab DAO is the worldβs first privacy-first recovery platformβgiving you the best of both worlds. No more tradeoff between your privacy and your progress.π‘οΈ Complete Privacy Anonymous Recovery: Your real identity stays completely privateBlockchain Protection: Your progress is recorded on the blockchain, but only you can connect it to your identityZero Judgment: No one knows who you areβonly that you're making progressπ― Proven Progress Verifiable Achievements: Every therapy session is logged as an unchangeable blockchain recordCommunity Recognition: Receive encouragement for your progressβwithout ever revealing your identityProfessional Credibility: Therapists can verify your recovery journey for professional purposes when you allow itπ€ Supportive Community Anonymous Support Groups: Connect with others in recovery safely and discreetly24/7 Global Community: Get support whenever you need itβday or nightShared Experience: Learn from those who truly understand what youβre going throughHow It Works (In Simple Terms)Start Your Journey π Sign up anonymouslyβno personal information requiredπ Get assigned a private identity (e.g., recovery-warrior.rehabdao.eth)π€ Connect with verified therapists and community membersTrack Your Progress π After each therapy session, your therapist creates a private blockchain recordπ This record is permanent and unchangeable, but only you and your therapist know itβs yoursπ¨ Share your progress with employers, courts, or familyβwithout revealing your identityBuild Your Support Network π¬ Join anonymous support groupsπ Share your victories and challengesπ Get encouragement, celebrate milestones, and support othersReal-World Benefits For People in Recovery Keep Your Job: Prove commitment to employers without revealing your identityStay in School: Show schools youβre on a recovery pathFamily Support: Families can follow your progress while you keep details privateLegal Compliance: Supply evidence of treatment to courts or probation officers as neededPersonal Pride: Watch your own progress and celebrate achievements in anonymityFor Therapists Better Outcomes: Patients remain in treatment longer with privacy protectionProfessional Records: Create verifiableβbut secureβpatient progress logsCommunity Building: Collaborate with recovery professionals across the globeReduced Stigma: Help your clients focus on healing, not hidingFor Employers Support Employees: Offer genuine support without risking privacy intrusionLegal Protection: Secure, verifiable treatment compliance if requiredReduced Turnover: Recovery support = stronger, more loyal teamsCorporate Responsibility: Demonstrate real commitment to wellnessWhy Blockchain Makes This Possible Think of the blockchain as a digital notary that never forgets and never lies:Permanent Records: Progress can never be deleted or alteredPrivacy by Design: Records exist but donβt reveal who you areVerifiable: Anyone can check that a recovery record is real, but only you can prove itβs yoursTrustworthy: No one can fake, edit, or manipulate recovery recordsβ¨ Your recovery journey starts hereβand it stays private. β¨
Solution
For FULL Developer Documentation - https://github.com/Dasika-Vaishnavi/Rehab-DAO/tree/main?tab=readme-ov-file#chapter-1-project-overview--architectureProject Overview & Architecture What is Rehab DAO? Rehab DAO is a privacy-first addiction recovery platform leveraging blockchain to provide anonymous progress tracking, verifiable therapy session attestations, and a supportive, pseudonymous community. It solves the crucial need for privacy and trusted accountability in addiction recovery.Mission & Vision Mission: Enable private, effective recovery while building communities and verifiable progress records.Vision: Decentralize recovery support where privacy, community, and trust coexist through blockchain.Key Stakeholders Stakeholder Role Purpose Patients Primary Users Anonymous recovery tracking, peer support Therapists Service Providers Attestation creation and therapy management Managers Community Leaders ENS subdomain assignment, platform oversight Sponsors Funders Support recovery programs, community funding System Layers Client Layer: Next.js, React, TypeScript, Tailwind CSS, Radix UI, Lucide, React Hook Form, ZodAPI Layer: Next.js API routes, EAS SDK (Ethereum Attestation Service), CDP SDK, ENS (Ethereum Name Service)Blockchain Layer: Ethereum (Mainnet & Sepolia), EAS contracts, ENS RegistryData Layer: Coinbase CDP, EAS on-chain records, ENS on-chain identitiesData Flow Session Attestation: User action β Input validation β Immutable EAS attestation β Indexed in CDP β Real-time UI/analyticsENS Identity: Manager action β Validation β On-chain ENS registry β Community-recognized pseudonymous identitySecurity & Privacy Model Privacy-First: No PII in storage; all identifiers are hashed; users manage ENS subdomains for identity.Security: Secrets in environment variables; server-side for sensitive logic; comprehensive input validation; strict blockchain network checks.Technology Stack & Dependencies Frontend: Next.js (SSR/SSG), React (Concurrent, Suspense, Hooks), Tailwind CSS, Radix UI, Lucide ReactForms & State: React Hook Form, Zod, TanStack React Query, React ContextBlockchain/Web3: Ethers.js, Wagmi, Viem, EAS SDK, ENSOff-Chain Storage/Analytics: Coinbase CDPDev Tools: TypeScript, ESLint, PostCSSCore Features Session Attestation: Verifiable, immutable blockchain proof of therapy sessions (no PII, only hashed data, always anonymous).ENS Identity: Pseudonymous .rehabdao.eth subdomains for every userβensuring privacy with recognition.Community Center: Peer support, anonymous chat, progress sharing, moderated environment.Progress Tracking: Recovery metrics (sessions, duration, types, consistency); analytics remain private and insightful.Therapist Management: Profiles, scheduling, anonymous patient tracking, secure attestation creation.Blockchain Integration & Web3 Services Ethereum Attestation Service (EAS): Provides immutable, anonymous, schema-based on-chain attestations.Coinbase CDP: Queryable, private, and redundant storage for analytics and compliance.Ethereum Name Service (ENS): Human-readable, private usernames; on-chain community identity; pseudonymous social layer.Wallet Support: Multi-wallet, mainnet and testnet onboarding flows.Development, Deployment & Maintenance Setup: Node.js and package manager; repo with CI/CD; environment variables for all secrets.Testing: Jest, React Testing Library, Cypress for unit and end-to-end testing.Quality: Strict TypeScript, ESLint, code reviews, modular code architecture.Deployment: Optimized for Vercel; CI/CD pipelines via GitHub Actions; Vercel Analytics, Sentry for monitoring.Best Practices: Secrets always environment-protected; validation everywhere; best-in-class blockchain security.Conclusion & Future Enhancements Rehab DAO merges modern web and blockchain technology into a privacy-preserving, verifiable, and supportive platform for addiction recovery. Its robust, secure, and modular architecture sets a new standard for digital recoveryβprivate, scalable, and community-powered.Planned enhancements: Mobile app, advanced analytics, API integrations, new community features, DAO-driven governance.Key Stakeholders Stakeholder Role Purpose Patients Primary Users Anonymous recovery tracking and community support Therapists Service Providers Session management and attestation creation Managers Community Leaders ENS subdomain assignment and platform oversight Sponsors Financial Supporters Funding recovery programs and community initiativesSystem Architectureβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β CLIENT LAYER β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€ β Next.js 15.2.4 β React 19 β TypeScript β Tailwind CSS 4.1.9 β β Radix UI β Lucide β React Hook Form β Zod Validation β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β βΌ βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β API LAYER β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€ β Next.js API Routes β EAS SDK β CDP SDK β ENS Integration β β Session Management β Attestations β User Authentication β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β βΌ βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β BLOCKCHAIN LAYER β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€ β Ethereum Mainnet β Sepolia Testnet β EAS Contracts β β ENS Registry β Reverse Registrar β Attestation Schemas β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β βΌ βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β DATA LAYER β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€ β Coinbase CDP β EAS Blockchain β ENS On-chain Records β β Queryable Data β Immutable Attestations β Identity Management β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ 1.5 Data Flow Architecture 1.5.1 Session Attestation Flow User Input β Form Validation β EAS Blockchain β CDP Storage β UI Update β β β β β βΌ βΌ βΌ βΌ βΌ Session Data β Zod Schema β Immutable Record β Queryable β Real-time 1.5.2 ENS Identity Flow Manager Input β Validation β ENS Registry β Reverse Registrar β User Identity β β β β β βΌ βΌ βΌ βΌ βΌ Subdomain β Address Check β On-chain β Primary Name β Community Recognition 1.6 Security & Privacy Model 1.6.1 Privacy-First Design Zero PII Storage: No personally identifiable information stored in plain text Hash-Based Identifiers: Patient and therapist data hashed before storage Anonymous Attestations: EAS attestations use anonymous recipients User-Controlled Identity: ENS subdomains managed by usersSecurity Measures Environment Variables: All sensitive data stored in .env.local Server-Side Operations: Critical operations run server-side only Input Validation: Comprehensive validation using Zod schemas Network Validation: Strict network checking for blockchain operations
Hackathon
ETHGlobal New York 2025
2025
Contributors
- Dasika-Vaishnavi
3 contributions
- v0[bot]
2 contributions