Strengthening Smart Contracts to Handle Unexpected Situations

Shuze Liu, Farhad Mohsin, Lirong Xia, O. Seneviratne
{"title":"Strengthening Smart Contracts to Handle Unexpected Situations","authors":"Shuze Liu, Farhad Mohsin, Lirong Xia, O. Seneviratne","doi":"10.1109/DAPPCON.2019.00034","DOIUrl":null,"url":null,"abstract":"Decentralized application users may face unexpected situations that the smart contract implementing the application should handle, but cannot, because the smart contract cannot be modified once it is deployed. Therefore, we need 'stronger' smart contracts with flexible structures that are resilient in such unexpected situations. In this paper, we propose a generic mechanism to strengthen smart contracts and handle possible unexpected situations. Given a smart contract, this mechanism automatically generates an action list which offers actions as interfaces to change parameters of smart contracts and a voting system that utilizes a limited voter group randomly chosen from the peers. Each action in the action list can change a corresponding parameter of smart contracts. The actions, when approved by the majority, are executed to change the parameters. When users face unexpected situations in a transaction, they choose some actions as the solution and pass them to the voting system. Since a smart contract has finite parameters, there are finite actions. By arranging and combining these actions, our mechanism offers solutions that can handle wide-ranging unexpected situations. Also, to execute a solution, the majority of voters need to approve it, thus not violating the protocol of the original smart contract. Voters are rewarded based on quadratic rules for peer prediction, which makes telling true preferences the only way to maximize rewards. Using machine learning, we predict users' preferences based on the voting records. The predictions are provided as default values for future votes to avoid users' need to vote manually each time.","PeriodicalId":434018,"journal":{"name":"2019 IEEE International Conference on Decentralized Applications and Infrastructures (DAPPCON)","volume":"32 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2019-04-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"6","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2019 IEEE International Conference on Decentralized Applications and Infrastructures (DAPPCON)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/DAPPCON.2019.00034","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 6

Abstract

Decentralized application users may face unexpected situations that the smart contract implementing the application should handle, but cannot, because the smart contract cannot be modified once it is deployed. Therefore, we need 'stronger' smart contracts with flexible structures that are resilient in such unexpected situations. In this paper, we propose a generic mechanism to strengthen smart contracts and handle possible unexpected situations. Given a smart contract, this mechanism automatically generates an action list which offers actions as interfaces to change parameters of smart contracts and a voting system that utilizes a limited voter group randomly chosen from the peers. Each action in the action list can change a corresponding parameter of smart contracts. The actions, when approved by the majority, are executed to change the parameters. When users face unexpected situations in a transaction, they choose some actions as the solution and pass them to the voting system. Since a smart contract has finite parameters, there are finite actions. By arranging and combining these actions, our mechanism offers solutions that can handle wide-ranging unexpected situations. Also, to execute a solution, the majority of voters need to approve it, thus not violating the protocol of the original smart contract. Voters are rewarded based on quadratic rules for peer prediction, which makes telling true preferences the only way to maximize rewards. Using machine learning, we predict users' preferences based on the voting records. The predictions are provided as default values for future votes to avoid users' need to vote manually each time.
加强智能合约以处理意外情况
去中心化应用程序的用户可能会面临实现应用程序的智能合约应该处理但不能处理的意外情况,因为智能合约一旦部署就无法修改。因此,我们需要具有灵活结构的“更强”智能合约,以便在此类意外情况下保持弹性。在本文中,我们提出了一种通用机制来加强智能合约并处理可能的意外情况。给定一个智能合约,该机制自动生成一个操作列表,该操作列表提供操作作为接口来更改智能合约的参数,以及一个使用从对等体中随机选择的有限投票人组的投票系统。动作列表中的每个动作都可以改变智能合约的相应参数。当大多数人批准时,执行操作以更改参数。当用户在交易中遇到意外情况时,他们选择一些动作作为解决方案,并将其传递给投票系统。由于智能合约具有有限的参数,因此操作是有限的。通过安排和组合这些操作,我们的机制提供了可以处理广泛的意外情况的解决方案。此外,要执行解决方案,需要大多数选民批准,从而不违反原始智能合约的协议。投票人的奖励基于同伴预测的二次规则,这使得说出真实的偏好成为奖励最大化的唯一途径。使用机器学习,我们根据投票记录预测用户的偏好。预测结果作为未来投票的默认值提供,以避免用户每次都需要手动投票。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约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学术官方微信