Smart contract languages: A comparative analysis
Smart contracts have played a pivotal role in the evolution of blockchains and Decentralized Applications (DApps). As DApps continue to gain widespread adoption, multiple smart contract languages have been and are being made available to developers, each with its distinctive features, strengths, and weaknesses. In this paper, we examine the smart contract languages used in major blockchain platforms, with the goal of providing a comprehensive assessment of their main properties. Our analysis targets the programming languages rather than the underlying architecture: as a result, while we do consider the interplay between language design and blockchain model, our main focus remains on language-specific features such as usability, programming style, safety and security. To conduct our assessment, we propose an original benchmark which encompasses a wide, yet manageable, spectrum of key use cases that cut across all the smart contract languages under examination. • We give an abstract overview of smart contract platforms, discussing the impact of different design choices. • We illustrate by examples how different design choices give rise to different programming styles for smart contracts. • We consider 6 leading smart contract languages: Solidity (Ethereum), Rust (Solana), Aiken (Cardano), PyTeal (Algorand), Move (Aptos), SmartPy (Tezos). • We develop an open-source benchmark of use cases of smart contracts, implemented in all the languages in our selection. • Based on our benchmark, we evaluate smart contract languages focussing on their security, code readability, usability, and functionalities.
Authors
- Roberto Zunino (ORCID: https://orcid.org/0000-0002-9630-429X)
- Sabina Rossi (ORCID: https://orcid.org/0000-0002-1189-4439)
- Andrea Pinna (ORCID: https://orcid.org/0000-0002-7530-0521)
- Silvia Crafà (ORCID: https://orcid.org/0000-0003-0993-4734)
- Massimo Bartoletti (ORCID: https://orcid.org/0000-0003-3796-9774)
- Alvise Spanò (ORCID: https://orcid.org/0000-0002-6905-2736)
- Roberto Tonelli (ORCID: https://orcid.org/0000-0002-9090-7698)
- Michele Bugliesi (ORCID: https://orcid.org/0000-0002-4567-3351)
- Lorenzo Benetollo
- Roberto Pettinau
- Stefano Salis
- Giacomo Dal Sasso
- M.R. Piras
- Viacheslav TKACHENKO
Institutions
- University of Padua (IT)
- Ca' Foscari University of Venice (IT)
- University of Cagliari (IT)
- University of Trento (IT)
- Technical University of Denmark (DK)
Publication Details
- Journal
- Future Generation Computer Systems
- Published
- 2024-10-22
- DOI
- https://doi.org/10.1016/j.future.2024.107563
- Citations
- 19
- Primary Topic
- Blockchain Technology Applications and Security
- Type
- article
- Field-Weighted Citation Impact
- 14.80
Funders
- European Commission
- Ministero dell'Università e della Ricerca