论文标题

Stan:描述智能合约的字节码

STAN: Towards Describing Bytecodes of Smart Contract

论文作者

Li, Xiaoqi, Chen, Ting, Luo, Xiapu, Zhang, Tao, Yu, Le, Xu, Zhou

论文摘要

超过800万个智能合约已部署到以太坊,这是支持智能合约的最受欢迎的区块链。但是,不到1%的已部署智能合约是开源的,用户很难了解这些封闭源合同的功能和内部机制。尽管最近提出了一些针对智能合约的分解器,但用户仍然不容易掌握合同的语义信息,更不用说由于解剖学错误而引起的潜在误导性。在本文中,我们建议第一个名为Stan的系统,以生成智能合约字节码的描述,以帮助用户理解它们。特别是,对于智能合约中的每个接口,Stan可以通过利用符号执行和NLP(自然语言处理)技术来生成四类描述,包括功能描述,用法描述,行为描述和付款描述。广泛的实验表明,Stan可以对合同的字节码产生足够,准确和可读的描述,这些字节对用户具有实际价值。

More than eight million smart contracts have been deployed into Ethereum, which is the most popular blockchain that supports smart contract. However, less than 1% of deployed smart contracts are open-source, and it is difficult for users to understand the functionality and internal mechanism of those closed-source contracts. Although a few decompilers for smart contracts have been recently proposed, it is still not easy for users to grasp the semantic information of the contract, not to mention the potential misleading due to decompilation errors. In this paper, we propose the first system named STAN to generate descriptions for the bytecodes of smart contracts to help users comprehend them. In particular, for each interface in a smart contract, STAN can generate four categories of descriptions, including functionality description, usage description, behavior description, and payment description, by leveraging symbolic execution and NLP (Natural Language Processing) techniques. Extensive experiments show that STAN can generate adequate, accurate, and readable descriptions for contract's bytecodes, which have practical value for users.

扫码加入交流群

加入微信交流群

微信交流群二维码

扫码加入学术交流群,获取更多资源