arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.08359cs.CRcs.DC
收藏

使用SNARKs实现区块链超轻客户端的高效查询验证

Efficient Query Verification for Blockchain Superlight Clients Using SNARKs

Stefano De Angelis, Ivan Visconti, Andrea Vitaletti, Marco Zecchini

AI总结:

本文提出一种基于SNARKs的架构,使超轻客户端能将查询计算外包给不可信服务器并获得可信答案,同时利用全节点和区块链浏览器数据降低证明计算开销,并通过实验验证了可行性。

摘要:

区块链是实现去中心化信息系统的最强大技术之一。为了安全地享有区块链提供的所有保证,用户应当维护一个全节点,从而保持账本的本地副本持续更新。这使得用户能够在本地验证交易、智能合约状态,并基于这些数据计算任意信息。然而,出于显而易见的实际原因,很大一部分基于区块链的信息系统由依赖客户端的用户组成,这些客户端仅通过服务器访问存储在区块链中的数据,而不验证所接收内容的正确性。在一些重要的应用场景中,用户的特定应用查询只能由极少数服务器回答,有时这些服务器甚至全部属于同一组织。这显然重新引入了单点故障问题。在这项工作中,我们提出了一种架构,允许超轻客户端(即不希望下载相关交易的客户端)将查询计算外包给一个(可能不可信的)服务器,同时获得可信的答案。我们的架构依赖于SNARKs的能力,并通过使用从全节点和区块链浏览器获取的数据,可能利用智能合约的存在,使SNARKs的计算更加轻量。我们在具体场景上的实验评估证实了该架构的可行性。我们的工作为基于区块链的信息系统铺平了道路,使其即使在用户依赖常见的超轻客户端(如智能手机)时,也能保持去中心化和可靠性。

英文摘要:

Blockchains are among the most powerful technologies to realize decentralized information systems. In order to safely enjoy all guarantees provided by a blockchain, one should maintain a full node, therefore maintaining an updated local copy of the ledger. This allows one to locally verify transactions, states of smart contracts, and to compute any information over them. Unfortunately, for obvious practical reasons, a very large part of blockchain-based information systems consists of users relying on clients that access data stored in blockchains only through servers, without verifying what is received. In notable use cases, the user has application-specific queries that can be answered only by very few servers, sometimes all belonging to the same organization. This clearly re-introduces a single point of failure. In this work we present an architecture allowing superlight clients (i.e., clients that do not want to download the involved transactions) to outsource the computation of a query to a (possibly untrusted) server, receiving a trustworthy answer. Our architecture relies on the power of SNARKs and makes them lighter to compute by using data obtained from full nodes and blockchain explorers, possibly leveraging the existence of smart contracts. The viability of our architecture is confirmed by an experimental evaluation on concrete scenarios. Our work paves the road towards blockchain-based information systems that remain decentralized and reliable even when users rely on common superlight clients (e.g., smartphones).

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