Authenticated Range \& Closest Point Queries in Zero-Knowledge

Esha Ghosh, Olga Ohrimenko, Roberto Tamassia

TL;DR

This paper introduces the first efficient, zero-knowledge method for performing authenticated range and closest-point queries on a dataset. By leveraging Hierarchical Identity-Based Encryption (HIBE), the authors enable a server to prove that its query results are both complete and correct without revealing any information about the rest of the dataset—not even its total size.

What Problem Does This Paper Address?

In outsourced database models, a data owner (like a hospital) uploads a dataset to a cloud server, which then answers queries from clients (like researchers). This creates a tension between integrity and privacy.

Standard tools like Merkle Hash Trees allow a server to prove that the data it returns is authentic, but they leak "structural" information, such as the total number of items in the database or the relative ranks of keys. Previous "zero-knowledge" attempts to solve this were either prohibitively slow, required multiple rounds of interaction, or still leaked the total size of the database. The authors sought a solution that provides "perfect" zero-knowledge (revealing only the answer and nothing else) while remaining performant enough for real-world use.

Methods

The core innovation is using Hierarchical Identity-Based Encryption (HIBE) to prove the absence of data.

  1. The Tree Structure: The authors represent the entire possible key space (e.g., all 16-bit integers) as a full binary tree.
  2. Membership Proofs: For every actual key-value pair in the database, the owner generates a standard digital signature.
  3. Non-membership (Gap) Proofs: This is the clever part. The owner identifies all the "empty" subtrees in the key space—ranges where no data exists. For the root of each empty subtree, the owner generates a HIBE secret key.
  4. Query Execution: When a client asks for a range $[a, b]$, the server returns the signed data points within that range. To prove no other points were omitted, the server uses the HIBE keys to decrypt challenges (or sign messages via HIBS) corresponding to the "gaps" between the returned points.

Because HIBE allows a key for a parent node to derive keys for all its descendants, the server can succinctly prove that entire sub-ranges are empty without the client knowing how many individual empty slots those ranges contain.

Datasets

The authors evaluated their system using synthetic datasets designed to test different data distributions:

  • $\mathcal{D}_{\$}$ (Random): Keys are chosen uniformly at random. This represents a "worst-case" for the HIBE approach because it creates many small gaps, requiring more keys.
  • $\mathcal{D}_{x}$ (Clustered): Keys are grouped into clusters of size $x$ (e.g., 16, 128, 2048). This is more representative of real-world data (like time-series logs) and results in fewer, larger empty subtrees.
  • Database Sizes: Experiments scaled from $10^2$ to $10^4$ key-value pairs with 16-bit to 24-bit keys.

Key Insights and Ideas

  • Absence as a Hierarchy: The "aha moment" is realizing that non-existence in a range can be treated as a hierarchical identity. If you have the key for a "prefix" representing a range, you can prove that any specific point starting with that prefix doesn't exist.
  • Hiding the Size: By using HIBE to cover gaps, the proof size depends on the number of "empty roots" needed to cover the range, not the total number of items in the database. This is what allows the scheme to hide the database size.
  • Statelessness: Unlike previous work (Ostrovsky et al.), this construction is stateless. The server doesn't need to remember previous queries to answer new ones, making it suitable for multi-client environments.

Key Results

  • Performance: The proposed method is orders of magnitude faster than the previous state-of-the-art. For a database of $10^4$ items, the server's response time is significantly lower than even a single sub-step of the older "cut-and-choose" protocols.
  • Communication Efficiency: The protocol requires only one or two rounds of interaction (depending on whether HIBE or HIBS is used).
  • Proof Size: The proof size is independent of the number of previous queries, solving a major scaling bottleneck in earlier research.
  • Clustering Benefits: The system performs exceptionally well on clustered data. In a database of $10^4$ items with high clustering, the server can prove a range is empty in roughly 0.2 seconds, compared to 28 seconds for highly fragmented random data.

Limitations and Future Work

  • Multi-Dimensionality: The current approach is optimized for one-dimensional ranges (e.g., a range of timestamps). Extending this to multi-dimensional queries (e.g., "find all points within this latitude/longitude box") currently results in an exponential "blow-up" in the number of secret keys the server must store.
  • Key Size: While the logic works for any key length, the setup time and storage requirements grow with the bit-length of the keys ($l$).
  • Open Problem: Finding a way to maintain zero-knowledge and integrity for multi-dimensional range queries without the exponential storage overhead remains an unsolved challenge.

Summary updated

BibTeX
@article{ghosh2015authenticated,
  author = {Esha Ghosh and Olga Ohrimenko and Roberto Tamassia},
  title = {{Authenticated Range \textbackslash\{\}\& Closest Point Queries in Zero-Knowledge}},
  journal = {IACR Cryptol. ePrint Arch.},
  year = {2015},
  url = {https://openreview.net/forum?id=W7OwxK8N0E6},
}
Figure