Skip to content
Secure DMS

Secure DMS

Securing What Matters Most with Web3 & Blockchain.

Created on 22nd November 2026

•

Secure DMS

Secure DMS

Securing What Matters Most with Web3 & Blockchain.

The problem Secure DMS solves

When a document is evidence, trust matters as much as storage. Police, courts and legal departments handle FIRs, witness statements, forensic reports and judgments that decide real cases, yet many still live on paper or in scattered folders. That causes three painful problems:

  • Tampering can go unnoticed. If a file is quietly edited, nobody can prove it was changed.
  • Access is hard to control. Anyone with folder access can open a confidential statement.
  • Nobody can prove who did what. Without a reliable trail, chain of custody is only a claim.

Secure DMS is a digital evidence vault that makes every document provable.

What people can use it for

  • Investigators upload case documents and keep every revision as an immutable version.
  • Prosecutors and lawyers get read access only to the cases they are assigned to, at their clearance level.
  • Administrators and auditors see who viewed, downloaded or verified what, and can check that the log itself was never edited.
  • Anyone can later verify that a document is exactly the one that was filed.

How it makes the work safer and easier

  • Confidential by default: every file is encrypted with AES-256-GCM, with a separate key per file.
  • Tamper-evident: each version has a SHA-256 fingerprint. Change a single byte and verification reports tampered and the download is blocked.
  • Accountable: every version carries an Ed25519 digital signature, so it shows who uploaded it.
  • Independent proof: the document's hash is anchored on a public blockchain (EVM testnet), so even a server administrator cannot silently rewrite history.
  • Auditable: a hash-chained audit log records every action. Editing or deleting an entry breaks the chain, and the chain can be checked with one click.
  • Controlled: role-based access, case assignment and four confidentiality levels. People only see what they are allowed to see.
  • Fast to find: search across titles, case numbers and the text inside uploaded files.

Why it is different

Most document tools store files and trust the server. Secure DMS proves integrity with three independent checks: the file's hash, the digital signature, and the blockchain record. Only the hash goes on-chain. The document itself stays private and encrypted.

Challenges I ran into

1. "Who watches the admin?" — security that survives a compromised server

The hurdle: Encryption, signatures and an audit log all live on the server, so an attacker with server access could change a file, recompute its hash, re-sign it and rebuild the whole audit chain — and nothing inside the system would look wrong.

How I solved it: I added a witness the server doesn't control. Each version's SHA-256 is anchored on a public blockchain (EVM testnet), and verification runs three independent checks: the file's hash, the Ed25519 signature, and the on-chain record. I also bound the hash into AES-GCM as authenticated data, so changing even one byte of the stored file makes decryption fail. I tested it by flipping a single byte on disk: the system reports tampered and blocks the download.

2. The audit log was flooding itself

The hurdle: After uploading, the UI waits for the blockchain transaction by polling the document every few seconds. But reading a document is itself an audited action, so one upload created dozens of fake "VIEW" entries.

How I solved it: I added a lightweight anchor-status endpoint that returns only the anchoring status (no hash, no file content) and is not logged. I deliberately did not add an "skip audit" flag to the normal endpoint, because that would let any user hide their own views.

3. A half-connected frontend

The hurdle: The generated UI looked finished, but only the API layer had been wired to the real backend. The pages still used the old mock data model, so the app didn't even build — 109 TypeScript errors across 17 files (caseNumber vs case_number, integrity vs a three-part verification result, and so on).

How I solved it: I rewrote the affected pages against the real API shape until the type-check hit zero errors. Then, instead of trusting my eyes, I wrote contract tests that run the frontend's own API functions against a running backend and check every field the UI reads. Along the way this caught a real bug: the "new version" endpoint returns a version, not a document, so the success message would have said "Version undefined added".

4. Getting onto a real blockchain without spending real money

The hurdle: Test tokens were harder than the code. One popular faucet demanded a balance of real ETH on Ethereum mainnet before giving testnet tokens, which defeats the purpose. Separately, Hardhat kept failing with Cannot read properties of undefined (reading 'address') — it was silently running with no wallet because my .env wasn't being read. After the contract deployed (my balance dropped), I also couldn't find it on the explorer.

How I solved it: I switched to another network and faucet that didn't need real funds. For the .env problem I wrote a tiny check that prints only loaded / length / starts-with-0x (never the key), which showed the file wasn't being picked up. For the "missing" contract, I opened the deploying wallet's contract-creation transaction on the explorer to find the address. I also set up a separate test-only wallet, so a leaked key could never touch real funds.

5. Testing blockchain code without a blockchain

The hurdle: My development sandbox couldn't reach any blockchain, yet the upload → "pending" → "anchored" flow had to be tested.

How I solved it: I mocked the chain calls to test the plumbing (status changes, polling, retries, verification logic) and kept those tests clearly labelled as plumbing-only. The real proof came from deploying to a public testnet and verifying a real transaction on the block explorer.

Smaller ones

  • A contract can't anchor the same hash twice, so re-uploading an identical file failed. The backend now rejects exact duplicates within a document and records a clear failure reason with a Retry anchoring option.
  • Windows virtual environments hard-code their folder path, so moving the project broke the server until I recreated the venv. A corrupted node_modules caused an npm crash, fixed with a clean reinstall.

Tracks Applied (2)

Web & App Innovation

How this project fits the Web & App Innovation track Secure DMS is a full-stack web application (React + TypeScript fro...Read More

Open Innovation

How this project fits the Open Innovation track Secure DMS tackles a trust problem that cuts across law, government, he...Read More

Cheer Project

Cheering for a project means supporting a project you like with as little as 0.0025 ETH. Right now, you can Cheer using ETH on Arbitrum, Optimism and Base.

Discussion

Builders also viewed

See more projects on Devfolio