ETHGlobal New Delhi Hackathon Submission
Data-driven disaster relief system eliminating duplicate aid distribution through blockchain transparency, real-time analytics, and precise tracking of aid gaps across regions.
ETHGlobal Showcase: https://ethglobal.com/showcase/sewachain-k2pxr
- Full MiniKit SDK Integration: Leveraging World App's 23+ million user base
- World Chain Deployment: Smart contracts deployed on World Chain testnet
- Instant Wallet Access: Utilizing World App's integrated wallet with free transactions
- Native World App Experience: Built as a true Mini App for seamless user experience
- Privacy-First Identity: Zero-knowledge proof verification of Aadhaar documents
- Sybil Resistance: Preventing duplicate registrations without exposing personal data
- Offline Capability: QR code verification works without constant internet connectivity
- Government-Grade Security: Indian Aadhaar integration for authentic beneficiary verification
During natural disasters like floods, earthquakes, and cyclones, duplicate aid distribution and poor resource allocation are major challenges:
- Same families receive aid multiple times while others get nothing
- No coordination between different NGOs and relief organizations
- Zero visibility into which regions are underserved or neglected
- No data-driven insights for optimal resource allocation
- Lack of transparency in aid distribution records
- Fraudulent claims and identity verification issues
A blockchain-powered coordination system that ensures:
- β Unique Family IDs (URID) prevent duplicate distributions
- β World ID verification for volunteer authentication
- β Aadhaar verification via Self Protocol for beneficiary identity
- β Immutable distribution records on World Chain
- β Real-time transparency for all stakeholders
- β Data-driven insights showing underserved regions and aid gaps
- β Regional analytics helping NGOs optimize resource allocation
π― Frontend: Next.js 15 + MiniKit SDK + Mini Apps UI Kit
π Blockchain: World Chain (Superchain ecosystem)
π‘οΈ Identity: World ID + Self Protocol (Aadhaar verification)
β‘ Backend: Node.js API routes + PostgreSQL
π± Mobile: World App Mini App (23M+ users)
π Deployment: Vercel + Hardhat
URIDRegistry.sol: Manages unique family IDs and prevents duplicatesDistributionTracker.sol: Records all aid distributions immutably
- MiniKit SDK Commands:
sendTransaction(),walletAuth(),verify(),openUrl() - Self Protocol SDK: Offchain identity verification with ZK proofs
- World Chain RPCs: Seamless blockchain interactions with free gas
- World: First Mini App to integrate disaster relief coordination
- Self: Novel use case for Aadhaar verification in humanitarian aid
- Synergy: World ID volunteers + Self-verified beneficiaries = complete trust system
- QR codes work without internet connectivity
- Self Protocol enables offline Aadhaar verification
- Data sync when connectivity is restored
- Zero personal data stored on-chain
- Public distribution records without identity exposure
- ZK proofs ensure authenticity without revealing details
- Built for millions of World App users
- Multi-NGO coordination ready
- Government integration pathways
- Real-World Impact: Humanitarian use case showcasing blockchain's social good potential
- User Acquisition: Disaster relief brings new demographics to World App
- Mini App Innovation: Pioneering complex, multi-stakeholder applications
- Network Effects: NGOs, volunteers, and beneficiaries joining the ecosystem
- Government Integration: Direct Aadhaar verification opens massive Indian market
- Humanitarian Use Case: Powerful demonstration of privacy-preserving identity
- Offline Capabilities: Showcases protocol's resilience in crisis situations
- Scale Demonstration: Millions of potential verifications during disasters
- Trust Layer: World ID volunteers + Self-verified beneficiaries = complete trust
- Privacy + Transparency: Public aid records with private identity protection
- Global + Local: World's global reach with Self's government-grade local verification
- Registration: Volunteer scans your Aadhaar using Self Protocol
- Verification: Zero-knowledge proof generated, URID created
- QR Generation: Receive unique QR code for aid collection
- Aid Collection: Present QR at any relief center
- Transparency: View your aid history anytime
- Authentication: Login with World ID in World App
- Registration Mode: Help families register using Aadhaar verification
- Distribution Mode: Scan QR codes to distribute aid
- Blockchain Recording: All distributions recorded on World Chain
- Real-time Dashboard: Monitor distribution progress
- Volunteer Management: Assign verified volunteers to areas
- Real-time Tracking: Monitor aid distribution in real-time
- Duplicate Prevention: System prevents double distribution automatically
- Transparency Reports: Generate immutable distribution reports
- Node.js 18+
- World App (for testing Mini App)
- ngrok (for local development)
- Hardhat (for smart contract deployment)
# Clone the repository
git clone https://github.com/a-singh09/sewa-chain-eth-global.git
cd sewa-chain-eth-global/sewa-chain
# Install dependencies
npm install
# Setup environment variables
cp .env.example .env.local
# Fill in your World App credentials and Self Protocol API keys
# Generate auth secret
npx auth secret
# Start development server
npm run dev
# In another terminal, start ngrok
ngrok http 3000
# Deploy smart contracts to World Chain testnet
npm run deploy:testnet
# Run tests
npm test# World App Configuration
WORLD_APP_ID=your_app_id
WORLD_APP_ACTION=your_action_id
NEXTAUTH_URL=your_ngrok_url
AUTH_SECRET=generated_secret
# Self Protocol Configuration
SELF_API_URL=https://api.self.xyz
SELF_API_KEY=your_api_key
# World Chain Configuration
WORLD_CHAIN_RPC_URL=https://worldchain-sepolia.rpc.url
PRIVATE_KEY=your_wallet_private_key- Mini App: Available in World App
- Web Version: https://sewa-chain-eth-global.vercel.app
- Smart Contracts: Verified on World Chain testnet
- Download World App
- Open SewaChain Mini App from the above link
- Test volunteer registration with World ID
- Test beneficiary registration (using your Aadhaar data or create a mock one using Self App)
- Test aid distribution flow
- View blockchain records
// Wallet authentication
import { MiniKit } from "@worldcoin/minikit-js";
// Send transaction to World Chain
await MiniKit.sendTransaction({
transaction: [
{
to: contractAddress,
data: encodedTransactionData,
value: "0",
},
],
});// Aadhaar verification
import { Self } from "@selfxyz/core";
// Generate zero-knowledge proof
const proof = await Self.verifyAadhaar({
qrData: aadhaarQRData,
proofType: "identity",
});# Deploy to World Chain testnet
npm run deploy:testnet
# Verify contracts
npm run verify:testnet- Built as Mini App with MiniKit SDK
- Integrated MiniKit SDK commands (
sendTransaction,walletAuth,verify) - Deployed smart contracts to World Chain testnet
- Not gambling or chance-based
- Proof validation in smart contracts and backend
- Implemented Self offchain SDK
- Working identity proofs (Aadhaar verification)
- Privacy-preserving zero-knowledge proofs
- Multi-language support (Hindi, Bengali, Tamil)
- Enhanced mobile responsiveness
- Batch QR scanning for volunteers
- Multi-NGO coordination dashboard
- Government partnership integration
- Advanced analytics and reporting
- IPFS integration for photo evidence
- Multi-country identity verification
- Cryptocurrency aid distribution
- AI-powered need assessment
- IoT sensors for real-time disaster monitoring
Built for ETHGlobal New Delhi by:
- Anshdeep Singh - Full Stack Developer & Blockchain Engineer
- A newbie in Web3
- 23+ Million World App users can access immediately
- 1.4+ Billion Aadhaar holders in India can be verified
- 100+ Million people affected by natural disasters annually in India
- Thousands of NGOs working in disaster relief
- β World ID authentication working
- β Aadhaar verification via Self Protocol
- β Smart contracts deployed on World Chain
- β End-to-end aid distribution flow
- β Real-time transparency dashboard
- GitHub Repository: sewa-chain-eth-global
- Live Demo: SewaChain Mini App
- Contract Explorer: World Chain Testnet
- World Chain Docs: docs.worldcoin.org/mini-apps
- Self Protocol Docs: docs.self.xyz
- MiniKit SDK: github.com/worldcoin/minikit-js
- ETHGlobal New Delhi: ethglobal.com/events/newdelhi
- Track: World Chain Mini Apps: $10,000 prize pool
- Track: Self Protocol Integration: $1,000 prize
MIT License - feel free to fork, contribute, and build upon this project for humanitarian causes.
#ETHGlobalNewDelhi #WorldChain #SelfProtocol #BlockchainForGood #DisasterRelief #Humanitarian #Web3
"Technology should serve humanity, especially in times of crisis."