Streaming Zero-Knowledge Proofs

Graham Cormode, Marcel Dall'Agnol, Tom Gur, Chris Hickey

Abstract

As data streams grow in volume and velocity, memory-constrained devices must increasingly rely on untrusted third parties to perform complex computations. While Streaming Interactive Proofs (SIPs) allow a verifier to check the correctness of these computations with minimal local memory, they often leak sensitive information about the underlying data. This paper introduces the first framework for Zero-Knowledge Streaming Interactive Proofs (zkSIPs), enabling a verifier to validate results—such as medians, frequency moments, and inner products—without learning anything about the raw data stream beyond the final output.

Introduction

In the modern landscape of "Big Data," we frequently encounter a fundamental mismatch: massive, high-velocity data streams and local devices (like smartphones or IoT sensors) with limited memory and processing power. Streaming Interactive Proofs (SIPs) were developed to bridge this gap. In an SIP, a powerful but untrusted Prover (e.g., a cloud service) processes the data stream and provides a short proof to a Verifier. The Verifier, restricted by sublinear memory, only sees the data once and uses the proof to ensure the Prover has not cheated.

However, a significant privacy hurdle remains. Standard SIP protocols are not designed to be private; the interaction between the Prover and Verifier can inadvertently reveal details about the raw data. For instance, a protocol proving the average salary in a region might leak information about individual high-earners. This work addresses this challenge by integrating Zero-Knowledge (ZK) properties into the streaming model, ensuring that the Verifier learns the result and absolutely nothing else.

Methodology

The authors transform the two primary building blocks of streaming proof literature—the Sumcheck and Polynomial Evaluation protocols—into zero-knowledge versions. To achieve this without relying on standard cryptographic assumptions (such as the existence of one-way functions), the paper introduces two novel commitment mechanisms:

  1. Algebraic Streaming Commitment: This tool allows the Prover to "lock" a sequence of messages. The Prover can subsequently prove that a specific linear combination of those messages is correct without ever revealing the individual messages themselves.
  2. Temporal Commitment: This mechanism leverages the Verifier's memory limitations as a security feature. It acts as a "timestamping" device, proving that the Verifier selected their random challenges before observing the data stream. This prevents a malicious Verifier from strategically choosing challenges to extract extra information from the Prover.

The framework represents the data stream as a Low-Degree Extension (LDE). By treating a string of bits as a multi-variable polynomial, the protocol enables efficient algebraic verification while maintaining the privacy of the underlying data points.

Key Insights: Hardness as a Privacy Feature

A central innovation of this work is the use of the INDEX problem—the inherent difficulty for a streaming algorithm to remember a specific bit from a long stream—to protect privacy. In this model, the Verifier’s lack of space becomes a security advantage: if the Verifier does not have the memory to solve the INDEX problem, they lack the capacity to "break" the Prover’s privacy.

This leads to unconditional security. Unlike most zero-knowledge proofs that depend on the computational hardness of mathematical problems (like factoring large numbers), these zkSIPs provide security against any space-bounded adversary, regardless of their total computing power.

Results and Applications

The proposed zkSIPs demonstrate significant efficiency in both memory and communication:

  • Exponential Space Savings: A Verifier requires only $O(\text{polylog } n)$ memory to verify computations that would otherwise require $O(n)$ (linear) memory.
  • Low Communication Overhead: Following an initial setup, the interaction requires only $n^{o(1)}$ bits, ensuring the proof is significantly smaller than the data stream itself.

The authors apply this framework to several fundamental streaming problems, proving that privacy can be maintained for:

  • Point Queries: Identifying specific elements within the stream.
  • Selection and Median: Finding the $k$-th smallest element in a dataset.
  • Frequency Moments ($F_k$): Calculating the skewness or distribution of the data.
  • Inner Products: Comparing the similarity of two distinct data streams.

Limitations and Future Directions

While this framework establishes a new frontier for private streaming, several challenges remain. The current "setup" phase requires a random string of near-linear length. Although this string is reusable, reducing its size to sublinear levels is a primary goal for future practical implementations. Additionally, while the current protocols provide computational zero-knowledge (privacy for space-constrained verifiers), the possibility of "statistical" zero-knowledge—where privacy holds even against a verifier with infinite memory—remains an open theoretical question. Finally, the authors seek to determine if every problem currently solvable via standard SIPs can be adapted into a zero-knowledge version.

Summary updated

BibTeX
@inproceedings{cormode2024streaming,
  author = {Graham Cormode and Marcel Dall'Agnol and Tom Gur and Chris Hickey},
  title = {{Streaming Zero-Knowledge Proofs}},
  booktitle = {CCC},
  year = {2024},
  doi = {10.4230/lipics.ccc.2024.2},
}
Figure