unMorph

A decentralized image integrity layer. Detect morphing & AI tampering and prove image authenticity.

unMorph

Created At

ETHGlobal Mumbai

Project Description

UnMorph – Decentralized Image Integrity and Authentication Platform

UnMorph is a decentralized image integrity platform designed to detect AI-generated manipulations, image morphing, and unauthorized alterations while establishing verifiable digital image authenticity. It uses cryptographic SHA-256 hashing and perceptual hashing to generate unique image fingerprints that remain comparable even after resizing or recompression. Images can be registered with ownership metadata and anchored to Arkiv's decentralized, queryable data infrastructure, while Swarm provides decentralized storage for original images and supporting evidence. The platform also envisions World ID integration for privacy-preserving proof of unique human identity. Its verification workflow compares submitted images against registered fingerprints, identifies potential manipulation attempts, and maintains an auditable integrity history. Built with Next.js 16, React, TypeScript, and Tailwind CSS, UnMorph provides an interactive verification dashboard for image registration, authenticity checks, incident tracking, and integrity reports. It aims to establish a transparent foundation for trustworthy digital media and evidence verification.

How it's Made

How It’s Made

Unmorphed is built on three layers: a TypeScript/Next.js frontend, Swarm for decentralized blob storage, and Arkiv as a structured on-chain queryable ownership registry.

The fingerprinting engine implements a custom DCT-II perceptual hash — images are downsampled to 32×32 grayscale via sharp, a separable 2D cosine transform extracts an 8×8 low-frequency coefficient block, and the 63 AC coefficients are median-thresholded to produce a 64-bit hash encoded as a 16-character hex string. The hash splits into four 16-bit buckets (b0–b3) for Locality Sensitive Hashing on Arkiv — since Arkiv has no native Hamming distance operator, we exploit the pigeonhole principle: similar images must share at least one bucket. Arkiv returns candidates via type = "image_registry" AND (b0 OR b1 OR b2 OR b3), then client-side bitwise XOR computes exact similarity. Anything ≥70% with an ownership mismatch triggers morphing detection.

Swarm stores raw image blobs unencrypted — ownership is proven cryptographically via Arkiv’s protocol-level $owner field set to msg.sender at transaction time, not by hiding the file. The Swarm reference lives in the Arkiv entity payload as a verifiable pointer from metadata to content.

Two Arkiv entity types power the app: image registry entries and incident logs. When morphing is detected, an incident entity is written on-chain containing the claimer’s wallet, similarity score, and legitimate owner address — permanent, queryable, and unfakeable. MetaMask signs all writes directly via Viem’s custom transport — no backend private key.

The notable hack: raw SQL-like query strings were rejected by Rabdi testnet entirely, forcing a rewrite to SDK expression combinators (and, or, eq). Also discovered mid-build that Arkiv’s protocol enforces a hard lifetime ceiling of 7,884,000 blocks (~182 days), not the 1-year figure in the docs.

background image mobile

Join the mailing list

Get the latest news and updates