arrow
返回

An Annotation Assisted Smart Contracts Generation Method

delete2024-01-01
delete0
delete
OA
AI
C
Chen Yong
D
Defeng Hu
C
Chao Xu *
N
Nannan Chen
DOI:10.1109/ACCESS.2024.3386751delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
Smart contracts are rapidly applied in many fields, with their varied types and increasing complexity. A sharp increase in the method development demands seems to be certain. However, this type of development has its unique programming language and security requirements, making it difficult for regular software personnel to adapt quickly. It is important to realize that the development efficiency is application-specific and that getting this application issue solved is critical for its further development. To this end, we propose a new, automatic, and intelligent contract-generation method, based on code annotation. First of all, combined with the semantic annotation information of smart contract code association, a clustering analysis model is built to realize fast and accurate clustering with functions similar to smart contracts. Then, based on the Char-RNN network, a multi-level and automatic generation method of intelligent contract knowledge base is built to realize the automatic generation at different levels, such as the contract layer, function layer, and interface layer. Finally, by using text matching technology and by calculating the semantic similarity of the user text demands as well as the smart contract knowledge base annotation, the relevant contract code is automatically extracted for users to choose, with the aims of improving the method efficiency and to meet the needs of different users. To test the effectiveness of the method, with the aid of bilingual quality assessment BLEU and Mythril, VaaS, and other code security tools for evaluation are used and results are compared with the existing method. The generated code BLEU average score was increased by 27% and the average accuracy was increased by 11.5%. Therefore, the smart contract generated by our method is relatively accurate and reliable.
Keyword:
Smart contract
annotation
char-RNN
multi-level code generation

期刊

IEEE Access 封面图
IEEE Access
IF:
3.6
论文数:
9.8W
被引数:
29.4W

机构

Nanjing Audit University 封面图
Nanjing Audit University
学者数:
1.0K
论文数: 1.3K
被引数: 1.3K
引用论文

引用论文

Genotoxicity studies on the organophosphorus insecticide chloracetophone
err1990-03-01
err0
PREAI
errA. Kappas; R. Vachkova; S. Lalchev; M. Tzoneva; M. Markaki
err分享
err收藏
Penetration testing framework for smart contract Blockchain
err2020-09-05
err57
PREAI
errBhardwaj, Akashdeep; Shah, Syed Bilal Hussian; Shankar, Achyut; Alazab, Mamoun; Kumar, Manoj; Gadekallu, Thippa Reddy
err分享
err收藏
Autophagy protects against PI3K/Akt/mTOR-mediated apoptosis of spinal cord neurons after mechanical injury
err2017-08-01
err0
PREAI
errZhenYu Wang; LinQuan Zhou; XiaoTing Zheng; Gang Chen; RongFeng Pan; JinHuang Li; WenGe Liu
err分享
err收藏
Smart Contract Languages: A Multivocal Mapping Study
err2021-01-02
err24
errOAAI
errJesus Varela-Vaca, Angel; Reina Quintero, Antonia M.
err分享
err收藏
Recognition of offline handwritten Urdu characters using RNN and LSTM models
err2022-06-17
err13
PREAI
errMisgar, Muzafar Mehraj; Mushtaq, Faisel; Khurana, Surinder Singh; Kumar, Munish
err分享
err收藏
学者 查看更多内容