Abstract
Data outsourcing to untrusted cloud servers necessitates mechanisms for verifying query results. While traditional methods like Merkle trees provide correctness and completeness proofs, they often leak sensitive structural information about the database. This paper introduces a zero-knowledge protocol for 1D range and closest-point queries that leverages Hierarchical Identity-Based Encryption (HIBE). The system ensures that no information beyond the query result is disclosed, achieving orders-of-magnitude speedups and reducing client-server interaction to a single round.
Introduction
As data owners increasingly rely on cloud infrastructure, the need for verifiable queries becomes paramount. A client querying an outsourced database requires assurance that the results are both correct (all returned records are authentic) and complete (no valid records were omitted). Conventional Authenticated Data Structures (ADS) often fail to provide privacy, leaking details such as database size or the existence of data near query boundaries. Previous zero-knowledge solutions were computationally prohibitive and required multiple communication rounds. This work addresses these challenges by providing a stateless, efficient, and zero-knowledge framework.
System Model
The protocol operates within a three-party model involving a Trusted Owner, a Malicious Server, and a Malicious Client. The Owner prepares the data and cryptographic material, the Server stores the database and answers queries with proofs, and the Client verifies these proofs.
Methodology
The core innovation lies in the application of Hierarchical Identity-Based Encryption (HIBE) to handle non-membership proofs efficiently.
Membership Proofs
The data owner signs every key-value pair. During a query, the server provides the matching pairs along with their signatures to establish correctness.
Non-Membership and Completeness
To prove completeness, the server must demonstrate that no data exists in the gaps between returned records. The entire key space is mapped to a conceptual binary tree. For empty ranges, the owner identifies a "canonical covering"—a minimal set of subtrees. The owner then provides the server with HIBE secret keys for the roots of these subtrees. During a query, the client challenges the server to decrypt messages encrypted with the IDs of these subtrees. Successful decryption proves the server holds the keys for the empty ranges, thereby verifying completeness without leaking the size of the gaps or the total database.
Non-Interactive Variant
By substituting HIBE with Hierarchical Identity-Based Signatures (HIBS), the protocol can be made non-interactive, further optimizing the query phase.
Experimental Evaluation
The system was evaluated using both synthetic and real-world datasets:
- Synthetic Datasets: Ranging from $10^2$ to $10^5$ records with varying clustering levels to assess the impact of data distribution on subtree coverage.
- Enron Email Dataset: 54,152 records using timestamps as keys.
- Boston Taxi Dataset: 54,152 records using GeoHash coordinates as keys.
Key Results
The HIBE-based protocol demonstrates significant advantages:
- Performance: For a query returning 5,000 items, the server generates a proof in approximately 3.6 seconds, compared to over 10,000 seconds for previous state-of-the-art methods.
- Communication Efficiency: Interaction is reduced from five rounds to a single round (or zero in the HIBS variant).
- Scalability: The protocol is stateless; proof size does not grow with the number of queries, unlike previous history-dependent methods.
- Impact of Clustering: Performance improves significantly with clustered data (e.g., the Boston Taxi dataset), as fewer, larger subtrees are needed to cover empty ranges.
Conclusion and Future Work
While the current protocol provides a major leap in efficiency for 1D queries, it faces limitations in multi-dimensional spaces due to exponential key growth. Additionally, the current design assumes a static database. Future research will focus on extending these zero-knowledge guarantees to multi-dimensional range queries and dynamic datasets where records are frequently updated.
Summary updated