PixelRoot

PixelRoot: proof of origin, in the pixels. Research on sensor-level image provenance, plus a console to register images and verify them.

Prove a photo is real, not just guess it is fake.
PixelRoot is open research on keeping proof of origin inside the image itself, plus a working web console that registers images and verifies them against a registry.

Read the paper · Tour · Run the console · Research · Honest status

DOI 10.5281/zenodo.24329305 License: MPL 2.0 Status: research prototype React 19, Express 5, Python research code Ledger: simulated

The PixelRoot console on desktop and phone: an operational provenance console with system status showing registered images, verifications, storage backend and upload limit

Why PixelRoot

AI can now make photos and videos that people cannot tell from real recordings. Deepfake detectors keep falling behind new generators, and today’s provenance standards such as C2PA keep their proof mostly in file metadata, which disappears when a platform strips or re-encodes the file.

PixelRoot flips the question from “is this fake?” to “can this prove it is real?” The research proposes that the camera sensor itself writes a faint, error-corrected identifier into the pixels at capture, signs a capture record with a key that never leaves the chip, and seals that record’s hash on a public blockchain. The console in this repository demonstrates the register-then-verify workflow today.

01

Proof in the pixels

An identifier hidden in pixel gain is designed to survive compression and metadata stripping, so the proof travels with the image.
02

Rooted in hardware

In the proposed design, each sensor signs its captures with its own key, and makers certify or revoke keys on a public ledger.
03

Verify, or fail safe

A verifier confirms an exact original, confirms a re-compressed copy, or says "unverified". It never guesses.

A quick tour

The console has four views: Overview, Register, Verify and Registry.

The Verify view showing an uploaded synthetic image matched against the registry, with its image hash, algorithm version, simulated ledger receipt and capture time

A match

Upload a registered image and get its fingerprint, signature version and ledger receipt back.
The Verify view showing an edited copy of the same image with the result Image not verified

An edited copy

Change a single pixel and verification fails with a clear "Image not verified".

The Overview view with feature cards, a four-step verification flow and a preview of the latest registry records
Overview: the four steps from capture to trust, and the latest records in the registry.

Everything the console does is also available as a small JSON API:

A terminal checking the PixelRoot health endpoint, verifying a registered image successfully and rejecting an edited copy

Screenshots and the terminal transcript are from the console running locally from this repository, with synthetic generated test images. The live GitHub Pages site currently shows this README, not the console.

Run the console

You need: Node.js 20.19 or newer (required by Vite 7) and npm.

git clone https://github.com/mihirkavi/PixelRoot.git
cd PixelRoot
npm install
npm --prefix client install
npm run dev

Open the app at http://localhost:5173 (the API runs on http://localhost:5000). Without DATABASE_URL, records persist in server/data/pixelroot-store.json and uploads in uploads/.

Command What it does
npm run dev API server and Vite client together
npm run build then npm start Build the client and serve everything from the API server (PORT sets the port)
npm test Unit tests for the signature algorithm
API endpoints and storage
| Endpoint | What it does | | --- | --- | | `GET /api/health` | Runtime health, storage mode, upload limit and active signature algorithm | | `POST /api/register` | Create a provenance record for an uploaded image (`image` form field) | | `POST /api/verify` | Check an uploaded image against stored records | | `GET /api/images` | Recent registry entries | | `GET /api/stats` | Registry totals | | `GET /api/image/:hash` | One record by image hash | - **With `DATABASE_URL`:** images and verifications are stored in PostgreSQL. - **Without it:** records persist in a local JSON file, so the console works with no setup. - The signature algorithm defaults to `v2`, which fixed a lossy coordinate-packing bug; legacy `v1` records still verify. - If geolocation is unavailable during registration, the console uses a neutral origin and says so in the interface.

The research

The paper/ folder holds a research paper on the full design, PixelRoot: Hardware-Anchored, Sensor-Level Media Provenance with Real-Time Blockchain Notarization for Trustworthy Imaging (PDF · Markdown), with the code and data behind every number.

The preprint is archived on Zenodo with a permanent DOI: 10.5281/zenodo.24329305 (v1, CC BY 4.0). To cite it:

@misc{kavishwar2026pixelroot,
  author    = {Kavishwar, Mihir},
  title     = {PixelRoot: Hardware-Anchored, Sensor-Level Media Provenance with Real-Time Blockchain Notarization for Trustworthy Imaging},
  year      = {2026},
  publisher = {Zenodo},
  version   = {v1},
  doi       = {10.5281/zenodo.24329305},
  url       = {https://doi.org/10.5281/zenodo.24329305},
  note      = {Preprint}
}

Four research plots: in-pixel bit error rate versus JPEG quality, the embedding amplitude operating curve, a tamper-localization ROC curve and a passive PRNU baseline
Results from the paper's software experiments on public images with real JPEG codecs.

From the paper’s evaluation, run in software on the 24 Kodak images:

What is in the research folders
| Folder | Contents | | --- | --- | | [`paper/`](paper) | LaTeX source, PDF, figures and bibliography | | [`paper/experiments/`](paper/experiments) | Python experiments E1–E6 (robustness, security, localization, PRNU, cryptography, device identity), results and the [experiment plan](/PixelRoot/paper/experiments/EXPERIMENT_PLAN.html) | | [`paper/contracts/`](paper/contracts) | The `PixelRootRegistry` Solidity contract with Hardhat tests | | [`reports/`](reports) | Independent reviews of the design and paper, and a deepfake-provenance landscape report | | [`research_notes/`](research_notes) | Notes on C2PA, hardware signing, watermarking prior art, regulation and threat growth |

Honest status

PixelRoot is a research prototype. Please read these limits before relying on it.

Project artwork

Conceptual artwork for PixelRoot

Conceptual project artwork, not a product screenshot. Asset files, design notes, and generation prompts.

License

Released under the Mozilla Public License 2.0.



PixelRoot · Proof of origin, in the pixels.