Udhaar
Khate mai likh diya hai
The problem Udhaar solves
Udhaar - Blockchain-Powered Trust Lending for Bharat 🇮🇳
Problem Statement
In India, ₹5 trillion worth of informal credit flows through kirana stores and local communities annually. These "udhaar" transactions are unrecorded (written in notebooks), untraceable (no credit history), risky (no reputation system), and inefficient (requires physical presence). Traditional banking excludes 190M+ Indians, while existing fintech demands smartphones, credit scores, and digital literacy that rural communities lack.
Our Solution
Udhaar digitizes informal lending with blockchain immutability and zero Web3 complexity. It's a phone-first platform where users authenticate via OTP, and every loan agreement is recorded on Polygon blockchain through custodial wallets—no MetaMask, no gas fees, no jargon.
Key Innovation: Dual OTP Trust Flow
- Loan Creation: Lender enters borrower's phone → OTP sent to borrower → Borrower confirms → Recorded on blockchain
- Repayment: Borrower initiates → OTP sent to lender → Lender shares OTP verbally → Borrower enters OTP → Settled on blockchain
This mimics real-world trust (verbal confirmation) while providing cryptographic proof.
ML-Powered Reputation: Every user gets a 0-100 credit score computed by an ensemble model (Gradient Boosting + Random Forest + Ridge) trained on 15 features: repayment rate, default rate, loan velocity, recency, and more. Scores update automatically after each transaction (+10 for settled loans, -30 for defaults).
Chain-or-Fallback Architecture: When blockchain is unavailable (low gas balance, network issues), transactions save to Turso database and queue for automatic retry. Users never see errors—just "pending blockchain confirmation." This ensures 100% availability.
Impact: Udhaar builds portable credit history for the unbanked, reduces lending risk through transparent reputation, and enables financial inclusion without requiring users to understand blockchain technology. The platform scales to millions via custodial wallet derivation and distributed SQLite, targeting 10,000 users and ₹50 crore loan volume in Year 1.
Challenges we ran into
Almost Everything.. Heres the deal -
- The Target audience - they dont know whats web3, nor do they need to know. to abstract web3 enough so that it doesnt feel more than a non-negotiable witness was indeed a challange
- Wallet management - Creating a custodial account and managing funds for every user, defining the scalability , deciding the tradeoffs between ease of use and freedom to user, AP vs CP (Turso as cache) and actually making sure that user does not feel alien to it.
3)Two-Party Verification Without Physical Presence - How to verify both parties agree remotely using dual OTP flow
4)Reputation System Design - Linking phone numbers to blockchain addresses while preventing Sybil attacks and preserving privacy
5)Gas Fee Economics & Sustainability - Making custodial gas payments economically viable at scale
6)Real-Time State Synchronization - Keeping DB and blockchain in sync without race conditions
7)Testing Blockchain Interactions - Testing time-dependent logic and fallback scenarios