{"title":"Some Blockchain Design Patterns for Overcoming Immutability, Chain-Boundedness, and Gas Fees","authors":"Valerio Mandarino, G. Pappalardo, E. Tramontana","doi":"10.1109/ACCC58361.2022.00018","DOIUrl":null,"url":null,"abstract":"Ethereum network has introduced an important innovation to blockchain technology that has deeply changed the world of blockchains and cryptocurrencies: Turing-complete smart contracts. Thanks to smart contracts it is possible to mint fungible and non-fungible tokens, manage decentralized organizations and offer services such as digital identity, advertisement, time commitments, decentralized exchanges, etc. However, smart contract development is not free from challenges. This paper analyses a set of design patterns that have been documented and groups them according to related smart contracts' weaknesses. Moreover, two novel solutions are presented in the form of design patterns. The first is a micro architecture that deals with a treasure reserve and aims at reducing gas consumption when having to update the code of a smart contract. The second presents a solution for packing bits each representing a Boolean value.","PeriodicalId":285531,"journal":{"name":"2022 3rd Asia Conference on Computers and Communications (ACCC)","volume":"21 7 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2022-12-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"1","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2022 3rd Asia Conference on Computers and Communications (ACCC)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/ACCC58361.2022.00018","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 1
Abstract
Ethereum network has introduced an important innovation to blockchain technology that has deeply changed the world of blockchains and cryptocurrencies: Turing-complete smart contracts. Thanks to smart contracts it is possible to mint fungible and non-fungible tokens, manage decentralized organizations and offer services such as digital identity, advertisement, time commitments, decentralized exchanges, etc. However, smart contract development is not free from challenges. This paper analyses a set of design patterns that have been documented and groups them according to related smart contracts' weaknesses. Moreover, two novel solutions are presented in the form of design patterns. The first is a micro architecture that deals with a treasure reserve and aims at reducing gas consumption when having to update the code of a smart contract. The second presents a solution for packing bits each representing a Boolean value.