Towards Automatic Smart-contract Codes Classification by Means of Word Embedding Model and Transaction Information

Bu-Tian HUANG,Qi LIU,Qin-Ming HE,Zhen-Guang LIU,Jian-Hai CHEN
DOI: https://doi.org/10.16383/j.aas.2017.c160655
2017-01-01
Abstract:As an innovative extension of the blockchain technology,smart contract enables users to implement personalized 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 the intrinsic logic of the contract.Extensive experiments have verified the effectiveness of our proposed system.
What problem does this paper attempt to address?