STAN: Towards Describing Bytecodes of Smart Contract

07/19/2020
by   Xiaoqi Li, et al.
1

More than eight million smart contracts have been deployed into Ethereum, which is the most popular blockchain that supports smart contract. However, less than 1 for users to understand the functionality and internal mechanism of those closed-source contracts. Although a few decompilers for smart contracts have been recently proposed, it is still not easy for users to grasp the semantic information of the contract, not to mention the potential misleading due to decompilation errors. In this paper, we propose the first system named STAN to generate descriptions for the bytecodes of smart contracts to help users comprehend them. In particular, for each interface in a smart contract, STAN can generate four categories of descriptions, including functionality description, usage description, behavior description, and payment description, by leveraging symbolic execution and NLP (Natural Language Processing) techniques. Extensive experiments show that STAN can generate adequate, accurate, and readable descriptions for contract's bytecodes, which have practical value for users.

READ FULL TEXT
research
05/31/2021

A Bytecode-based Approach for Smart Contract Classification

With the development of blockchain technologies, the number of smart con...
research
07/09/2021

Why blockchain and smart contracts need semantic descriptions

We argue that there is a hierarchy of levels describing to that particul...
research
08/23/2018

Runtime verification in Erlang by using contracts

During its lifetime, a program suffers several changes that seek to impr...
research
04/13/2023

Smart Contract Upgradeability on the Ethereum Blockchain Platform: An Exploratory Study

Context: Smart contracts are computerized self-executing contracts that ...
research
03/16/2021

iContractBot: A Chatbot for Smart Contracts' Specification and Code Generation

Recently, Blockchain technology adoption has expanded to many applicatio...
research
07/05/2022

Can We Effectively Use Smart Contracts to Stipulate Time Constraints?

Smart contracts provide the means to stipulate rules of interaction betw...
research
11/19/2022

Contract-Backed Digital Cash

We characterize digital cash as the digital equivalent of physical cash:...

Please sign up or login with your details

Forgot password? Click here to reset