ZkStream is a zero-knowledge proof-of-streaming protocol that proves live data (video, IoT, finance) is authentic and untampered, using zkVerify/Horizen for lightweight, public verification.
π Live Demo
ZkStream introduces a new primitive: verifiable proof-of-stream. By hashing frames or data chunks in real-time and submitting commitments to zkVerify, ZkStream makes it possible to:
- Prove that a stream happened at a specific time
- Guarantee the stream was not altered
- Verify authenticity without storing or revealing the full raw stream
- Data streams (video, IoT, finance, medical) are everywhere.
- Once streamed, how can anyone prove they were authentic without storing GBs of raw data?
- Hashes stream frames/data chunks β generates commitments β submits to zkVerify.
- Creates lightweight, verifiable proofs that anyone can check publicly.
[ Live Stream ] β [ Hashing Engine ] β [ Commitment Root ]
β [ zkVerify Proof ] β [ Public Verifiers ]
- Journalism β prove livestream authenticity against deepfakes.
- IoT Compliance β verify sensor logs (emissions, temperature, etc.).
- Finance β guarantee tamper-proof market feeds.
- Healthcare β prove continuous patient monitoring data is authentic.
- Provides a scalable public verification layer.
- Enables compliance-ready zero-knowledge proofs of streaming integrity.
Figure: ZkStream frontend demo (start/stop streaming + hash generation)
ββββββββββββββββ ββββββββββββββββ ββββββββββββββββ
β Streamer β ---> β Hash Engine β ---> β Commitment β
β (Video/IoT) β β (Poseidon) β β Root β
ββββββββββββββββ ββββββββββββββββ βββββββ¬βββββββββ
β
βΌ
βββββββββββββββββββββββ
β zkVerify Relayer API β
βββββββββ¬ββββββββββββββ
β
βΌ
βββββββββββββββββββββ
β Public Verifiers β
βββββββββββββββββββββ
β Working, and tested using Circom, zkREPL, and zkVerify Relayer API.
- Node.js v18+
- Circom + zkREPL
- zkVerify API key
npm install -g circommkdir zkstream && cd zkstream
mkdir data && cd data
vi proof.json, vi public.json, vi main.groth16.vkey.json//Compiled via zkrepl.dev
pragma circom 2.1.6;
include "circomlib/poseidon.circom";
template StreamProof() {
signal input dataHash; // Poseidon(data)
signal input timestamp;
signal output commitment;
component hash = Poseidon(2);
hash.inputs[0] <== dataHash;
hash.inputs[1] <== timestamp;
commitment <== hash.out;
}
component main = StreamProof();
/* INPUT = {
"dataHash": "1234567890",
"timestamp": "1695200000"
} */- Using zkREPL
cd circuit/input.circom.cd data/public.json, proof.json,main.groth16.vkey.json.npm init -y && npm pkg set type=module
npm install axios dotenv.env file:
API_KEY="Your API KEY"server.js script:
import axios from 'axios';
import fs from 'fs';
import dotenv from 'dotenv';
dotenv.config();
const API_URL = 'https://relayer-api.horizenlabs.io/api/v1';
const proof = JSON.parse(fs.readFileSync("./data/proof.json"));
const publicInputs = JSON.parse(fs.readFileSync("./data/public.json"));
const key = JSON.parse(fs.readFileSync("./data/main.groth16.vkey.json"));
async function main() {
const params = {
proofType: "groth16",
vkRegistered: false,
proofOptions: {
library: "snarkjs",
curve: "bn128"
},
proofData: {
proof,
publicSignals: publicInputs,
vk: key
}
};
try {
const response = await axios.post(`${API_URL}/submit-proof/${process.env.API_KEY}`, params);
console.log("β
Proof submitted:", response.data);
const jobId = response.data.jobId;
if (!jobId) {
console.error("β No jobId returned.");
return;
}
// Poll for status
while (true) {
const status = await axios.get(`${API_URL}/job-status/${process.env.API_KEY}/${jobId}`);
console.log("π Status:", status.data.status);
if (status.data.status === "Finalized") {
console.log("β
Finalized!");
console.log(status.data);
break;
}
await new Promise(res => setTimeout(res, 5000));
}
} catch (err) {
console.error("β Error submitting proof:", err.response?.data || err.message);
}
}
main();Run:
node index.jstxHash
0x6307404b44de118860fc10883ea359ec600d504efd512edea0b98dda2834a538π Max length: 3:30 minutes.
- Intro + problem
- Walkthrough of ZkStream website
- Proof submission demo with zkVerify
- Closing impact statement
-
Copyright (c) 2025 [Rubeluchukwuisi Chidubem Kingsley]
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.






