arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.01459cs.CR
收藏

无条件安全的轻客户端

Unconditionally Safe Light Client

Niusha Moshrefi, Peiyao Sheng, Soubhik Deb, Sreeram Kannan, Pramod Viswanath

AI总结:

本文针对PoS区块链轻客户端提出形式化加密经济安全与受保安全机制,通过权益罚没实现无条件保护,并实现可编程安全定制,在低成本实现下支持客户端按需选择延迟与保险成本的最优权衡。

摘要:

区块链应用通常依赖轻量级客户端来高效地访问和验证链上数据,而无需运行资源密集型的全节点。这些轻客户端必须保持稳健的安全性,以保护构建于其上的应用程序用户的区块链完整性,并以最少的资源和较低的延迟实现这一目标。此外,不同的应用具有不同的安全需求。本文聚焦于在权益证明(Proof-of-Stake,PoS)区块链背景下解决这两个关键需求,并识别实现每个轻客户端定制化、最优安全性的基本成本-延迟权衡。PoS区块链的关键安全保证是经济性的(由“权益”所隐含)。在本文中,我们将这种加密经济安全性形式化到轻客户端,确保破坏提供给轻客户端的数据的成本必须超过潜在利润,从而在经济上威慑恶意行为者。我们进一步为轻客户端引入“受保”加密经济安全性,通过归因对抗行为并随之罚没权益来提供无条件保护。权益的可分割性和可互换性促进了可编程安全,允许根据不同应用的具体需求定制安全级别和保险金额。我们在不到1000行的Solidity和TypeScript代码中实现了这些协议,并评估了其gas成本、延迟和计算开销。例如,对于一笔价值3.2万美元的交易,轻客户端可以在零成本且延迟5小时与即时确认且保险成本7.45美元之间进行选择。因此,客户端可以在延迟-成本权衡谱上选择最符合其需求的最优点。轻客户端需要可忽略的存储空间,并且面临最小的计算成本。

英文摘要:

Blockchain applications often rely on lightweight clients to access and verify on-chain data efficiently without the need to run a resource-intensive full node. These light clients must maintain robust security to protect the blockchain's integrity for users of applications built upon it, achieving this with minimal resources and without significant latency. Moreover, different applications have varying security needs. This work focuses on addressing these two key requirements in the context of Proof-of-Stake (PoS) blockchains and identifying the fundamental cost-latency trade-offs to achieve tailored, optimal security for each light client. The key security guarantee of PoS blockchains is economic (implied by the "stake"). In this paper we formalize this cryptoeconomic security to light clients, ensuring that the cost of corrupting the data provided to light clients must outweigh the potential profit, thereby economically deterring malicious actors. We further introduce "insured" cryptoeconomic security to light clients, providing unconditional protection via the attribution of adversarial actions and the consequent slashing of stakes. The divisible and fungible nature of stake facilitates programmable security, allowing for customization of the security level and insurance amount according to the specific needs of different applications. We implemented the protocols in less than 1000 lines of Solidity and TypeScript code and evaluated their gas cost, latency, and the computational overhead. For example, for a transaction with value of \$32k, the light client can choose between zero cost with a latency of 5 hours or instant confirmation with an insurance cost of \$7.45. Thus, the client can select the optimal point on the latency-cost trade-off spectrum that best aligns with its needs. Light clients require negligible storage and face minimal computational costs,...

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

↑