Inspiration

Our team of four, spanning different parts of the world, was deeply moved by a systemic issue in rural India. Vulnerable and often illiterate citizens are frequently exploited by corrupt police officers. These officers sometimes demand bribes to process cases or maliciously alter First Information Report (FIR) and investigation statements to fit a different narrative. We wanted to build a solution that protects citizens' voices and brings transparency and accountability back to the justice system.

What it does

FIR Ledger is an immutable, mobile-first platform designed to secure police records.

For Citizens: It provides a simple portal to look up their case using a unique code, allowing them to verify that the registered description matches exactly what they reported.

For Officers: It provides a secure login where they can view assigned cases and add investigation notes. Crucially, the system is strictly "append-only." Officers cannot edit or delete previous statements. Furthermore, the application automatically analyzes the officer's updates against the citizen's original statement; if a mismatch or suspicious deviation is detected, the system immediately flags and alerts a central, non-corrupt authority.

How we built it

We developed a Progressive Web App (PWA) to ensure it was mobile-friendly, as laptops are less common in rural areas.

Frontend: Built using HTML, CSS, and JavaScript, functioning as a PWA for easy mobile access.

Backend: Powered by Python and FastAPI for fast, reliable API routing.

Database: Currently using SQLite3 for our MVP, with a straightforward migration path to PostgreSQL.

Core Technology: Instead of deploying a heavy, full-scale blockchain, we simulated blockchain immutability using Python's hashlib. Each statement is secured with a hash generated from the timestamp and the text itself.

NLP Integration: We utilized Sentence Transformers to automatically analyze text and detect semantic mismatches between citizen complaints and police actions.

Challenges we ran into

Simulating Blockchain: Designing a secure, append-only ledger that mimics blockchain immutability using cryptographic hashes without the overhead of a decentralized network.

Accomplishments that we're proud of

Building a functional "append-only" architecture that genuinely solves the problem of unauthorized record tampering.

What we learned

How to effectively simulate blockchain concepts and secure data integrity using basic cryptographic hashing (hashlib).

Deepened our experience in building and deploying mobile-first Progressive Web Apps (PWAs) using vanilla web technologies.

What's next for FIR Ledger

Database Migration: Transitioning our backend database from SQLite3 to PostgreSQL to handle larger datasets and concurrent users.

True Decentralization: Upgrading our simulated blockchain to a fully decentralized ledger (like Ethereum or Hyperledger) for absolute trustless immutability.

Regional Language Support: Expanding our NLP models to process and compare statements in various regional Indian languages to better serve rural populations.

Built With

Share this project:

Updates