面向以太坊的智能合约自动生成方法研究与实现  被引量:8

Research and implementation of a smart automatic contract generation method for Ethereum

在线阅读下载全文

作  者:高一琛 赵斌[2] 张召 GAO Yichen;ZHAO Bin;ZHANG Zhao(School of Data Science and Engineering,East China Normal University,Shanghai 200062,China;School of Computer Science and Technology,Nanjing Normal University,Nanjing 210046,China)

机构地区:[1]华东师范大学数据科学与工程学院,上海200062 [2]南京师范大学计算机科学与技术学院,南京210046

出  处:《华东师范大学学报(自然科学版)》2020年第5期21-32,共12页Journal of East China Normal University(Natural Science)

基  金:国家自然科学基金(U1811264,U1911203,61972152)。

摘  要:基于以太坊的智能合约已经广泛应用于各个领域,然而合约开发需要完备的专业领域知识和编程能力.针对智能合约编程友好性,本文提出了一种对于特定领域智能合约自动生成的方法.实现了对于智能合约的聚类分析以及交易类智能合约基本函数代码的生成,对于生成的代码采用BLEU以及SmartCheck进行检测,得到了较好的检测结果.采用MFC将生成的代码和UI控件链接,为用户提供友好的智能合约编程页面,实现智能合约的自动生成.方法生成的智能合约代码有一定的准确性,能够对智能合约的开发提供帮助.最后,通过一个案例分析验证了生成的智能合约的可用性.Smart contracts based on Ethereum have been widely used across various fields. The programming of smart contracts, however, requires professional developers with expertise in a special programming language;in other words, the developers must have professional domain knowledge in addition to programming ability. In this paper, a method for the automated generation of smart contracts for specific domains is proposed with the aim addressing the programming friendliness of smart contracts.The paper introduces cluster analysis of smart contracts and establishes the basic functional code for transactional type smart contracts. MFC is used to link the generated code with UI control and provide users with a friendly smart contract programming page;hence, the automatic generation of smart contracts is realized, thereby reducing the difficulty and cost of contract programming. Finally, a case study is presented to verify the availability of the generated smart contract.

关 键 词:智能合约 以太坊 区块链 

分 类 号:TP301[自动化与计算机技术—计算机系统结构]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象