Skip to content
JusticeChain

JusticeChain

Tamper-Proof Justice with AI + Blockchain.

Created on 15th November 2025

•

JusticeChain

JusticeChain

Tamper-Proof Justice with AI + Blockchain.

The problem JusticeChain solves

People can use JusticeChain to securely manage, verify, and understand legal documents without fear of tampering or misinformation. It makes existing legal workflows much easier and safer by providing:

Instant AI summaries of long documents, saving hours of manual reading

One-click authenticity checks to confirm whether a document is original or manipulated

A unified dashboard where courts, police, and lawyers can access the same verified files

Immutable blockchain storage that prevents evidence and orders from being altered

A clean case timeline that helps users track every event from FIR to judgment

Encrypted storage that protects sensitive legal files from leaks or misuse

In short:
JusticeChain makes legal document handling faster, safer, transparent, and completely tamper-proof, helping everyone involved in the justice system work with more trust and accuracy.

Challenges we ran into

🔧 Hurdle: Hash Mismatch Issue Between Backend & Blockchain

While building the blockchain verification flow, we faced a major issue:
The SHA-256 hash generated in our backend was not matching the hash stored on the Aptos blockchain.
This caused every uploaded document to incorrectly show “Tampered”, even when it was not modified.

🧠 Root Cause

We discovered that different PDF parsing libraries (PyPDF vs pdfplumber) were returning text with slightly different hidden characters, especially newline (\n) and whitespace differences.

Even a single invisible character changes the entire SHA-256 hash.

✅ Solution

We implemented a document normalization layer before hashing:

Removed extra whitespace

Standardized newline formatting

Converted text to UTF-8 before hashing

Ensured consistent pre-processing across backend & blockchain

After applying normalization, both hashes matched perfectly.

🎉 Result

Document verification became 100% accurate, and the system reliably detects real tampering.

Tracks Applied (1)

Wildcard/Open Innovation

Our project, JusticeChain, fits the Wildcard/Open Innovation track because it solves a real-world problem that doesn’t f...Read More

Discussion

Builders also viewed

See more projects on Devfolio