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.
Talk to us
Join us for a 30 min session where you can share your feedback and ask us any queries you have
Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.