Open Testimony: Verified Video for an Era of Doubt

The Problem

Anyone can generate a convincing fake video now. Which means when real footage of a protest, an arrest, or a government action surfaces, the first response is “is this real?” — and that doubt lets people off the hook. Unverified video gets dismissed.

Open Testimony attacks this with cryptography: every video is signed on-device using hardware-backed ECDSA P-256 keys (Secure Enclave / StrongBox), GPS + NTP timestamps are bound to the file hash, and the server adds post-quantum ML-DSA-65 signatures to the entire chain of custody. A video in Open Testimony can be proven: recorded on this device, at this location, at this time, unmodified since. “Document Truth. Demand Accountability.”

Update, November 2026: What’s New

The Open Testimony mobile app is now in open beta on iOS and Android: you can join the iPhone beta on TestFlight or get it on Google Play. Since this post went up in April, the biggest additions are:

  • Content Credentials built in. Every recording is stamped at capture with a C2PA manifest, signed by a per-device certificate whose key lives in the iPhone’s Secure Enclave or the Android Keystore. That means standard third-party verifiers can check a video, not just our own tools, and there’s a public drag-and-drop page for checking one.
  • Safe even if the phone isn’t. Footage now uploads while it’s being recorded. If a phone is seized or smashed mid-recording, what was already captured is already on the server.
  • Encrypted at rest. Video is encrypted with AES-256-GCM by the application itself before it ever reaches storage.
  • 3D depth as evidence. On iPhone Pro models with LiDAR, the app records depth alongside the video, in a bundle signed by the same hardware key, so distances in a scene can be measured later.
  • A hosted service for many organizations. Partner groups can join a hosted service instead of running their own servers. Each organization’s evidence is walled off at the database level, sharing with another group is opt-in, and every access is logged in a tamper-evident audit trail.

How Verification Works

The core idea is that every video carries a cryptographic chain of evidence from the moment of recording:

Hardware-backed device signatures. When the mobile app (Flutter, iOS/Android) records a video, it signs the file hash with an ECDSA P-256 key pair stored in the device’s Secure Enclave (iOS) or StrongBox (Android). These are hardware security modules — the private key never leaves the chip, can’t be exported, and can’t be cloned. This cryptographically links a recording to a specific physical device.

GPS coordinates and timestamps. Each recording captures location and time, synchronized via NTP to prevent clock manipulation. The metadata is signed alongside the video hash.

SHA-256 file integrity. The video file is hashed on-device before upload. The server verifies the hash matches on receipt. Any tampering — even a single bit changed — breaks the verification.

Post-quantum server signatures. On the server side, every file hash and audit log entry is signed with ML-DSA-65 (FIPS 204), a post-quantum digital signature algorithm. This means the chain of custody remains verifiable even against future quantum computing attacks — important for evidence that may be relevant for decades.

Hash-chained audit log. Every event in the system is linked in a chain: each entry = SHA-256(sequence + type + data + previous_hash + timestamp). Tamper with any entry and the chain breaks. The genesis hash is 64 zeros.

The result: a video in Open Testimony can be verified as “recorded on this device, at this location, at this time, and hasn’t been modified since.” That’s a fundamentally different claim than “someone posted this on Twitter.”

AI-Powered Search Across Video Evidence

A verified archive is only useful if you can find what you’re looking for. Open Testimony includes four AI search modes, all backed by pgvector similarity search:

  1. Visual text — “person holding a sign” matches frames containing that scene
  2. Transcript semantic — 4096-dimensional Qwen3-Embedding-8B embeddings search what was said
  3. Transcript exact — substring matching for specific phrases
  4. Action search — queries like “use of force” or “arrest” match described actions

The vision model layer supports three model families (SigLIP2, OpenCLIP ViT-bigG-14, PE-Core), hot-swappable via environment variables with automatic reindexing. The AI bridge service runs the full ML pipeline: frame extraction, vision model encoding, and Whisper transcription.

Video Anonymization

Sometimes the person recording needs protection. Open Testimony includes automated face anonymization using InsightFace RetinaFace detection with geometry-destroying pixelated blur. Each anonymized video carries a version tag (currently anon-v4) for forensic provenance — you can verify which algorithm version produced any anonymized output, even as the pipeline evolves. This matters for admissibility: the defense can’t argue “we don’t know what processing was applied.”

Multi-Organization Architecture

The platform is designed for a hub model where multiple organizations — legal aid groups, community organizations, civil rights monitors — each maintain their own data while participating in a shared search infrastructure.

Five roles: super_admin, org_admin, regional_lead, staff, public_viewer. Organizations and regions as scoping dimensions. Cross-organization sharing is configurable at three levels: metadata only, metadata + anonymized video, or full access. Each organization retains full ownership and control of its own data.

Face clustering (InsightFace + HDBSCAN) groups appearances of the same person across videos from different organizations — useful for identifying patterns across jurisdictions.

A public gallery with social share buttons and Open Graph metadata lets organizations publish verified evidence to a wider audience. The public-facing archive tracks three statistics: Verified Videos, Locations, and Incidents Documented.

The Architecture

Six Docker services: Nginx reverse proxy (port 18080), FastAPI API server, PostgreSQL 16 with pgvector, MinIO object storage, AI bridge service (the full ML pipeline), and a React/Tailwind web UI with 39 components including a MapView (Leaflet), AI search panel, video anonymizer and queue management with keyboard shortcuts.

The mobile app handles recording, hardware crypto, NTP time sync, GPS, and SQLite local storage with Dio networking. Firebase Cloud Messaging for push notifications when new evidence needs review.

Evidence Admissibility

The documentation includes detailed analysis of Daubert/Frye standards for scientific evidence admissibility — NTP time verification, SHA-256 hashing, cryptographic chain of custody, and hardware fingerprinting are all designed with courtroom scrutiny in mind. The goal is evidence that holds up not just in the court of public opinion, but in actual courts.

What I Learned

  1. Post-quantum cryptography is practical today. ML-DSA-65 adds minimal overhead and protects evidence that may need to remain verifiable for decades. For a system designed to document civil rights abuses, defending against future cryptographic breaks isn’t paranoid — it’s responsible.

  2. AI search can turn piles of videos actionable. Thousands of verified videos are useless without the ability to search across them.