基于语义嵌入模型与交易信息的智能合约自动分类系统
作为区块链技术的一个突破性扩展,智能合约允许用户在区块链上实现个性化的代码逻辑从而使得区块链技术更加的简单易用.在智能合约代码信息迅速增长的背景下,如何管理和组织海量智能合约代码变得更具挑战性.基于人工智能技术的代码分类系统能根据代码的文本信息自动分门别类,从而更好地帮助人们管理和组织代码的信息.本文以Ethereum平台上的智能合约为例,鉴于词嵌入模型可以捕获代码的语义信息,提出一种基于词嵌入模型的智能合约分类系统.另外,每一个智能合约都关联着一系列交易,我们又通过智能合约的交易信息来更深入地了解智能合约的逻辑行为.据我们所知,本文是对智能合约代码自动分类问题的首次研究尝试.测试结果显示该系...
Saved in:
Published in | 自动化学报 Vol. 43; no. 9; pp. 1532 - 1543 |
---|---|
Main Author | |
Format | Journal Article |
Language | Chinese |
Published |
杭州云象网络技术有限公司 杭州 310012 中国%新加坡国立大学计算机学院 新加坡 119613 新加坡%浙江大学计算机科学与技术学院 杭州 310007 中国
2017
浙江大学计算机科学与技术学院 杭州 310007 中国 |
Subjects | |
Online Access | Get full text |
ISSN | 0254-4156 1874-1029 |
DOI | 10.16383/j.aas.2017.c160655 |
Cover
Summary: | 作为区块链技术的一个突破性扩展,智能合约允许用户在区块链上实现个性化的代码逻辑从而使得区块链技术更加的简单易用.在智能合约代码信息迅速增长的背景下,如何管理和组织海量智能合约代码变得更具挑战性.基于人工智能技术的代码分类系统能根据代码的文本信息自动分门别类,从而更好地帮助人们管理和组织代码的信息.本文以Ethereum平台上的智能合约为例,鉴于词嵌入模型可以捕获代码的语义信息,提出一种基于词嵌入模型的智能合约分类系统.另外,每一个智能合约都关联着一系列交易,我们又通过智能合约的交易信息来更深入地了解智能合约的逻辑行为.据我们所知,本文是对智能合约代码自动分类问题的首次研究尝试.测试结果显示该系统具有较为令人满意的分类性能. |
---|---|
Bibliography: | Smart contract, codes, transaction information, word embedding, neural network, long-short term memory As an innovative extension of the blockchain technology, smart contract enables users to implement person- alized logic. As such, blockchain technology becomes more simple and useful. However, due to the rapid increase of the amount of smart contract codes, managing smart contract codes is becoming much more challenging. Automatic code classifier, which rests on the machine learning methods, can automatically identify the categories of the codes so as to saves a lot of human efforts. In this paper we investigate the smart contract codes of the Ethereum platform and propose a novel smart contract code classifier. To the best of our knowledge, this is the first exploration on automatic classification of the smart contract codes. The classifier is based on the word embedding model. Since each smart contract corresponds to a series of transactions, we further utilize the transactions in the contract to understand |
ISSN: | 0254-4156 1874-1029 |
DOI: | 10.16383/j.aas.2017.c160655 |