Manuscript Offprint
arXiv:2611.04240VerfGraph: Efficient Zero-Knowledge Verifiable Graph Query Evaluation System
Tianyi Ma
Shanghai Jiao Tong University
Yuncong Zhang
Shandong University
Yuanzhuo Yu
Shanghai Jiao Tong University
Boshi Yuan
Shanghai Jiao Tong University
Shi-Feng Sun
Shanghai Jiao Tong University
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.
A. Zero-Knowledge Proofs
Zero-knowledge proofs (ZKPs) allow a prover to convince a verifier that a statement is true without revealing private information beyond what the statement itself reveals [4]. In graph query processing, the prover is the server holding the private graph, and the verifier is the client requesting a query. For example, the server may prove that a returned set contains exactly the neighbors of a queried vertex without disclosing the rest of the graph. In this example, the statement concerns the correctness of the returned neighbors, while the private graph records and intermediate values used to establish it form the witness.
For practical query verification, a particular class of ZKPs, called zero-knowledge succinct non-interactive arguments of knowledge (zkSNARKs), provides three properties: proofs are compact; verification is fast relative to the computation being proved; and proofs can be checked without further interaction with the prover. These properties make zkSNARKs suitable for verifiable graph queries: the server returns the result together with a compact proof, and the client checks it efficiently without accessing the private graph, repeating the query computation, or engaging in further communication with the server.
B. AIR Arithmetization
To prove query correctness with a zkSNARK, we first express the conditions for a valid result as polynomial equations, called constraints. This translation, known as arithmetization, allows the verifier to check a proof that these equations hold without repeating the query computation.
VerfGraph uses an Algebraic Intermediate Representation (AIR) [10], which organizes the values involved in these equations into a table called an execution trace. Each row records a computation step, while the columns store inputs and intermediate values. These polynomial constraints enforce the computation within each row, connect successive rows, and require the relevant trace values to match the public inputs and claimed output. Satisfying these constraints establishes that the trace represents a valid computation producing the claimed result.
Example: To illustrate how these constraints establish correctness, consider computing the sum of pairwise products of two vectors, as shown in Figure 1. Let the public inputs be and , and let the claimed output be y = 18. Each row stores two inputs and , their product , and a running sum . A local polynomial constraint requires each product to be computed correctly: for . To accumulate these products, a transition constraint connects consecutive rows: for . The boundary constraints and initialize the sum and require its final value to equal the claimed output. With a
| row | input | input | product | running sum |
|---|---|---|---|---|
| 0 | 1 | 2 | 2 | 2 |
| 1 | 2 | 3 | 6 | 8 |
| 2 | 3 | 2 | 6 | 14 |
| 3 | 4 | 1 | 4 | |
| public inputs | public output | |||
Fig. 1. Four-row multiplication-and-accumulation AIR trace.
and fixed to the public inputs, these constraints require and .
The prover uses the trace as a witness to generate a zk-SNARK proving that these constraints hold without revealing private trace values. The same row-oriented representation applies to database scans, accumulations, and iterative graph operations, where repeated steps can be described by the same constraints across rows.
C. Permutation, Lookup, and Range Checks
This subsection introduces three protocols that are repeatedly used in our graph query proofs: permutation, lookup, and range checks. At the database level, these protocols support bag equality checks, membership checks against a reference table, and integer comparisons through bounded representations, respectively. Each protocol is implemented by a proof circuit, which encodes the conditions that the prover's data must satisfy. We measure circuit cost by the number of constraints enforced across the execution trace.
Permutation check. A permutation check proves that two length- columns and contain the same values with the same multiplicities, regardless of order. The column values belong to a finite field , a finite set supporting addition, subtraction, multiplication, and division by nonzero values. To compare the columns without matching rows individually, we follow LogUp and the reciprocal argument of Bullet-proofs++ [12], [13] and compare sums of reciprocals. These sums use a shared random value , sampled uniformly from after both columns have been fixed. The protocol checks whether
This logarithmic-derivative equality always holds for equal multisets when all denominators are nonzero. With appropriate field parameters, different multisets satisfy it only with small probability over the random choice of . The circuit cost of this protocol is .
Lookup check. A lookup check proves that every value in a column appears in a reference table . A reference entry may match several occurrences in . The prover records the number of occurrences assigned to each as and uses these counts as weights in the sum comparison above. After , , and have been fixed, the protocol samples a random value as above and checks whether
The circuit cost of this protocol is .
Range check. Finite-field arithmetic does not directly express integer ordering, so we verify integer comparisons by bounding differences between the compared values. For integers and , checking amounts to checking that the difference is nonnegative. A range check establishes such bounds by proving that a value represents an integer in , where is the required bit width. A lookup against would establish this bound but require a table with entries. The protocol instead splits the value into smaller bit groups, called limbs, and checks that combining them in their original bit positions reproduces the value. Each limb is then checked against a smaller lookup table. Using 8-bit limbs requires the table ; using 16-bit limbs reduces the number of limbs but requires a table with 65,536 entries. Following ZKGraph's implementation [7], VerfGraph uses 8-bit limbs, requiring limb lookups per value. If is not divisible by 8, the most significant limb is checked against a smaller table covering only the remaining bits. The circuit cost of this protocol is for checked values, where is the lookup-table size.
D. ZKGraph's Query Model and Graph Representation
ZKGraph [7] addresses the cost of proving complex graph queries through operator decomposition. Its expansion-centric model centers on expansion, which follows graph edges from a vertex or a set of vertices to their neighbors. The model includes single-source expansion, set-based expansion, and single-source shortest path (SSSP), with specialized proof constructions for their input–output relations. These operators are composed by using one operator's output relation as the next operator's input relation, and the proof enforces consistency between these relations. VerfGraph adopts this model, introduces new proof methods for several existing operators, and extends the set of supported operations.
The cost of proving these operators also depends on how graph edges are represented. An edge-list representation stores each edge as a row containing its two endpoints and optional attributes. An alternative, compressed sparse row (CSR), stores each vertex's neighbors consecutively in an array and uses offsets to locate each neighbor list. ZKGraph shows that proof generation is faster with edge lists than with CSR [7]. VerfGraph therefore adopts the edge-list representation for proof construction.
III. SYSTEM OVERVIEW
A. System Model
VerfGraph consists of two parties: a prover and a verifier . The prover maintains a private graph database , including its vertex and edge relations and their attributes. Given a graph query , evaluates over , returns the query result , and generates a proof of the computation.
The verifier submits and checks using the public query description, the claimed result, and the corresponding verification parameters. If verification succeeds, accepts without accessing the private graph or re-executing the query.
B. Security Model
VerfGraph considers two potential adversaries. A malicious prover may substitute graph data or construct incorrect intermediate and final query results. A malicious verifier may attempt to learn private graph records or intermediate values beyond what is revealed by the public inputs and query result. To fix the graph data against which results are verified, the verifier records a public database commitment before receiving the result and proof. Under this threat model, we consider the following three properties:
-
Completeness. An honest prover that correctly evaluates the declared query over the graph data committed by can generate a proof accepted by the verifier.
-
Soundness. The probability that a malicious prover convinces the verifier to accept a result inconsistent with the declared query over the graph data committed by is negligible.
-
Zero knowledge. The verifier learns no information about private graph records, intermediate relations, or auxiliary witness values beyond what is implied by the public inputs and query result.
We next explain how the proof construction and operator constraints support these properties.
Database and computation integrity: To bind query evaluation to the agreed graph data, the prover encodes the database columns as polynomials and commits to them using a polynomial commitment scheme (PCS), producing . The PCS allows the verifier to check that database values used in the proof are consistent with these committed columns. Starting from these values, AIR constraints establish each operator's input-output relation and require one operator's output to match the next operator's input. The final output is bound to the public result . An honest computation supplies a witness satisfying these constraints, while the proof establishes that the claimed answer follows from the declared query over the committed data.
For polynomial commitments, two major approaches are group-based schemes, such as KZG and IPA, and hash-based schemes. Hash-based schemes require no trusted setup and rely on assumptions believed to resist known quantum attacks [10]. These properties motivate our choice of an FRI-based PCS [9], a representative hash-based construction.
Witness privacy: VerfGraph protects private witness values through its randomized proof construction. Graph operators also produce intermediate relations whose sizes depend on private data. To prevent these sizes from changing the public trace dimensions, VerfGraph follows ZKSQL [5] and pads relations with dummy rows to predetermined public capacities. Private Boolean activity tags distinguish actual rows from dummy rows and prevent dummy rows from affecting query results. With these padded relations, each operator applies the same constraint pattern across a fixed-capacity trace, yielding an oblivious AIR layout for fixed public inputs.
Public information and scope: The query, query plan, result, database commitment, AIR descriptor, and trace dimensions and capacities are public. The graph schema, relation and attribute types, and edge directionality are also public information needed to interpret the query. Given this public information, our security model addresses database and computation integrity against a malicious prover and witness privacy against a malicious verifier. Other concerns, including query-result inference, access control, denial of service, and side channels in native query execution and witness construction, are outside our scope.
C. System Workflow
VerfGraph processes a graph query in five stages, as summarized in Figure 2.
Offline database commitment. The prover encodes the agreed graph-data columns as polynomials and commits to these polynomials using the PCS, producing . The verifier records for subsequent verification, fixing the graph data against which query results must be proved.
Query submission. With recorded, the verifier submits a graph query to be evaluated over the committed graph data.
Query planning and preprocessing. VerfGraph decomposes into graph operators and organizes them into a query plan. From this plan, it constructs a proof circuit in AIR form by combining the operators' constraints and connecting their input and output relations. Preprocessing this circuit produces proving parameters for proof generation and verification parameters , which the verifier uses together with the public AIR description to check proofs.
Query execution and proof generation. The prover executes the query plan over its private graph data to obtain the result . From the database values and intermediate operator relations, it constructs a witness for the proof circuit. Using this witness and , the prover generates a proof that is the result of evaluating over the graph data committed by . The prover returns and to the verifier.
Proof verification. The verifier checks the received proof using the public query description, the recorded commitment , the claimed result , and . If verification succeeds, the verifier accepts ; otherwise, it rejects the response.
D. An End-to-End Example
Consider a private graph database with directed edge relation . Its source and target columns

