arXiv:2611.04240cs.CRNov 2026

Manuscript Offprint

arXiv:2611.04240

VerfGraph: Efficient Zero-Knowledge Verifiable Graph Query Evaluation System

Tianyi Ma, Yuncong Zhang, Yuanzhuo Yu, Boshi Yuan, Shi-Feng Sun

Tianyi Ma

Shanghai Jiao Tong University

mty021129@sjtu.edu.cn

Yuncong Zhang

Shandong University

yuncong@sdu.edu.cn

Yuanzhuo Yu

Shanghai Jiao Tong University

yzyu2000@sjtu.edu.cn

Boshi Yuan

Shanghai Jiao Tong University

nemoyuan2008@sjtu.edu.cn

Shi-Feng Sun

Shanghai Jiao Tong University

shifeng.sun@sjtu.edu.cn

Abstract—Graph databases are often used to manage relationship-rich data, whose graph structure and attributes may be sensitive. In many applications, a database owner or a service provider evaluates queries over a private graph for a client. Because the graph cannot be fully disclosed and independently re-executing the query may be impractical, the client cannot directly verify the returned result. This creates a need for verifiable graph query evaluation that preserves data confidentiality.

We present VerfGraph, a zero-knowledge system for verifiable graph query evaluation, which enables a client to verify that the query result was correctly computed over a committed graph data, without revealing private graph records or intermediate query values beyond the public inputs and what is implied by the query result. Building on the expansion-centric model introduced by the state-of-the-art zero-knowledge verifiable graph query evaluation system ZKGraph (ICDE'26), VerfGraph achieves more efficient and expressive zero-knowledge verifiable graph query evaluation by advancing design in two key ways. First, we propose novel operator-proof methods for core expansion and shortest-path operations that reduce costly sorting and comparison checks and eliminate edge canonicalization for bidirectional expansion. Furthermore, we introduce correctness proofs for count and weighted shortest-path operators, broadening the class of graph queries that can be verified. We evaluate VerfGraph using the LDBC Social Network Benchmark. Compared with ZKGraph on complex IC queries, VerfGraph achieves 33.9x–59.7x speedups in proof generation and reduces peak prover memory by factors of 4.5x–6.6x, while maintaining millisecond-level verification and producing sub-MB proofs.

Index Terms—graph databases, verifiable query evaluation, zero-knowledge proofs, database security

I. INTRODUCTION

Graph databases organize data around entities and relationships, making them well suited to workloads dominated by neighborhood exploration, multi-hop connectivity, and path analysis [1]–[3]. In outsourced or cross-organizational deployments, however, the party that evaluates a query may not be fully trusted. A service provider may evaluate a query against an unintended or stale snapshot, omit qualifying vertices or paths, or return an incorrect result because of implementation faults or adversarial behavior. Because the client neither sees the private graph nor can necessarily afford to replay an expensive traversal, the query result alone does not establish that it was computed faithfully.

This setting gives rise to two coupled requirements. The first is confidentiality: the raw graph, sensitive node and edge properties, and private intermediate results should remain hidden except for information revealed by an authorized query answer. The second is verifiability: the client should be able to establish that the reported answer is sound and complete with respect to a precisely specified query and a public commitment to an agreed graph snapshot. Neither requirement implies the other. Revealing the graph enables direct recomputation but defeats confidentiality, whereas keeping the graph private without cryptographic evidence forces the client to trust an opaque execution process.

For example, consider an e-commerce platform that maintains a private graph whose vertices represent products, sellers, and buyers, and whose edges encode transactions, co-purchase relationships, and referral links. An external auditor may be authorized to ask for the number of buyers reachable from a suspicious seller within a fixed number of hops and the minimum-risk referral path between two flagged accounts, where edge weights encode risk scores. Disclosing the full graph would reveal sensitive commercial and user data, yet returning only the count and path gives the auditor no basis for detecting omitted edges, use of an outdated snapshot, or an incorrectly computed path. A suitable protocol should bind both answers to the same committed graph snapshot and prove the requested properties without exposing unrelated accounts, transactions, or intermediate traversal states.

Zero-knowledge proofs (ZKPs) provide a cryptographic foundation for addressing this problem. A ZKP allows a prover to convince a verifier that a public statement is true without revealing the private witness beyond what is implied by the statement [4]. To use ZKPs to establish query correctness, existing ZK database systems commonly decompose queries into operators and design specialized proof constructions for their input-output relations. Proving these input-output relations efficiently is a central challenge: the proofs must establish that each operator's output is correct and complete without revealing private intermediate values. For example, ZKSQL [5] and PoneglyphDB [6] develop such proof constructions for relational operators, including sorting, joins, and aggregation.

However, graph queries introduce proof requirements, such as establishing shortest-path optimality and correctly handling traversal over bidirectional edge relations, for which these systems do not directly provide specialized proof constructions. To address these requirements, ZKGraph [7] introduces an expansion-centric model for decomposing queries into composable operators, including single-source expansion, set-based expansion, and single-source shortest path (SSSP), and develops specialized proof constructions for these operators. Through these operator-proof constructions, ZKGraph demonstrates the feasibility of using zero-knowledge proofs to support confidential and verifiable graph query evaluation.

Despite this progress, two limitations remain. First, ZK-Graph's constructions for set-based expansion and bidirectional edge relations rely on repeated comparisons [7]. Proving these comparisons requires a large number of range checks to establish whether one value is greater than another, and performing these checks across graph records increases proof-generation costs. However, simply removing these range checks would no longer guarantee operator correctness, so new proof constructions are needed to preserve correctness while reducing the number of range checks. Second, ZKGraph does not provide dedicated proof constructions for count or weighted SSSP, both of which are important graph query operations, and developing such constructions would broaden the query support of zero-knowledge verifiable graph query systems.

To address these limitations, we present VerfGraph, an efficient zero-knowledge verifiable graph query evaluation system. VerfGraph retains ZKGraph's expansion-centric model and advances the operator design in two ways. First, we propose new proof methods for set-based expansion and for expansion and SSSP over bidirectional edge relations. These methods establish the same operator input-output relations through alternative proof conditions that require fewer comparisons and range checks, preserving correctness and completeness while lowering proof-generation costs. Second, we introduce a dedicated proof construction for the count operator and extend the SSSP construction to weighted graphs, broadening the class of graph queries that can be verified.

We implement VerfGraph using Plonky3 [8] with a polynomial commitment scheme (PCS) based on Fast Reed-Solomon Interactive Oracle Proofs of Proximity (FRI) [9]. Unlike ZK-Graph's Halo2/KZG backend [7], this transparent, hash-based backend requires no trusted setup and relies on assumptions believed to resist quantum attacks [10]. We evaluate the performance of VerfGraph using the LDBC SNB benchmark [11]. Compared with ZKGraph on complex IC queries, VerfGraph substantially reduces proof-generation time and peak prover memory while retaining millisecond-level verification and sub-MB proofs.

The remainder of this paper is organized as follows. Section II introduces the necessary background. Section III presents the system overview. Section IV describes the circuit design of the verifiable graph operators. Section V presents our experimental results. Section VI discusses related work, and Section VII concludes the paper.

References (28)