About
## Challenges we ran into
🧗 Challenges I Ran Into Building a decentralized system that handles highly sensitive financial data required navigating several complex architectural hurdles. Here are the main challenges we faced and how we overcame them:
1. The Paradox of Blockchain Privacy
The Hurdle: The core feature of any blockchain (like the Ethereum Sepolia network we used) is that it is completely transparent and immutable. However, the core requirement of KYC is absolute privacy. We needed a way to mathematically prove that a user was verified without exposing their Aadhaar or PAN details to the public ledger. The Solution: We designed a strict "Zero-PII on Chain" architecture. Instead of storing data on the blockchain, the backend takes the user's KYC details, combines them with a unique cryptographic salt, and generates a SHA-256 Hash. We only anchor this unreadable hash to the smart contract. The actual data is encrypted using AES-256-GCM and stored safely in an off-chain PostgreSQL database. When a partner requests verification, the system simply cross-references the off-chain data against the immutable on-chain hash to prove it hasn't been tampered with.
2. The Unstructured Aadhaar OCR Bug (AI Fallbacks) The Hurdle: To make the onboarding seamless, we used the Google Vision API to automatically extract the Name and ID from uploaded documents. However, we ran into a massive bug with Aadhaar cards. Unlike PAN cards, which explicitly say "Name:", Aadhaar cards have no labels. Our initial OCR parser was extremely brittle—it kept extracting boilerplate text like "Government of India" or "To Establish Identity" as the user's name, causing the blockchain verification to fail entirely. The Solution: We completely overhauled the AI extraction logic to be structurally aware. We implemented a dual-strategy parser:
Strategy A: Look for the explicit "Name" tag (for PAN cards). Strategy B (The Aadhaar Fix): The parser locates the "DOB" or "Year of Birth" line, and specifically scans the 1 to 3 lines directly above it. Generic Filter: We implemented a custom dictionary of over 30 "ignore words" (like republic, enrolment, authority) that actively filters out the noise, isolating the clean English letters to extract the correct name flawlessly every time. 3. Secure Backend-to-Frontend Communication The Hurdle: Initially, our React frontend was rejecting connections to our backend because the browser flagged the HTTP requests as insecure (Mixed Content errors). When dealing with financial data, raw IP HTTP requests are unacceptable. The Solution: We migrated our entire Express/Node.js backend into a Docker container and deployed it to Google Cloud Run. This automatically provisioned a secure, auto-scaling HTTPS endpoint with TLS encryption, ensuring that the AES-encrypted data was securely transmitted between the frontend and the database without any risk of packet sniffing.
## The problem it solves
The traditional KYC (Know Your Customer) process in the financial sector is broken. It is redundant, expensive, and a massive liability for data privacy. The Decentralized KYC Vault completely reimagines this flow by solving three critical pain points:
1. Eliminating Redundant KYC Friction ⏳
Currently, a customer must upload their Aadhaar, PAN, and passport every single time they interact with a new financial service—whether they are opening a bank account, buying insurance, or registering for a trading app. How we fix it: Our platform introduces a "Verify Once, Use Anywhere" model. A primary Verifier Bank (like IDBI) performs the KYC check once using our AI-powered OCR. From that point on, the customer has a mathematically proven, reusable digital identity anchored to the Ethereum blockchain. They never have to upload physical documents to a partner institution again.
2. Preventing Honeypot Data Breaches 🛡️ Banks and financial apps store massive centralized databases of unencrypted customer IDs. When these databases are hacked, millions of identities are stolen. How we fix it: We separate the data from the proof. The blockchain only stores a cryptographic SHA-256 hash (an unforgeable receipt), while the actual Personally Identifiable Information (PII) is encrypted with AES-256-GCM and stored off-chain. Even if the blockchain is completely transparent, zero private data is exposed. Partner institutions verify identities using Zero-Knowledge Proof principles—they know the ID is valid without needing to hoard the raw data themselves.
3. Enforcing Digital Privacy & The DPDP Act 📜 Under India's new Digital Personal Data Protection (DPDP) Act, customers must have absolute control over their data, including the "Right to be Forgotten." Traditional systems offer no granular consent. How we fix it: The Decentralized KYC Vault puts the customer in the driver's seat.
Granular Consent: Customers explicitly grant or revoke access to specific partner institutions with a single click. Self-Destructing Data: Customers can set expiry timers on their data or permanently wipe their off-chain records. Once wiped, the on-chain hash is orphaned, rendering their data permanently inaccessible. 💡 Real-World Use Cases Instant Bank Onboarding: A customer verified by IDBI can instantly open an account with a partner brokerage firm in 3 seconds, rather than waiting 3 days for a manual KYC check. Secure Age Verification: An application can query the blockchain to verify a user is over 18 without ever needing to see their actual birthdate, photo, or address. Consortium Banking: A trusted network of banks can share verification proofs, drastically reducing operational compliance costs while maintaining 100% regulatory alignment.
Screenshots
Team
From the public Devfolio project page. Votes, swipes and the judge score are hackfeed's own.










