Design Patterns for Gas Optimization in Ethereum

Lodovica Marchesi, M. Marchesi, Giuseppe Destefanis, G. Barabino, Danilo Tigano
{"title":"Design Patterns for Gas Optimization in Ethereum","authors":"Lodovica Marchesi, M. Marchesi, Giuseppe Destefanis, G. Barabino, Danilo Tigano","doi":"10.1109/IWBOSE50093.2020.9050163","DOIUrl":null,"url":null,"abstract":"Blockchain technology is an emerging technology that allows new forms of decentralized architectures, designed to generate trust among users, without the intervention of mediators or knowledge between the parties. Since 2015, thanks to the introduction of Smart Contracts by Ethereum, it is possible to run programs on the blockchain, greatly extending the potential of this technology. The programming of Smart Contract, through the Solidity language is different from the traditional one. First of all, any action that requires to modify the blockchain costs gas, which corresponds to a fraction of the currency used by that given blockchain, and therefore to real money. Gas optimization is a unique challenge in this context and has obvious implications. This document aims to provide a set of design patterns and tips to help gas saving in developing Smart Contracts on Ethereum. The provided patterns are presented divided into five main categories, based on their features.","PeriodicalId":198392,"journal":{"name":"2020 IEEE International Workshop on Blockchain Oriented Software Engineering (IWBOSE)","volume":"50 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2020-02-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"52","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2020 IEEE International Workshop on Blockchain Oriented Software Engineering (IWBOSE)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/IWBOSE50093.2020.9050163","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 52

Abstract

Blockchain technology is an emerging technology that allows new forms of decentralized architectures, designed to generate trust among users, without the intervention of mediators or knowledge between the parties. Since 2015, thanks to the introduction of Smart Contracts by Ethereum, it is possible to run programs on the blockchain, greatly extending the potential of this technology. The programming of Smart Contract, through the Solidity language is different from the traditional one. First of all, any action that requires to modify the blockchain costs gas, which corresponds to a fraction of the currency used by that given blockchain, and therefore to real money. Gas optimization is a unique challenge in this context and has obvious implications. This document aims to provide a set of design patterns and tips to help gas saving in developing Smart Contracts on Ethereum. The provided patterns are presented divided into five main categories, based on their features.
以太坊Gas优化的设计模式
区块链技术是一种新兴技术,它允许新形式的去中心化架构,旨在在用户之间产生信任,而不需要中介机构的干预或各方之间的知识。自2015年以来,由于以太坊引入了智能合约,可以在区块链上运行程序,大大扩展了这项技术的潜力。智能合约通过Solidity语言进行编程,与传统的编程方式有所不同。首先,任何需要修改区块链的行动都需要花费gas,这相当于给定区块链使用的货币的一小部分,因此是真正的货币。在这种情况下,天然气优化是一个独特的挑战,具有明显的意义。本文档旨在提供一套设计模式和技巧,以帮助在以太坊开发智能合约时节省天然气。所提供的模式根据其特性分为五个主要类别。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信