About
## The problem it solves
### 🚨 The ₹40,000+ Crore Rental Trust Crisis in India Across Indian cities (Bengaluru, Pune, Ahmedabad, NCR, Mumbai), millions of students and working professionals pay **2 to 10 months of rent as a Security Deposit**. Yet at Move-Out, **over 65% of tenants face unfair, arbitrary deductions** ("repainting charges", pre-existing wall cracks, old appliance wear) because: 1. **WhatsApp Photos Are Easily Disputed:** Unverified gallery photos lack cryptographic proof of time or byte-integrity and can be manipulated or denied by either party. 2. **Subjective Damage Fights:** There is zero neutral distinction between *Fair Wear & Tear* vs. *Actual Tenant Damage* under Indian law. 3. **Collusion & Delayed Refunds:** Fake-relative approvals, duplicate move-in photos reused at move-out, and weeks of chasing landlords for UPI refunds.
---
### 🛡️ How RentShield Solves It (End-to-End Cyber-Escrow Protocol) **RentShield** transforms chaotic rental handovers into a **mathematically tamper-proof, legally grounded, 2-minute digital protocol**:
- 🔐 **Client-Side SHA-256 Baseline Sealing (WebCrypto API):** Move-in room photos are hashed directly inside the browser before upload, generating an immutable cryptographic fingerprint.
- 🤝 **Anti-Collusion Counterparty Anchor:** Binds the property to the real Owner's Rent-Receiving UPI VPA, Registered Rental Agreement Ref ID, Signer IP, and Device Fingerprint—blocking "fake relative" sign-offs. Owners can **Approve & Lock** or **Flag Discrepancies** with real-time cross-browser sync.
- 🚨 **Duplicate Photo Fraud Blocker:** At Move-Out, if anyone re-uploads the old clean Move-In photo to fake a clean exit, browser byte-hash matching triggers an instant **`ANTI-FRAUD TRIGGERED`** block.
- ⚖️ **Gemini 2.5 Flash Legal Arbitration (Model Tenancy Act 2021):** Compares locked Move-In vs. Move-Out photos under **Section 13 & Section 15 of India's Model Tenancy Act 2021**—automatically separating *Normal Wear & Tear (₹0 cut)* from *Actual Tenant Damage* with transparent INR breakdown and a **72-Hour Counterparty SLA**.
- 💸 **Instant Phone-Scannable NPCI UPI QR Settlement & History Vault:** Generates a real scannable UPI QR (`upi://pay` + custom QR upload) for the exact Net Refund, settles the contract into an immutable **Past History Stack**, and offers a **Zero-Server Public Courtroom Verifier (`/verify`)**.
---
### ⚡ 1-Click Judge Access (Zero Signup Needed!) * **Live App:** [https://codefestthon-2026.vercel.app/](https://codefestthon-2026.vercel.app) * Click **`Demo as Tenant`** or **`Demo as Landlord`** directly on `/login` to test the full live flow in under 60 seconds!
## Challenges we ran into
Building a zero-trust legal & financial protocol with real-time dual-party UX presented four major engineering hurdles:
- **Preventing "Fake Landlord" Collusion & Move-Out Photo Spoofing:**
- *Hurdle:* A tenant could enter a friend's email as the landlord to self-approve an inventory, or re-upload the exact same clean Move-In photo during Move-Out to cheat the AI.
- *Solution:* Engineered a dual **Anti-Collusion Identity Anchor** (binding Owner's rent-receiving UPI VPA + Agreement Ref ID + Signer IP/Device Fingerprint audit trail) and an in-browser **SHA-256 Byte-Collision Detector** that blocks identical Move-In/Move-Out image hashes milliseconds before upload.
- **True Zero-Refresh Real-Time Sync Across Separate Browsers/Devices:**
- *Hurdle:* The browser `BroadcastChannel` API synced tabs in the same profile, but failed when a Tenant and Landlord operated on completely separate Chrome profiles or mobile devices.
- *Solution:* Built a hybrid **BroadcastChannel + Visibility-Aware Silent Differential Polling Engine** with a modal-pause shield—updating owner locks, notifications, AI verdicts, and settlement states live across devices with zero screen flicker.
- **Deterministic Legal AI Verdicts & Quota Resilience:**
- *Hurdle:* Raw LLM vision outputs can be vague or fail during API rate spikes in a 3.5-hour hackathon judging window.
- *Solution:* Constrained **Gemini 2.5 Flash** with structured JSON schemas anchored strictly to **Indian Model Tenancy Act 2021 (Sec 13/15)** rules, backed by a deterministic heuristic fallback pipeline so live audits never crash.
- **Monorepo Prisma Schema Drift & Cold-Start Latency on Cloud:**
- *Hurdle:* Deploying a `pnpm` monorepo (`client` + `server`) across Render & Neon PostgreSQL caused Prisma schema path mismatches (`P2022` missing column errors) and Windows Tailwind v4 native binary issues.
- *Solution:* Wrote a custom `patch-tw.cjs` build hook for Tailwind v4, explicit `--schema=server/prisma/schema.prisma` zero-downtime migration pipelines, and automated health keep-alive pinging so judges get sub-second API responses.
Screenshots
Team
From the public Devfolio project page. Votes, swipes and the judge score are hackfeed's own.











