Abstract
Graph data is a critical digital asset used extensively across fields to optimize decision-making. While blockchain is an ideal platform for sharing and trading these assets due to its inherent transparency, it struggles to support complex analytical queries. Existing solutions like vChain enable verifiable boolean queries but suffer from significant storage, computation, and communication overhead due to the generation of individual object-level proofs. This paper proposes NetChain, a novel framework that enables efficient, verifiable top-k queries over on-chain graph data. By introducing a two-layer authenticated index and an optimized variant, NetChain+, the system achieves up to 85× faster index construction and reduces verification costs for users by 96% compared to state-of-the-art methods.
Introduction
The rise of social networks and knowledge graphs has made graph data a high-value asset. Blockchain technology offers a secure environment for monetizing this data, yet it remains notoriously inefficient for complex queries. For instance, a user requesting the "top-k" most influential nodes in a network needs a guarantee that the results are both complete and untampered.
Current verifiable query frameworks rely on Authenticated Data Structures (ADS) that generate cryptographic proofs for every single result. This leads to "proof bloat," where the size of the proof can exceed the size of the data itself, making it impractical for light nodes like smartphones. NetChain addresses this by shifting the focus from proving individual objects to proving the validity of entire data blocks.
Methodology
NetChain introduces a specialized two-layer authenticated index designed to minimize the overhead of generating (non-)existence proofs.
1. The Authenticated Two-Layer Index
The index structure is split into two distinct functional layers:
- Upper Layer (Compound Key-based SMT): This layer utilizes a Sorted Merkle Tree (SMT) to index "compound keys"—combinations of node identifiers and relationship types. This allows the system to prove that a specific block either contains relevant data or is entirely irrelevant in a single cryptographic step.
- Bottom Layer (Ordered Hash Chains): Within each block, all objects associated with the same key are organized into a hash chain, sorted by their weights. The "head" of this chain is embedded in the upper layer. To verify results, the user simply re-computes the hashes along the chain, avoiding the need for multiple complex Merkle paths.
2. NetChain+ Optimizations
To further enhance performance, the authors developed NetChain+, which incorporates two key features:
- Inter-block Links: Using a global Merkle Patricia Trie (MPT), NetChain+ links blocks that contain the same keys. This enables the search engine to "jump" directly between relevant blocks, bypassing thousands of irrelevant ones and significantly reducing search latency.
- Two-round Scan: This mechanism ensures that the Service Provider only transmits the globally relevant top-k results to the user, rather than every local top-k from every block, drastically reducing communication costs.
Experimental Evaluation
The framework was evaluated using three real-world graph datasets from the Stanford Network Analysis Platform (SNAP): Email-Enron (friendship network), Wiki-Vote (voting network), and GPlus (a large Google+ share network with over 13 million edges).
The results demonstrate that NetChain and NetChain+ significantly outperform the previous state-of-the-art, vChain:
- ADS Construction: NetChain is up to 85× faster at building the index and reduces the overall index size by 65%.
- Search Speed: NetChain+ is between 10× and 790× faster than competitors, depending on the query window and dataset size.
- User Efficiency: For end-users, communication costs are reduced by 87%, and the time required to verify results drops by 96%.
Key Insights and Conclusion
The success of NetChain lies in its move away from computationally expensive asymmetric cryptography (like multiset accumulators) toward simple, fast cryptographic hash functions (SHA-256). By leveraging the sparsity of graph data and using container-level proofs, NetChain makes complex blockchain graph analysis a performant reality.
While currently optimized for top-k incident edge queries, future work will focus on expanding the framework to support more complex patterns, such as subgraph matching and shortest-path queries, further broadening its application in secure asset management.
Summary updated