Towards Analyzing the Complexity Landscape of Solidity Based Ethereum Smart Contracts

Author:

Hegedűs PéterORCID

Abstract

Blockchain-based decentralized cryptocurrency platforms are currently one of the hottest topics in technology. Although most of the interest is generated by cryptocurrency related activities, it is becoming apparent that a much wider spectrum of applications can leverage the blockchain technology. The primary concepts enabling such general use of the blockchain are the so-called smart contracts, which are special programs that run on the blockchain. One of the most popular blockchain platforms that supports smart contracts is Ethereum. As smart contracts typically handle money, ensuring their low number of faults and vulnerabilities are essential. To aid smart contract developers and help to mature the technology, we need analysis tools and studies for smart contracts. As an initiative for this, we propose the adoption of some well-known OO metrics for Solidity smart contracts. Furthermore, we analyze more than 40 thousand Solidity source files with our prototype tool. The results suggest that smart contract programs are short, neither overly complex nor coupled too much, do not rely heavily on inheritance, and either quite well-commented or not commented at all. Moreover, smart contracts could benefit from an external library and dependency management mechanism, as more than 85% of the defined libraries in Solidity files code the same functionalities.

Funder

Emberi Eroforrások Minisztériuma

Publisher

MDPI AG

Reference41 articles.

1. Bitcoin: A Peer-to-Peer Electronic Cash Systemhttps://bitcoin.org/bitcoin.pdf

2. Nick Szabo—The idea of smart contractshttp://www.fon.hum.uva.nl/rob/Courses/InformationInSpeech/CDROM/Literature/LOTwinterschool2006/szabo.best.vwh.net/smart_contracts_idea.html

3. Ethereum White Paperhttps://github.com/ethereum/wiki/wiki/White-Paper

4. A Next-Generation Smart Contract and Decentralized Application Platformhttps://cryptorating.eu/whitepapers/Ethereum/Ethereum_white_paper.pdf

5. Solidity Programming;Dannen,2017

Cited by 37 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Sociotechnical Dynamics in Open Source Smart Contract Repositories: An Exploratory Data Analysis of Curated High Market Value Projects;Proceedings of the 20th International Conference on Predictive Models and Data Analytics in Software Engineering;2024-07-10

2. Functional suitability assessment of smart contracts: A survey and first proposal;Journal of Software: Evolution and Process;2023-11-28

3. A Secure Blockchain-based Authentication and Key Agreement Protocol for 5G Roaming;2023 IEEE 22nd International Conference on Trust, Security and Privacy in Computing and Communications (TrustCom);2023-11-01

4. Smart contracts software metrics: A first study;PLOS ONE;2023-04-12

5. TP-Detect: trigram-pixel based vulnerability detection for Ethereum smart contracts;Multimedia Tools and Applications;2023-03-30

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3