首页 | 本学科首页   官方微博 | 高级检索  
     

区块链拍卖退款交易智能合约DoS漏洞优化研究
引用本文:陈虹,王颖辉,金海波,曹玥.区块链拍卖退款交易智能合约DoS漏洞优化研究[J].计算机应用研究,2023,40(2).
作者姓名:陈虹  王颖辉  金海波  曹玥
作者单位:辽宁工程技术大学-软件学院,辽宁工程技术大学-软件学院,辽宁工程技术大学-软件学院,辽宁工程技术大学-软件学院
基金项目:国家自然科学基金资助项目(62173171)
摘    要:针对智能合约的DoS漏洞可能在拍卖退款交易中造成资源耗尽问题进行了研究,设计了拍卖退款交易中智能合约DoS漏洞优化方案。首先构造可能存在DoS漏洞的智能合约,然后采用增加映射以及压栈出栈方法完成漏洞优化,最后通过形式化验证运行优化后的智能合约,检测其是否存在逻辑错误或不一致性。实验结果表明,采用该方法优化的智能合约能够避免因资源耗尽产生的拒绝服务,与带有漏洞智能合约相比,优化后的智能合的等效内存使用量减少了约62.8%,运行时间也有缩短。

关 键 词:智能合约    形式化验证    拍卖退款    DoS漏洞
收稿时间:2022/7/22 0:00:00
修稿时间:2023/1/13 0:00:00

Research on DoS vulnerability optimization of blockchain auction refund transaction smart contract
Chen hong,Wang Yinghui,Jin Haibo and Cao Yue.Research on DoS vulnerability optimization of blockchain auction refund transaction smart contract[J].Application Research of Computers,2023,40(2).
Authors:Chen hong  Wang Yinghui  Jin Haibo and Cao Yue
Affiliation:Liaoning Technical University,,,
Abstract:Aiming at the problem that DoS vulnerabilities of smart contracts may cause resource exhaustion in auction refund transactions, this paper studied and designed an optimization scheme for DoS vulnerabilities of smart contracts in auction refund transactions. Firstly, it constructed a smart contract that may have DoS vulnerabilities, and then used the method of increasing mapping and pushing the stack out to complete vulnerability optimization. Finally, it ran the optimized smart contract through formal verification to detect whether there was logic errors or inconsistencies. The experimental results show that the smart contract optimized by this algorithm can avoid the denial of service caused by resource exhaustion. Compared with the smart contract with vulnerabilities, the equivalent memory usage of the optimized smart contract reduces about 62.8%, and the running time is shortened.
Keywords:smart contract  formal verification  auction refund  DoS vulnerabilities
点击此处可从《计算机应用研究》浏览原始摘要信息
点击此处可从《计算机应用研究》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号