SolidityCheck:通过正则表达式快速检测智能合约问题
SolidityCheck : Quickly Detecting Smart Contract Problems Through Regular Expressions
摘要:
作为近年来蓬勃发展的区块链平台,以太坊与比特币不同的是,以太坊将智能合约引入区块链,Solidity是目前最成熟、应用最广泛的智能合约程序设计语言之一,用于编写智能合约并部署在区块链上。但是,区块链中的数据一旦写入,就无法修改。以太坊智能合约存储在区块链中,这使得智能合约无法再修复重入漏洞或整数溢出问题等代码问题。目前,仍然缺乏一个高效和有效的方法来检测这些问题的Solidity。本文首先对Solidity中可能存在的问题进行了分类,然后提出了一种针对Solidity的智能合约问题检测方法,即SolidityCheck。该方法使用正则表达式来定义有问题语句的特征,并使用正则匹配和程序插装来防止或检测问题。最后,大量的实验表明,SolidityCheck优于现有的方法。
英文摘要:
As a blockchain platform that has developed vigorously in recent years, Ethereum is different from Bitcoin in that it introduces smart contracts into blockchain.Solidity is one of the most mature and widely used smart contract programming language,which is used to write smart contracts and deploy them on blockchain. However, once the data in the blockchain is written, it cannot be modified. Ethereum smart contract is stored in the block chain, which makes the smart contract can no longer repair the code problems such as re-entrancy vulnerabilities or integer overflow problems. Currently, there still lacks of an efficient and effective approach for detecting these problems in Solidity. In this paper, we first classify all the possible problems in Solidity, then propose a smart contract problem detection approach for Solidity, namely SolidityCheck. The approach uses regular expressions to define the characteristics of problematic statements and uses regular matching and program instrumentation to prevent or detect problems. Finally, a large number of experiments is performed to show that SolidityCheck is superior to existing approaches.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。