A Local-First Approach for Green Smart Contracts

IF 2.2
Q. Stokkink, J. Pouwelse
{"title":"A Local-First Approach for Green Smart Contracts","authors":"Q. Stokkink, J. Pouwelse","doi":"10.1145/3607196","DOIUrl":null,"url":null,"abstract":"Shared code in blockchains, known as smart contracts, stands to replace important parts of our digital governance and financial infrastructure. The permissionless execution of smart contracts is tightly coupled to cryptocurrencies and Proof-of-Work blockchains. As a result, smart contracts inherit the environmental impact of Proof-of-Work blockchains, like its energy consumption, carbon footprint, and electronic waste. The four concepts of relaxed consistency, strong identities, probabilistic consensus, and the use of liabilities instead of assets may change the status quo. This work explores the integration of these concepts to decouple smart contracts from Proof-of-Work blockchains. By means of a local-first approach, that may expose users to inconsistent ephemeral contract states, the architecture of smart contracts can be transformed to become green. Because such contract states may be dropped, we base the interactions between users on liabilities. We propose a novel paradigm for smart contract architectures, named Green Smart Contracts, that is based on a local-first approach. Furthermore, we present and implement a prototype solution for this paradigm. We validate the need for a mechanism to resolve consistency violations by replaying the contract calls of a real smart contract. Our simulation shows that violations occur more often (13% of contract invocations) when using liabilities than when using a traditional blockchain (3% of contract invocations). However, we additionally validate that they can be avoided using a consensus mechanism, and our experiments show that a publish-subscribe messaging pattern uses the fewest messages to do so, though it may not be applicable for use cases that disallow the inherent imbalance in the messaging between peers. Our carbon emission estimation shows that a Green Smart Contract approach lowers carbon emissions by 52.31% when compared to the messaging behavior of a typical peer-to-peer blockchain with 1000 nodes.","PeriodicalId":380482,"journal":{"name":"Distributed Ledger Technologies: Research and Practice","volume":"7 1","pages":"0"},"PeriodicalIF":2.2000,"publicationDate":"2023-07-03","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Distributed Ledger Technologies: Research and Practice","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/3607196","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

Shared code in blockchains, known as smart contracts, stands to replace important parts of our digital governance and financial infrastructure. The permissionless execution of smart contracts is tightly coupled to cryptocurrencies and Proof-of-Work blockchains. As a result, smart contracts inherit the environmental impact of Proof-of-Work blockchains, like its energy consumption, carbon footprint, and electronic waste. The four concepts of relaxed consistency, strong identities, probabilistic consensus, and the use of liabilities instead of assets may change the status quo. This work explores the integration of these concepts to decouple smart contracts from Proof-of-Work blockchains. By means of a local-first approach, that may expose users to inconsistent ephemeral contract states, the architecture of smart contracts can be transformed to become green. Because such contract states may be dropped, we base the interactions between users on liabilities. We propose a novel paradigm for smart contract architectures, named Green Smart Contracts, that is based on a local-first approach. Furthermore, we present and implement a prototype solution for this paradigm. We validate the need for a mechanism to resolve consistency violations by replaying the contract calls of a real smart contract. Our simulation shows that violations occur more often (13% of contract invocations) when using liabilities than when using a traditional blockchain (3% of contract invocations). However, we additionally validate that they can be avoided using a consensus mechanism, and our experiments show that a publish-subscribe messaging pattern uses the fewest messages to do so, though it may not be applicable for use cases that disallow the inherent imbalance in the messaging between peers. Our carbon emission estimation shows that a Green Smart Contract approach lowers carbon emissions by 52.31% when compared to the messaging behavior of a typical peer-to-peer blockchain with 1000 nodes.
绿色智能合约的本地优先方法
区块链中的共享代码,被称为智能合约,将取代我们数字治理和金融基础设施的重要部分。智能合约的无许可执行与加密货币和工作量证明区块链紧密耦合。因此,智能合约继承了工作量证明区块链对环境的影响,如能源消耗、碳足迹和电子垃圾。宽松一致性、强同一性、概率共识和使用负债而不是资产这四个概念可能会改变现状。这项工作探讨了这些概念的集成,以将智能合约与工作量证明区块链解耦。通过本地优先的方法,可能会使用户暴露于不一致的临时合约状态,智能合约的架构可以转换为绿色。因为这样的契约状态可能会被丢弃,所以我们将用户之间的交互建立在责任的基础上。我们提出了一种新的智能合约架构范例,称为绿色智能合约,它基于本地优先的方法。此外,我们提出并实现了该范例的原型解决方案。我们通过重放真实智能合约的合约调用来验证需要一种机制来解决一致性违规。我们的模拟表明,与使用传统区块链(占合同调用的3%)相比,使用负债时发生违规的频率更高(占合同调用的13%)。然而,我们还验证了它们可以使用共识机制来避免,并且我们的实验表明,发布-订阅消息传递模式使用最少的消息来做到这一点,尽管它可能不适用于不允许对等体之间消息传递中固有不平衡的用例。我们的碳排放估计表明,与具有1000个节点的典型点对点区块链的消息传递行为相比,绿色智能合约方法可将碳排放量降低52.31%。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约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学术官方微信
小红书