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

关于令牌智能合约的同步能力

On the Synchronization Power of Token Smart Contracts

Orestis Alpos, Christian Cachin, Giorgia Azzurra Marson, Luca Zanolini

摘要:

现代区块链支持加密货币以外的各种分布式应用程序,包括智能合约-允许用户以分布式和分散的方式执行任意代码。无论其预期的应用如何,区块链平台都隐含地假设正确执行智能合约的共识,因此要求所有交易都是完全有序的。直到最近才认识到,共识对于防止加密货币的双重支出是不必要的(Guerraoui等人,#21019;,与一般人的看法相反。这个结果表明,当前的实现可能会牺牲效率和可伸缩性,因为它们比实际需要的更紧密地同步事务。在这项工作中,我们研究了以太坊ERC 20令牌合约的同步要求,ERC 20令牌合约是最广泛采用的智能联系人之一。也就是说,我们将智能合约令牌建模为并发对象,并分析其共识数作为同步功率的度量。我们发现,与标准加密货币相比,ERC 20代币支持的更丰富的方法集会导致严格的更强同步要求。更令人惊讶的是,ERC 20令牌的同步能力取决于对象的状态,因此可以通过方法调用进行修改。为了证明这一结果,我们开发了一个专用的框架来表达对象的状态如何影响所需的同步级别。我们的研究结果表明,ERC 20代币以及其他代币标准比普通加密货币更强大,更通用,并且受到动态要求的影响。开发利用这些动态需求的特定同步协议将为更强大和可扩展的区块链平台铺平道路。

英文摘要:

Modern blockchains support a variety of distributed applications beyond cryptocurrencies, including smart contracts -- which let users execute arbitrary code in a distributed and decentralized fashion. Regardless of their intended application, blockchain platforms implicitly assume consensus for the correct execution of a smart contract, thus requiring that all transactions are totally ordered. It was only recently recognized that consensus is not necessary to prevent double-spending in a cryptocurrency (Guerraoui et al., PODC'19), contrary to common belief. This result suggests that current implementations may be sacrificing efficiency and scalability because they synchronize transactions much more tightly than actually needed. In this work, we study the synchronization requirements of Ethereum's ERC20 token contract, one of the most widely adopted smart contacts. Namely, we model a smart-contract token as a concurrent object and analyze its consensus number as a measure of synchronization power. We show that the richer set of methods supported by ERC20 tokens, compared to standard cryptocurrencies, results in strictly stronger synchronization requirements. More surprisingly, the synchronization power of ERC20 tokens depends on the object's state and can thus be modified by method invocations. To prove this result, we develop a dedicated framework to express how the object's state affects the needed synchronization level. Our findings indicate that ERC20 tokens, as well as other token standards, are more powerful and versatile than plain cryptocurrencies, and are subject to dynamic requirements. Developing specific synchronization protocols that exploit these dynamic requirements will pave the way towards more robust and scalable blockchain platforms.

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

↑