Fig. 2. System workflow of VerfGraph.
are and , respectively. The prover encodes these columns as separate polynomials and commits to them using the PCS, producing the database commitment . The verifier records , fixing the graph data against which subsequent query results must be proved.
With recorded, the verifier submits a query q requesting all outgoing edges of vertex 1. The query plan consists of a single-source expansion operator with and vertex 1 as inputs. For this operator, VerfGraph constructs a proof circuit to establish that the output contains exactly the edges originating from vertex 1 in the committed graph. Preprocessing this circuit produces the proving parameters and verification parameters .
Executing the operator over yields the result . Both returned edges originate from vertex 1, while originates from vertex 2 and is excluded. From the input edges and this result, the prover constructs the witness required by the circuit. Using this witness and , it generates a proof that contains exactly vertex 1's outgoing edges in the graph committed by . The prover returns and to the verifier. The verifier checks using its recorded , the query , the claimed result , and . Successful verification allows the verifier to accept the two returned edges as the complete answer without receiving the full edge relation or re-executing the query.
IV. CIRCUIT DESIGN
Following the expansion-centric model described in Section II-D, this section presents VerfGraph's circuit designs for core operators, including single-source expansion, set-based expansion, single-source shortest path (SSSP), and count. For each operator, we explain the proof intuition and construct its circuit using the protocols introduced in Section II-C, expressing permutation and lookup checks in logarithmic-derivative form. For operators improved over ZKGraph, we sum the costs of these protocols and the remaining constraints to compare circuit complexity between VerfGraph and ZKGraph.
A. Single-Source Expansion
Single-source expansion is a basic traversal operation in graph query processing. Given a source vertex, it returns the one-hop edges that can be traversed from that vertex, and therefore serves as a building block for graph queries. The input consists of a source identifier and an edge-list table . The output table contains exactly the rows for which is reachable from in one hop through an edge recorded in .
Which input edges belong in the output depends on whether represents a directed or bidirectional relation. We therefore consider the two cases separately.
Circuit design for the directed edge relation: For a directed edge relation, let , where A stores source identifiers and B stores target identifiers. We follow the same proof-construction strategy as ZKGraph: selection followed by multiset matching. Selection identifies exactly the input edges whose source is , while multiset matching requires the output to contain all and only these edges with the same multiplicities.
To prove the selection, the prover introduces a flag column over , where iff , and otherwise. The flag is proved using an inverse-witness column , defined as
For every , the circuit constrains to be Boolean and enforces
When , the second constraint forces ; when , the first constraint forces , and the second verifies the inverse witness. The remaining task is to prove that the selected edge rows are exactly the output rows. To apply the permutation check to edge rows, we compress each pair of endpoints into a single field element using a random challenge , and use another random challenge in the check below:
The prover then uses a permutation check to prove that the rows of satisfying and the rows of are permutations of one another, namely,
Thus every output edge must come from an edge whose source is , and every such input edge must appear in the output with the same multiplicity.
ZKGraph baseline for the bidirectional edge relation: For a bidirectional edge relation, let , where each row stores two endpoints and denotes a symmetric adjacency that can be traversed in either direction. Applying the directed protocol only to the first column would prove only the edges where and would miss valid traversals where , thereby failing to establish completeness.
ZKGraph handles this case using Bidirectional Relationship Canonicalization (BiRC). It canonicalizes each row of and by placing the smaller endpoint first, and checks that each canonicalized row contains the same two endpoints as the original row. With both tables in canonical form, it marks the rows of that contain and uses a permutation check to match the selected rows with the canonicalized . To prove that the smaller endpoint appears first, it uses two range checks, one for each table. These range checks require multiple limb lookups per row, adding to the circuit cost.
Our circuit design: To avoid these canonicalization checks, we treat as two directed views, and . From the first view, we select rows with ; from the second, we select rows with . In both cases, appears first. The selected rows from both views therefore represent all traversals from , and a single permutation check proves that contains exactly these rows with the same multiplicities. Both views reuse the original edge columns, without materializing or separately committing to a concatenated table.
To identify the selected rows in each view, the prover provides two equality flags:
and
The prover proves both flag columns using the same inverse-witness equality constraints as in the directed design. These flags identify the edges traversed in the forward and reverse directions, respectively. To match both directions against the output, we compress the rows as
The circuit then checks the following equality:
Correctness: For both constructions, correctness follows from two facts. First, the flag constraints identify exactly the edge rows that can be traversed from . In the directed case this means rows with ; in the bidirectional case it means rows with either endpoint equal to . Second, the permutation check proves that the selected traversals and the rows of are permutations of one another. Together, these constraints prove the correctness of the one-hop traversals from the source.
Circuit complexity: Since the directed construction follows ZKGraph's strategy, we focus our comparison on bidirectional expansion. Let N and M denote the input and output edge counts. For fixed identifier and limb widths, let T be the range-table size and n the number of limb lookups per range-checked value. Each limb lookup accounts for both the checked column and its reference table. ZKGraph's bidirectional single-source expansion requires two range checks costing and , respectively, and one permutation check costing . Together with selection and canonicalization constraints, its total circuit complexity is
VerfGraph instead uses two equality tests per input row, costing , and one permutation check over both input orientations and the output, costing . Its total circuit complexity is therefore . By replacing canonicalization with equality tests, VerfGraph eliminates both limb-based range checks and their associated lookup-table processing, reducing the circuit cost of this operator.
B. Set-Based Expansion
The set-based expansion operator generalizes single-source expansion from one source vertex to a set of source vertices. Its input consists of a source set and an edge-list table . The output table contains exactly the one-hop traversals that start from a vertex in , where and store the starting and adjacent vertex identifiers, respectively.
We consider set-based expansion over a directed edge relation in this subsection. Unless explicitly stated otherwise, “set-based expansion” hereafter refers to this directed case. Let , where A stores source identifiers and B stores target identifiers.
ZKGraph baseline: To identify the edges belonging to the output, ZKGraph [7] proves whether each edge source belongs to . It establishes membership by locating the source between two consecutive values in the sorted source set: the source belongs to the set exactly when it equals the lower value.
To construct these intervals, ZKGraph augments with minimum and maximum boundary values outside the identifier domain and sorts the resulting column as . It also sorts by source identifier to obtain . The first two permutation checks bind to the augmented source set and to , respectively. Two range checks then enforce and on adjacent rows, thereby certifying the two sort orders.
For every sorted edge source , the prover supplies a lower bracket , equal to the greatest value in not exceeding , and its successor . A lookup check against the consecutive-pair columns derived from proves that are adjacent source-set values. The remaining two range checks enforce and . Hence belongs to exactly when . A Boolean selector records this equality, and the third permutation check proves that the selected rows of form exactly .
Our circuit design: Our target is to prove that contains all and only the input edges whose source identifiers belong to , with the same multiplicities. We decompose this target into three conditions: the output and non-output edges together form the input; every output source belongs to
; and no non-output source belongs to . To certify the last condition, we prove that the distinct source identifiers of the non-output edges are disjoint from . The prover first constructs the following witnesses:
, the non-output edge table consisting of the rows of whose source identifiers do not belong to , where and store the source and target identifiers of these rows, respectively;
, a duplicate-free column containing one representative of each distinct source identifier appearing in ; this column is used to prove collectively that the sources of all non-output edges lie outside ;
, a sorted column obtained from the concatenation of and ; its strict ordering is used to certify that no identifier appears in both columns.
The prover then proves the following constraints. First, a permutation check proves that concatenating and yields a permutation of the input edge table . Let and be random challenges and define the row compressions
The prover proves
This constraint ensures that every row occurrence in is accounted for exactly once by either or , and that neither table contains a fabricated edge row.
Second, a lookup check proves that every source identifier in appears in . This ensures that covers all source identifiers represented in the non-output edge table.
Third, a permutation check proves that concatenating and yields a permutation of . A range check further proves for every adjacent pair. Any identifier shared by and would appear twice in , violating its strict ordering. These two checks therefore establish that the two columns share no identifier.
Fourth, a lookup check proves that every source identifier in the output column belongs to , thereby certifying that every reported edge satisfies the set-based expansion condition.
Correctness: The correctness follows from the following facts. The first-step permutation check establishes that, as multisets, and together contain exactly the rows of ; hence, every input-edge occurrence is assigned to one of these two tables, with no row inserted or omitted. The second-step lookup check proves that covers every source identifier in . The third-step permutation and range checks establish that and share no identifier. Together, the second and third steps therefore prove that no edge in starts from a vertex in . Finally, the fourth-step lookup check proves that every source identifier in C belongs to , so every edge in satisfies the expansion condition. These constraints jointly prove that contains all and only the one-hop traversals that start from vertices in .
Circuit complexity: Let and denote the input and output edge counts, , and . Let be the number of limbs per range-checked value and the lookup-table size.
For ZKGraph, the permutation checks for the source-set ordering, edge ordering, and output matching have circuit costs of , , and , respectively. The consecutive-pair lookup costs . The range check for source-set ordering costs , while edge ordering and the two bracket comparisons each cost . Together with auxiliary constraints, the total circuit cost is .
For our construction, the partition and union permutation checks cost and , respectively. The lookups from to and from to cost and , respectively. The strict-order range check over costs . Including the remaining linear-cost constraints, the total circuit cost is . Since the prover constructs with one entry per distinct source identifier among the non-output edges, . Our construction replaces the range checks for source-set ordering, edge ordering, and per-edge bracket comparisons with a single strict-order check over the union entries, avoiding repeated comparisons for non-output edges with the same source.
Bidirectional relations: The set-based expansion operators evaluated in our comparison use directed relations. A bidirectional extension can apply our construction to the two views and , combine their outputs as a multiset, and count self-loops once. We leave the implementation and evaluation of this extension to future work.
C. Single-Source Shortest Path
This subsection presents our proof for single-source shortest path (SSSP). Unless otherwise specified, SSSP refers to the unweighted setting, where every edge has unit cost. We first describe ZKGraph's construction and our improvements for bidirectional edge relations, and then extend the construction to weighted SSSP.
The input consists of a source identifier , an edge table , and a node column . The output is a distance column aligned with . For each node reachable from , the corresponding entry records its shortest-path distance; otherwise, the entry is set to a predefined sentinel , chosen larger than every admissible finite distance.
ZKGraph baseline: We first describe ZKGraph's construction for a directed edge relation [7]. ZKGraph's proof combines two conditions: each finite claimed distance must be realized by a path from the source, and no shorter path may exist. It uses predecessor witnesses to establish the first condition and edge-relaxation checks to establish the second. At the node level, the prover supplies a source-flag column , a predecessor column , and a predecessor-distance column , all aligned with . At the edge level, the prover supplies two columns and , aligned with , which record the claimed distances of the endpoints in A and B, respectively.
Using the equality constraints from Section IV-A, the circuit establishes iff , and sets the source distance to zero. For each non-source row with a finite claimed distance, a lookup check proves that appears in the global node-distance table . A second lookup check proves that the predecessor edge appears in . The distance-propagation constraint then enforces
These checks bind each claimed distance to its predecessor through an input edge.
The edge-level constraints additionally establish shortest-path optimality. For each edge row , the prover binds both endpoint distances to through two lookup checks, one for and the other for . A range check then enforces the relaxation condition
For a bidirectional edge relation, the same proof strategy must account for traversal in both directions. Each edge is stored once, so its stored orientation may be opposite to the predecessor traversal. ZKGraph handles the predecessor-edge lookup using BiRC, introduced in Section IV-A. It canonicalizes both edge rows and predecessor-node pairs, proves the correctness of their canonical representations, and performs the lookup over the canonical edge table. The two canonicalization range checks increase the circuit cost.
Our circuit design: For directed edge relations, we retain the preceding construction. For bidirectional relations, we replace canonicalization with a lookup over both traversal directions and enforce relaxation in both directions.
Following the two-view representation in Section IV-A, we use and to represent the two traversal directions. Unlike expansion, which matches all selected traversals against the output, SSSP only requires membership of the predecessor edges. We therefore use a lookup check to prove that each predecessor edge appears in either view. Both views reuse the original edge columns without materializing a concatenated table.
Let denote the indices of non-source node rows with finite claimed distances. With random challenges and , define the row compressions for and as
The prover supplies multiplicity columns and and proves
This check proves that every predecessor edge exists in at least one traversal direction without canonicalizing either table.
The lookup establishes predecessor-edge membership in either direction. To also establish shortest-path optimality, we enforce relaxation in both directions:
These conditions are equivalent to the squared-difference bound
The circuit enforces this bound with a range check establishing that is nonnegative, using bounded integer representations with parameters chosen to prevent finite-field wraparound.
Correctness: Correctness follows from two facts. First, following finite-distance predecessors decreases the claimed distance by one at each step until reaching the source. The predecessor-edge lookups therefore establish a source path realizing each finite claimed distance . Hence, the true shortest-path distance satisfies . Second, the endpoint-distance lookups and relaxation constraints enforce in every valid traversal direction. Applying these inequalities along a shortest path gives . Thus, for every reachable node. A finite predecessor path certifies reachability, while assigning to a reachable node contradicts relaxation along its source path. Therefore, labels exactly the unreachable nodes.
Circuit complexity: We analyze the circuit cost of our construction for bidirectional SSSP. Let be the number of edge rows, the number of node rows, and the number of non-source nodes with finite claimed distances. Let be the number of limbs per range-checked value and the lookup-table size, with the limb count chosen to accommodate the squared-difference bounds.
The predecessor-distance lookup costs , and the two endpoint-distance lookups each cost . The predecessor-edge lookup uses r query rows and 2N reference rows across the two traversal views, costing . The node-level constraints contribute , and computing the squared endpoint-distance differences contributes .
The circuit enforces with one range check per edge, costing across all edge rows. Combining these costs and using , the total circuit cost is
For fixed limb width, limb count, and lookup-table size, this cost is linear in the numbers of edges and nodes.
Weighted SSSP: Weighted SSSP retains the preceding proof structure and changes only the predecessor-edge representation and the distance constraints. The input additionally includes a column W of positive integer edge weights aligned with .
First, the prover supplies a node-aligned column recording predecessor-edge weights. For each non-source row with a finite claimed distance, the predecessor-edge lookup now checks
and the propagation constraint becomes
For bidirectional relations, the lookup uses both and , following the same two-view construction.
Second, the endpoint-distance lookups remain unchanged, while directed relaxation becomes
For bidirectional relations, the endpoint-distance difference is now bounded by instead of 1. We therefore generalize the unweighted squared-difference bound with a range check enforcing
Since edge weights are positive, the same predecessor-path and relaxation argument establishes correctness.
D. Count
The count operator groups identical input values and returns the number of occurrences in each group. It is a common aggregation primitive in graph queries, where it can be used to compute, for example, vertex degrees, tag frequencies, and per-type edge counts. This subsection presents our proof construction for this operator. ZKGraph does not provide a corresponding proof construction [7]. We address this limitation with a dedicated count proof, thereby broadening the class of graph queries that can be expressed and verified. The input to the count operator is a vector . Its output is , where contains distinct keys and records the number of occurrences of in . Rows with do not contribute to the logical count result.
Circuit design: The prover first proves the equality between the input multiset represented by and the weighted output multiset represented by , where specifies the multiplicity of . Let denote the random challenge. The proof reduces this weighted multiset equality to the identity
Then, the prover proves for each adjacent pair using a range check, which ensures that B contains no duplicate elements (consequently, the output keys in B must appear in ascending order; this restriction is immaterial to the semantics of count).
Correctness: The range check above ensures that the prover cannot split the occurrences of a value in A across multiple output rows. Together with the weighted multiset check, it further ensures that any key included in B but absent from A must have multiplicity zero and therefore does not affect the logical count result. Thus, correctly encodes the group cardinalities of A.
E. Summary
The operators presented above provide the building blocks for verifying graph queries under the expansion-centric model. Other operations include filtering, order-by and limit-k (top-k), reachability, and all-shortest-path enumeration. For these operations, VerfGraph retains ZKGraph's operator-level proof strategies. Together, the operators described in this section are composed according to the query plan, with intermediate results passed from one operator to another.
To verify this data flow, VerfGraph uses AIR constraints to check both each operator's input-output relationship and the consistency of intermediate results between operators. Specifically, when an operator consumes a relation produced by another operator, the constraints ensure that the input used by the consuming operator matches the output of the producing operator. This connects the individual operator checks according to the dependencies in the query plan.
The proof also checks that the query reads the agreed graph data. Starting from these data, each operator produces the result required by its semantics, which is then passed consistently to the operators that consume it. Following these dependencies establishes that the returned answer is the result of evaluating the query over the agreed graph data. VerfGraph generates a zero-knowledge proof of this evaluation, allowing the verifier to check the answer without accessing private graph records or intermediate results.
V. EXPERIMENTS
In this section, we evaluate VerfGraph from three perspectives: system-level performance and query coverage across LDBC SNB queries and database scales, operator-level proving costs, and a controlled circuit-level comparison with ZKGraph under the same Halo2/KZG backend.
A. Experimental Setup
We implemented VerfGraph in Rust on top of Plonky3, using its AIR arithmetization framework and FRI-based PCS. This hash-based PCS allows the use of small prime fields for efficient arithmetic, so we choose Goldilocks64, a widely used 64-bit prime field that supports efficient machine arithmetic and FFT-based polynomial operations for proof generation. We set the FRI parameters for an approximately 100-bit classical-security target, comparable to the estimated classical-security level of the BN254 curve used in ZKGraph's Halo2/KZG backend [14].
We evaluate VerfGraph on a subset of the LDBC Social Network Benchmark (SNB) Interactive workload [11]: IS3, IS4, IS5, IC1, IC2, IC9, and IC13. These seven queries cover all queries evaluated in ZKGraph's experiments and enable a direct comparison between the two systems. We additionally evaluate IC6 and IC14 V2 to demonstrate the query support enabled by our new proof constructions for count and weighted SSSP, respectively.
For these queries, we measure database scale by the number of rows in the relevant fact table, following ZKGraph. We use person_knows_person for IS3, IC1, and IC13;
TABLE I DATABASE COMMITMENT TIME BY QUERY AND DATABASE SCALE (S).
| Scale | IS3 | IS4 | IS5 | IC1 | IC2 | IC6 | IC9 | IC13 | IC14 | V2 |
|---|---|---|---|---|---|---|---|---|---|---|
| 60k | 0.053 | 0.057 | 0.064 | 0.163 | 0.096 | 0.065 | 0.097 | 0.045 | 0.143 | |
| 120k | 0.105 | 0.109 | 0.110 | 0.306 | 0.196 | 0.136 | 0.195 | 0.088 | 0.284 | |
| 240k | 0.208 | 0.219 | 0.220 | 0.596 | 0.396 | 0.279 | 0.396 | 0.173 | 0.562 |
TABLE II CIRCUIT PREPROCESSING TIME BY QUERY AND DATABASE SCALE (S).
| Scale | IS3 | IS4 | IS5 | IC1 | IC2 | IC6 | IC9 | IC13 | IC14 | V2 |
|---|---|---|---|---|---|---|---|---|---|---|
| 60k | 0.043 | 0.041 | 0.042 | 0.271 | 0.043 | 0.042 | 0.043 | 0.089 | 0.301 | |
| 120k | 0.083 | 0.081 | 0.080 | 0.520 | 0.084 | 0.082 | 0.085 | 0.170 | 0.593 | |
| 240k | 0.163 | 0.156 | 0.156 | 1.041 | 0.164 | 0.163 | 0.164 | 0.330 | 1.209 |
comment_hasCreator_person for IS4, IS5, IC2, and IC9; and post_hasTag_tag for IC6. For IC14 V2, we use the combined number of rows in comment_replyOf_comment and comment_replyOf_post. Unless otherwise stated, we evaluate the queries at database scales of 60k, 120k, and 240k rows to assess performance as database size increases. These scales match those used in ZKGraph's evaluation, and both systems use the same datasets for the seven shared queries.
All experiments were conducted on a server with 24 vCPUs (Intel Ice Lake, 3.0 GHz) and 192 GiB of RAM, running 64-bit Ubuntu 24.04. All experimental results are averaged over multiple runs.
B. System-Level Performance
This subsection evaluates VerfGraph's offline database-commitment and circuit-preprocessing costs, its system-level performance compared with ZKGraph, and its performance on additional graph queries enabled by count and weighted SSSP.
Database Commitment and Circuit Preprocessing: We measure database commitment time and circuit preprocessing time. For each evaluated query template, the database commitment covers the input tables and columns used by that query. The experimental results are shown in Tables I and II.
Benchmarking with ZKGraph: ZKGraph is the state-of-the-art zero-knowledge verifiable graph query evaluation system [7]. We compare VerfGraph and ZKGraph on IS3, IS4, IS5, IC1, IC2, IC9, and IC13, which are supported by both systems, at the 60k, 120k, and 240k fact-table scales. Both systems use the same datasets. For all three scales, we apply the same value-encoding rules as ZKGraph to nonnumeric values such as strings and dates.
For each query, we use the same operator decomposition as ZKGraph, replacing its operator proofs with the circuits in Section IV. Following ZKGraph, we prove friends-of-friends queries with bidirectional SSSP rather than a sequence of expansion proofs; hence this comparison does not separately exercise bidirectional set-based expansion.
We compare proof generation time, peak prover memory usage, proof size, and verification time. The experimental results are shown in Table III.
Proof generation time. Compared with ZKGraph, VerfGraph substantially reduces proof generation time. The improvement is more pronounced for the IC queries, with speedups of 33.9×–59.7×.
Peak prover memory usage. VerfGraph also substantially reduces peak prover memory usage relative to ZKGraph. For the IC queries, the reduction factor ranges from 4.5× to 6.6×.
Proof size. The proof size of VerfGraph is larger than that of ZKGraph, but remains sub-MB for every evaluated query and scale. This larger proof size reflects our use of an FRI-based PCS and is an acceptable tradeoff for faster proof generation and lower peak prover memory usage.
Verification time. Although verification takes longer than in ZKGraph, VerfGraph maintains millisecond-level verification across all evaluated queries and scales.
The evaluated database scales also characterize scalability. As database scale increases, proof generation time generally increases, while proof size and verification time grow slowly.
Additional Query Coverage: Beyond the seven queries shared with ZKGraph, we evaluate IC6 and IC14 V2 at the 60k, 120k, and 240k database scales. These queries use our new proof constructions for count and weighted SSSP, respectively. The experimental results are shown in Table IV.
These results demonstrate VerfGraph's support for both queries while retaining sub-MB proofs and millisecond-level verification at the evaluated scales.
C. Operator Proof Performance
To evaluate the proving costs of the operator-proof constructions introduced in Section IV, we measure single-source expansion and the two set-based expansions in IC2; unweighted SSSP and count in IC6; and weighted SSSP in IC14 V2. These operators are drawn from the IC queries evaluated in Section V-B.
We construct standalone circuits for these operators and measure their proof-generation times using inputs from the corresponding queries at the 60k database scale. The two set-based expansions in IC2 are proved jointly in one circuit. The experimental results are shown in Table V.
D. Same-Backend Performance Comparison
To isolate the contribution of our proposed operator-proof constructions from the choice of proving backend, we implement them within ZKGraph's Halo2/KZG framework. We retain the same backend and implementations of permutation, lookup, and range checks, replacing ZKGraph's corresponding operator-proof constructions with ours. We refer to this implementation as VG-Halo2.
System-level comparison: We first evaluate complete query circuits for IS3, IS4, IS5, IC1, IC2, IC9, and IC13 in both systems. These seven queries cover all queries evaluated in ZKGraph's experimental section. Both implementations use
TABLE III SYSTEM-LEVEL COMPARISON BETWEEN VERFGRAPH AND ZKGRAPH.
| Query | Scale | Proof Generation Time (s) | Proof Size (KiB) | Verification Time (ms) | Peak Memory Usage (GiB) | ||||
|---|---|---|---|---|---|---|---|---|---|
| VerfGraph | ZKGraph | VerfGraph | ZKGraph | VerfGraph | ZKGraph | VerfGraph | ZKGraph | ||
| IC1 | 60k | 1.742 | 77.880 | 679.079 | 57.938 | 24.904 | 21.351 | 1.678 | 7.947 |
| 120k | 3.409 | 156.440 | 718.237 | 57.938 | 27.240 | 21.435 | 3.152 | 15.901 | |
| 240k | 6.681 | 330.215 | 758.958 | 57.938 | 28.558 | 21.581 | 6.095 | 31.380 | |
| IC2 | 60k | 1.050 | 56.143 | 558.924 | 40.250 | 18.986 | 16.229 | 0.941 | 5.752 |
| 120k | 2.071 | 113.194 | 598.082 | 40.250 | 20.296 | 16.372 | 1.789 | 11.511 | |
| 240k | 4.114 | 240.029 | 638.803 | 40.250 | 21.616 | 16.207 | 3.512 | 23.176 | |
| IC9 | 60k | 1.099 | 60.893 | 566.096 | 43.688 | 19.307 | 17.170 | 1.001 | 6.069 |
| 120k | 2.164 | 122.647 | 605.254 | 43.688 | 20.558 | 17.326 | 1.886 | 12.135 | |
| 240k | 4.294 | 256.487 | 645.975 | 43.688 | 21.907 | 17.246 | 3.662 | 24.051 | |
| IC13 | 60k | 0.402 | 13.622 | 460.734 | 9.000 | 14.872 | 6.745 | 0.327 | 1.481 |
| 120k | 0.768 | 27.195 | 499.893 | 9.000 | 16.137 | 6.842 | 0.630 | 2.958 | |
| 240k | 1.525 | 56.903 | 540.613 | 9.000 | 17.367 | 6.667 | 1.239 | 5.860 | |
| IS3 | 60k | 0.630 | 13.975 | 499.278 | 10.219 | 16.358 | 7.178 | 0.536 | 1.612 |
| 120k | 1.254 | 28.652 | 539.702 | 10.219 | 17.671 | 7.070 | 1.046 | 3.275 | |
| 240k | 2.628 | 60.454 | 585.907 | 10.219 | 19.273 | 7.266 | 2.182 | 6.561 | |
| IS4 | 60k | 0.336 | 3.899 | 451.822 | 2.562 | 14.548 | 4.569 | 0.295 | 0.793 |
| 120k | 0.648 | 7.871 | 490.980 | 2.562 | 15.773 | 4.559 | 0.578 | 1.600 | |
| 240k | 1.269 | 16.341 | 531.701 | 2.562 | 17.017 | 4.727 | 1.146 | 3.382 | |
| IS5 | 60k | 0.379 | 4.015 | 453.088 | 2.781 | 14.554 | 4.466 | 0.292 | 0.812 |
| 120k | 0.670 | 8.111 | 492.246 | 2.781 | 15.866 | 4.387 | 0.573 | 1.635 | |
| 240k | 1.331 | 16.721 | 532.967 | 2.781 | 17.102 | 4.500 | 1.132 | 3.348 | |
TABLE IV PERFORMANCE OF ADDITIONAL LDBC SNB QUERIES IN VERFGRAPH.
| Query | Scale | Proof Generation Time (s) | Proof Size (KiB) | Verification Time (ms) | Peak Memory Usage (GiB) | |
|---|---|---|---|---|---|---|
| 60k | 2.502 | |||||
| IC6 | 120k | 4.900 | 605.552 | 20.184 | 3.755 | |
| 240k | 9.877 | 646.272 | 21.502 | 7.441 | ||
| 60k | 1.986 | 590.856 | 19.769 | 1.799 | ||
| IC14 V2 | 120k | 3.928 | 631.577 | 20.945 | 3.496 | |
| 240k | 7.960 | 673.860 | 22.301 | 6.903 | ||
TABLE V STANDALONE OPERATOR-PROOF GENERATION TIME AT THE 60K DATABASE SCALE. THE TWO IC2 SET-BASED EXPANSIONS ARE PROVED JOINTLY.
| Operator | Source query | Proof generation time (s) |
|---|---|---|
| Single-source expansion | IC2 | 0.315 |
| Set-based expansion ×2 | IC2 | 0.484 |
| Unweighted SSSP | IC6 | 0.666 |
| Count | IC6 | 0.336 |
| Weighted SSSP | IC14 V2 | 0.435 |
the same datasets, query parameters, and execution environment. We evaluate each query at the 60k, 120k, and 240k database scales and report five metrics: key-generation time, proof-generation time, proof size, verification time, and peak prover memory usage.
Tables III and VI present the results for ZKGraph and VG-Halo2, respectively.
Compared with ZKGraph, VG-Halo2 achieves substantial performance improvements, especially for complex IC queries. For these queries, VG-Halo2 reduces proof generation time by 44.3%–62.5%, proof size by 42.6%–62.2%, and peak prover memory usage by 26.7%–48.8%, while maintaining millisecond-level verification. These results demonstrate that VerfGraph achieves better overall performance than ZKGraph.
under the same proving backend.
The key-generation times of VG-Halo2 and ZKGraph are shown in Table VII. The results indicate that both systems incur comparable key-generation costs.
Operator-level comparison: To explain the query-level performance gains, we further conduct operator-level comparisons using IC2 and IC9 at the 60k database scale. Together, these queries cover all operator-proof constructions for which we propose improvements over ZKGraph: single-source expansion over bidirectional edge relations, unweighted SSSP over bidirectional edge relations, and set-based expansion. We decompose the IC2 and IC9 query circuits of ZKGraph and VG-Halo2 into operator circuits using the same procedure and compare the proof-generation time of each corresponding
TABLE VI PERFORMANCE OF VG-HALO2.
| Query | Scale | Proof Generation Time (s) | Proof Size (KiB) | Verification Time (ms) | Peak Memory Usage (GiB) |
|---|---|---|---|---|---|
| IC1 | 60k | 43.374 | 32.406 | 14.330 | 5.822 |
| 120k | 87.175 | 32.406 | 14.388 | 11.656 | |
| 240k | 181.695 | 32.406 | 32.889 | 22.990 | |
| IC2 | 60k | 30.368 | 23.094 | 10.779 | 3.882 |
| 120k | 61.477 | 23.094 | 10.823 | 7.761 | |
| 240k | 129.966 | 23.094 | 10.738 | 15.261 | |
| IC9 | 60k | 32.677 | 24.500 | 11.802 | 4.028 |
| 120k | 65.952 | 24.500 | 11.714 | 8.213 | |
| 240k | 138.687 | 24.500 | 12.970 | 15.889 | |
| IC13 | 60k | 5.191 | 3.406 | 4.918 | 0.790 |
| 120k | 10.403 | 3.406 | 4.870 | 1.514 | |
| 240k | 21.339 | 3.406 | 4.964 | 3.038 | |
| IS3 | 60k | 8.332 | 6.000 | 5.912 | 1.027 |
| 120k | 16.868 | 6.000 | 5.893 | 2.087 | |
| 240k | 35.020 | 6.000 | 6.091 | 4.187 | |
| IS4 | 60k | 2.205 | 1.844 | 4.020 | 0.376 |
| 120k | 4.354 | 1.844 | 3.969 | 0.781 | |
| 240k | 8.669 | 1.844 | 3.942 | 1.574 | |
| IS5 | 60k | 3.234 | 2.062 | 4.243 | 0.626 |
| 120k | 6.480 | 2.062 | 4.181 | 1.229 | |
| 240k | 13.349 | 2.062 | 4.365 | 2.573 |
TABLE VII CIRCUIT-SPECIFIC KEY-GENERATION TIME OF VG-HALO2 AND ZKGRAPH UNDER THE SAME HALO2/KZG BACKEND (s).
| Scale | System | IC1 | IC2 | IC9 | IC13 | IS3 | IS4 | IS5 |
|---|---|---|---|---|---|---|---|---|
| 60k | VG-Halo2 | 6.435 | 4.319 | 4.176 | 0.994 | 1.039 | 1.032 | 1.371 |
| ZKGraph | 6.225 | 5.322 | 5.556 | 1.424 | 2.141 | 1.604 | 1.822 | |
| 120k | VG-Halo2 | 12.542 | 8.369 | 8.373 | 1.901 | 2.123 | 2.065 | 2.748 |
| ZKGraph | 11.724 | 10.603 | 11.176 | 2.716 | 4.276 | 3.176 | 3.660 | |
| 240k | VG-Halo2 | 25.625 | 17.759 | 17.943 | 3.795 | 4.357 | 4.179 | 5.690 |
| ZKGraph | 23.798 | 22.330 | 23.273 | 5.622 | 9.111 | 6.651 | 7.707 |
operator. Figure 3 presents the results.
The results show that our proposed constructions reduce proof-generation time for expansion and SSSP. These improvements contribute to the query-level gains under the same backend.
VI. RELATED WORK
Verifiable query processing allows a client to check the correctness and completeness of a result returned by an untrusted database service without re-executing the query. Existing approaches can be broadly grouped into authenticated data structures, trusted hardware, and cryptographic proof systems.
ADS-based methods: Authenticated data structures (ADSs) bind a database or index to a compact public di-

