arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1809.01326cs.DC
收藏

一种高效的智能合约乐观并发执行框架

An Efficient Framework for Optimistic Concurrent Execution of Smart Contracts

Parwat Singh Anjana, Sweta Kumari, Sathya Peri, Sachin Rathor, Archit Somani

摘要:

以太坊等区块链平台通过用户定义的脚本(称为智能合约)在区块中执行复杂的交易。为了将正确的区块添加到区块链中,矿工按顺序执行智能合约的这些交易。之后,验证器会连续地重新执行区块的智能合约交易来验证它。如果验证成功,那么区块将使用共识协议添加到区块链中,矿工将获得激励。在当前的多核处理器时代,通过采用事务的串行执行,矿工和验证器无法正确利用核心,因此吞吐量很差。通过将并发授权给智能合约执行,我们可以实现更高的效率和更高的吞吐量。在这个提案中,我们开发了一种新颖而有效的技术,使用乐观的软件事务存储器系统(STM)由矿工并发执行智能合约交易。矿工提出了一个块,它由事务集,冲突图,前一个块的哈希值和每个共享数据对象的最终状态组成。之后,我们提出了并发验证器,它在矿工给出的冲突图的帮助下,并发地和确定性地重新执行相同的智能合约,并验证最终状态。在成功验证后,建议的区块被添加到区块链中,矿工获得激励。我们从solidity文档中考虑一个基准。我们使用基本时间戳排序(BTO)和多版本时间戳排序(MVTO)协议作为乐观STM同时执行智能合约交易。BTO和MVTO矿机的平均加速比分别是串行矿机的3.6倍和3.7倍。BTO和MVTO验证器分别比串行验证器的平均性能高出40.8倍和47.1倍。

英文摘要:

Blockchain platforms such as Ethereum and several others execute complex transactions in blocks through user-defined scripts known as smart contracts. To append a correct block into blockchain, miners execute these transactions of smart contracts sequentially. Later the validators serially re-execute the smart contract transactions of the block to validate it. If validation is successful then the block is added to the blockchain using a consensus protocol and miner gets the incentive. In the current era of multi-core processors, by employing the serial execution of the transactions, the miners and validators fail to utilize the cores properly and as a result, have poor throughput. By entitling concurrency to smart contracts execution, we can achieve better efficiency and higher throughput. In this proposal, we develop a novel and efficient technique to execute the smart contract transactions concurrently by miner using optimistic Software Transactional Memory systems (STMs). The miner proposes a block which consists of the set of transactions, conflict graph, hash of previous block and final state of each shared data-objects. Later, we propose concurrent validator which re-executes the same smart contracts concurrently and deterministically with the help of conflict graph given by miner and verifies the final states. On successful validation, proposed block appended into the blockchain and miner gets the incentive. We consider a benchmarks from solidity documentation. We execute the smart contract transactions concurrently using Basic Time stamp Ordering (BTO) and Multi-Version Time stamp Ordering (MVTO) protocols as optimistic STMs. BTO and MVTO miner achieves 3.6x and 3.7x average speedups over serial miner respectively. BTO and MVTO validator outperform average 40.8x and 47.1x than serial validator respectively.

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

↑