Journal of East China Normal University(Natural Science) ›› 2020, Vol. 2020 ›› Issue (5): 21-32.doi: 10.3969/j.issn.1000-5641.202091015

• Data System • Previous Articles     Next Articles

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

GAO Yichen1, ZHAO Bin2, ZHANG Zhao1   

  1. 1. School of Data Science and Engineering, East China Normal University, Shanghai 200062, China;
    2. School of Computer Science and Technology, Nanjing Normal University, Nanjing 210046, China
  • Received:2020-08-16 Published:2020-09-24

Abstract: 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.

Key words: smart contract, Ethereum, blockchain

CLC Number: