Xiaoqi Li

Prof. Dr. Xiaoqi Li

orcid

Research Focus & Metrics

Academic Career Length

10Years (2017-Present)

(Calculated once Scilit publication data is synced: current year − year of first publication + 1)

Representative Publications

View All Publications
1 June 2020 in Future Generation Computer Systems
Verified
Journal Article
Closed access
Xiaoqi LiXiaoqi Li
Xiaoqi Li
PJPeng Jiang
Peng Jiang
TCTing Chen
Ting Chen
DLDaniel Luo
Daniel Luo
QWQiaoyan Wen
Qiaoyan Wen

1 February 2017
Verified
Conference Paper
Closed access
TCTing Chen
Ting Chen
Xiaoqi LiXiaoqi Li
Xiaoqi Li
DLDaniel Luo
Daniel Luo
XZXiaosong Zhang
Xiaosong Zhang
Smart contracts are full-fledged programs that run on blockchains (e.g., Ethereum, one of the most popular blockchains). In Ethereum, gas (in Ether, a cryptographic currency like Bitcoin) is the execution fee compensating the computing resources of miners for running smart contracts. However, we find that under-optimized smart contracts cost more gas than necessary, and therefore the creators or users will be overcharged. In this work, we conduct the first investigation on Solidity, the recommended compiler, and reveal that it fails to optimize gas-costly programming patterns. In particular, we identify 7 gas-costly patterns and group them to 2 categories. Then, we propose and develop GASPER, a new tool for automatically locating gas-costly patterns by analyzing smart contracts' bytecodes. The preliminary results on discovering 3 representative patterns from 4,240 real smart contracts show that 93.5%, 90.1% and 80% contracts suffer from these 3 patterns, respectively.

1 April 2018
Verified
Conference Paper
Closed access
TCTing Chen
Ting Chen
YZYuxiao Zhu
Yuxiao Zhu
ZLZihao Li
Zihao Li
JCJiachi Chen
Jiachi Chen
Xiaoqi LiXiaoqi Li
Xiaoqi Li
XZXiaosong Zhange
Xiaosong Zhange
Being the largest blockchain with the capability of running smart contracts, Ethereum has attracted wide attention and its market capitalization has reached 20 billion USD. Ethereum not only supports its cryptocurrency named Ether but also provides a decentralized platform to execute smart contracts in the Ethereum virtual machine. Although Ether's price is approaching 200 USD and nearly 600K smart contracts have been deployed to Ethereum, little is known about the characteristics of its users, smart contracts, and the relationships among them. To fill in the gap, in this paper, we conduct the first systematic study on Ethereum by leveraging graph analysis to characterize three major activities on Ethereum, namely money transfer, smart contract creation, and smart contract invocation. We design a new approach to collect all transaction data, construct three graphs from the data to characterize major activities, and discover new observations and insights from these graphs. Moreover, we propose new approaches based on cross-graph analysis to address two security issues in Ethereum. The evaluation through real cases demonstrates the effectiveness of our new approaches.

8 December 2017
Verified
Book Chapter
Closed access
PDF file
TCTing Chen
Ting Chen
Xiaoqi LiXiaoqi Li
Xiaoqi Li
YWYing Wang
Ying Wang
JCJiachi Chen
Jiachi Chen
ZLZihao Li
Zihao Li
XZXiaosong Zhang
Xiaosong Zhang

27 May 2018
Verified
Conference Paper
Open access
PDF file
TCTing Chen
Ting Chen
ZLZihao Li
Zihao Li
HZHao Zhou
Hao Zhou
JCJiachi Chen
Jiachi Chen
XLXiapu Luo
Xiapu Luo
XZXiaosong Zhang
Xiaosong Zhang

18 December 2024 in IEEE Transactions on Reliability
Verified
Journal Article
Closed access
ZLZongwei Li
Zongwei Li
WLWenkai Li
Wenkai Li
Xiaoqi LiXiaoqi Li
Xiaoqi Li
YZYuqing Zhang
Yuqing Zhang
The decentralized exchange (DEX) leverages smart contracts to trade digital assets for users on the blockchain. Developers usually develop several smart contracts into one project, implementing complex logic functions and multiple transaction operations. However, the interaction among these contracts poses challenges for developers analyzing the state logic. Due to the complex state logic in DEX projects, many critical state derailment defects have emerged in recent years. In this article, we conduct the first systematic study of state derailment defects in DEX. We define five categories of state derailment defects and provide detailed analyses of them. Furthermore, we propose a novel deep learning-based framework S tateGuard for detecting state derailment defects in DEX smart contracts. It leverages a smart contract deconstructor to deconstruct the contract into an abstract syntax tree (AST), from which five categories of dependency features are extracted. Next, it implements a graph optimizer to process the structured data. At last, the optimized data is analyzed by graph convolutional networks to identify potential state derailment defects. We evaluated S tateGuard through a dataset of 46 DEX projects containing 5671 smart contracts, and it achieved 94.25% F1-score. In addition, in a comparison experiment with state-of-the-art, S tateGuard leads the F1-score by 6.29%. To further verify its practicality, we used S tateGuard to audit real-world contracts and successfully authenticated multiple novel common vulnerabilities and exposures.