Fig. 3. Operator-level proof generation time of ZKGraph and VG-Halo2 for IC2 and IC9 at the 60k database scale.
gest. The server returns a verification object containing the authenticated index fragments needed to check a query answer. Dynamic authenticated indexes support updates and freshness in outsourced databases [15], while vChain develops authenticated indexes for Boolean range queries over blockchain data [16]. For graph data, authenticated hints support shortest-path verification [17], and Merkle-based feature indexes authenticate subgraph queries [18]. ADS-based methods can be efficient for queries supported by a particular authenticated index, but their verification objects are tied to its access paths and generally provide integrity rather than data privacy. TAP augments a tree-based ADS with independent audits and zero-knowledge range proofs to support privacy-preserving verification of statistical data services [19].
Hardware-based methods: Trusted hardware executes selected database functionality within an attested environment. CorrectDB uses a tamper-resistant coprocessor to authenticate SQL queries [20], and VeriDB builds verifiable relational storage and general SQL execution around SGX [21]. These systems offer low verification overhead and support expressive queries, but rely on the hardware and attestation stack; concealing data-dependent access may require additional oblivious mechanisms.
Cryptographic proof methods: IntegriDB and vSQL use cryptographic verifiable computation to support broad classes of SQL queries over outsourced databases [22], [23]; their primary objective is result integrity rather than zero-knowledge privacy. ZQL compiles simple computations on private data into zero-knowledge protocols that provide result integrity while protecting the remaining data [24]. ZKSQL decomposes ad-hoc SQL queries into operator-level interactive zero-knowledge protocols [5], whereas PoneglyphDB uses optimized PLONKish circuits and recursive composition to pro-duce non-interactive proofs for relational queries [6]. V3DB specializes database-aware proof design for vector search by proving a fixed-shape IVF-PQ pipeline over a committed snapshot [25].
For graph processing, ALITHEIA develops tailored verification for shortest path, longest path, and maximum flow [26]. For decentralized graph data, VeriDKG uses a blockchain-maintained ADS and a cryptographic accumulator to verify SPARQL queries over knowledge graphs, whereas VGQ integrates an external graph database to execute and verify queries over blockchain transaction graphs [27], [28]. These systems focus on query integrity in decentralized-data settings rather than zero-knowledge evaluation over private graph data. ZKGraph introduced an expansion-centric decomposition and corresponding PLONKish circuits for zero-knowledge graph query evaluation [7]. VerfGraph retains this model, redesigns comparison-heavy expansion and shortest-path proofs, and develops proof constructions for count and weighted shortest-path operators.
VII. CONCLUSION
We present VerfGraph, a zero-knowledge system for verifiable graph query evaluation over committed graph data. Building on the expansion-centric model, VerfGraph redesigns the proof constructions for expansion and shortest-path operations and develops proof constructions for count and weighted shortest-path operators. The experimental results show that VerfGraph substantially reduces proof generation time and peak prover memory usage compared with ZKGraph while maintaining millisecond-level verification and producing sub-MB proofs on the evaluated LDBC SNB queries.
REFERENCES
[1] R. Angles and C. Gutierrez, “Survey of graph database models,” ACM Computing Surveys, vol. 40, no. 1, 2008.
[2] R. Angles, M. Arenas, P. Barceló, A. Hogan, J. Reutter, and D. Vrgoč, “Foundations of modern query languages for graph databases,” ACM Computing Surveys, vol. 50, no. 5, 2017.
[3] O. Erling, A. Averbuch, J. Larriba-Pey, H. Chafi, A. Gubichev, A. Prat, M.-D. Pham, and P. Boncz, “The LDBC social benchmark: Interactive workload,” in Proceedings of the 2015 ACM SIGMOD International Conference on Management of Data. New York, NY, USA: Association for Computing Machinery, 2015, pp. 619–630.
[4] S. Goldwasser, S. Micali, and C. Rackoff, “The knowledge complexity of interactive proof systems,” SIAM Journal on Computing, vol. 18, no. 1, pp. 186–208, 1989.
[5] X. Li, C. Weng, Y. Xu, X. Wang, and J. Rogers, “ZKSQL: Verifiable and efficient query evaluation with zero-knowledge proofs,” Proceedings of the VLDB Endowment, vol. 16, no. 8, pp. 1804–1816, 2023.
[6] B. Gu, J. Fang, and F. Nawab, “PoneglyphDB: Efficient non-interactive zero-knowledge proofs for arbitrary sql-query verification,” Proceedings of the ACM on Management of Data, vol. 3, no. 1, 2025.
[7] H. Wu, C. Wei, Y. Wang, L. Lin, Y. Leng, S. He, M. Zhao, H. Wu, Y. Yan, and A. Zhou, “Zero-knowledge verifiable graph query evaluation via expansion-centric operator decomposition,” 2025.
[8] Plonky3 Contributors, “Plonky3: A toolkit for polynomial IOPs,” GitHub repository, 2026, accessed 10 July 2026. [Online]. Available: https://github.com/Plonky3/Plonky3
[9] E. Ben-Sasson, I. Bentov, Y. Horesh, and M. Riabzev, “Fast reed-solomon interactive oracle proofs of proximity,” in 45th International Colloquium on Automata, Languages, and Programming (ICALP 2018), ser. Leibniz International Proceedings in Informatics, vol. 107. Dagstuhl, Germany: Schloss Dagstuhl-Leibniz-Zentrum fuer Informatik, 2018, pp. 14:1–14:17.
[10] —, “Scalable, transparent, and post-quantum secure computational integrity,” Cryptology ePrint Archive, Report 2018/046, 2018. [Online]. Available: https://eprint.iacr.org/2018/046
[11] Linked Data Benchmark Council, “LDBC Social Network Benchmark,” https://ldbcouncil.org/benchmarks/snb/, 2026, accessed: 2026-07-09.
[12] U. Haböck, “Multivariate lookups based on logarithmic derivatives,” Cryptology ePrint Archive, Paper 2022/1530, 2022. [Online]. Available: https://eprint.iacr.org/2022/1530
[13] L. Eagen, S. Kanjalkar, T. Ruffing, and J. Nick, “Bulletproofs++: Next generation confidential transactions via reciprocal set membership arguments,” in Advances in Cryptology – EUROCRYPT 2024, ser. Lecture Notes in Computer Science, vol. 14655. Cham, Switzerland: Springer, 2024, pp. 249–279.
[14] R. Barbulescu and S. Duquesne, “Updating key size estimations for pairings,” Journal of Cryptology, vol. 32, no. 4, pp. 1298–1336, 2019.
[15] F. Li, M. Hadjiefleftheriou, G. Kollios, and L. Reyzin, “Dynamic authenticated index structures for outsourced databases,” in Proceedings of the 2006 ACM SIGMOD International Conference on Management of Data. New York, NY, USA: Association for Computing Machinery, 2006, pp. 121–132.
[16] C. Xu, C. Zhang, and J. Xu, “vChain: Enabling verifiable boolean range queries over blockchain databases,” in Proceedings of the 2019 ACM SIGMOD International Conference on Management of Data. New York, NY, USA: Association for Computing Machinery, 2019, pp. 141–158.
[17] M. L. Yiu, Y. Lin, and K. Mouratidis, “Efficient verification of shortest path search via authenticated hints,” in 2010 IEEE 26th International Conference on Data Engineering. Los Alamitos, CA, USA: IEEE Computer Society, 2010, pp. 237–248.
[18] Z. Fan, Y. Peng, B. Choi, J. Xu, and S. S. Bhowmick, “Towards efficient authenticated subgraph query service in outsourced graph databases,” IEEE Transactions on Services Computing, vol. 7, no. 4, pp. 696–713, 2014.
[19] D. Reijsbergen, A. Maw, Z. Yang, T. T. A. Dinh, and J. Zhou, “TAP: Transparent and privacy-preserving data services,” in 32nd USENIX Security Symposium (USENIX Security 23). Anaheim, CA: USENIX Association, 2023, pp. 6489–6506. [Online]. Available: https://www.usenix.org/conference/usenixsecurity23/presentation/reijsbergen
[20] S. Bajaj and R. Sion, “CorrectDB: Sql engine with practical query authentication,” Proceedings of the VLDB Endowment, vol. 6, no. 7, pp. 529–540, 2013.
[21] W. Zhou, Y. Cai, Y. Peng, S. Wang, K. Ma, and F. Li, “VeriDB: An SGX-based verifiable database,” in Proceedings of the 2021 International Conference on Management of Data. New York, NY, USA: Association for Computing Machinery, 2021, pp. 2182–2194.
[22] Y. Zhang, J. Katz, and C. Papamanthou, “IntegriDB: Verifiable sql for outsourced databases,” in Proceedings of the 22nd ACM SIGSAC Conference on Computer and Communications Security. New York, NY, USA: Association for Computing Machinery, 2015, pp. 1480–1491.
[23] Y. Zhang, D. Genkin, J. Katz, D. Papadopoulos, and C. Papamanthou, “vSQL: Verifying arbitrary sql queries over dynamic outsourced databases,” in 2017 IEEE Symposium on Security and Privacy. Los Alamitos, CA, USA: IEEE Computer Society, 2017, pp. 863–880.
[24] C. Fournet, M. Kohlweiss, G. Danezis, and Z. Luo, “ZQL: A compiler for privacy-preserving data processing,” in 22nd USENIX Security Symposium (USENIX Security 13). Washington, D.C.: USENIX Association, 2013, pp. 163–178. [Online]. Available: https://www.usenix.org/conference/usenixsecurity13/technical-sessions/presentation/fournet
[25] Z. Qiu, W. Qu, J. Zhang, and B. Yuan, “V3DB: Audit-on-demand zero-knowledge proofs for verifiable vector search over committed snapshots,” 2026.
[26] Y. Zhang, C. Papamanthou, and J. Katz, “ALITHEIA: Towards practical verifiable graph processing,” in Proceedings of the 2014 ACM SIGSAC Conference on Computer and Communications Security. New York, NY, USA: Association for Computing Machinery, 2014, pp. 856–867.
[27] E. Zhou, S. Guo, Z. Hong, C. S. Jensen, Y. Xiao, D. Zhang, J. Liang, and Q. Pei, “VeriDKG: A verifiable SPARQL query engine for decentralized knowledge graphs,” Proceedings of the VLDB Endowment, vol. 17, no. 4, pp. 912–925, 2023.
[28] Z. Yao, T. Li, J. Xin, Y. Li, C. Wang, Z. Wang, D. Srivastava, and C. S. Jensen, “VGQ: Enabling verifiable graph queries on blockchain systems,” in 2025 IEEE 41st International Conference on Data Engineering (ICDE). IEEE, 2025, pp. 3602–3614.