SmartEmbed: A tool for clone and bug detection in Smart Contracts through structural code embeddings

Project Abstract

In this paper, we propose a web service tool, named SMARTEMBED, which can help Solidity developers to find repetitive contract code and clone-related bugs in smart contracts. Our tool is based on code embeddings and similarity checking techniques. When applied to more than 22K solidity contracts collected from the Ethereum blockchain, we found that the clone ratio of solidity code is close to 90%, much higher than traditional software, and more than 1,000 clone-related bugs can be identified efficiently and accurately based on our small bug database.

Tool: SMARTEMBED

Tutorial Video: https://youtu.be/o9ylyOpYFq8

Papers: 

Read the full project summary here


Project Lead

  • Zhipeng Gao, PhD Candidate

Project Supervisors

  • Prof. Lingxiao Jiang (Singapore Management University)
  • Prof. David Lo (Singapore Management University)
  • Prof. John Grundy