智能合约设计模式  被引量:1

Smart contract design patterns

在线阅读下载全文

作  者:董东[1] DONG Dong(College of Computer and Cyber Security,Hebei Normal University,Shijiazhuang Hebei 050024,China)

机构地区:[1]河北师范大学计算机与网络空间安全学院,河北石家庄050024

出  处:《河北省科学院学报》2021年第1期60-65,共6页Journal of The Hebei Academy of Sciences

摘  要:针对以太坊Solidity语言智能合约设计问题,在研究开源合约程序的基础之上识别了面向智能合约的六种设计模式,包括访问约束、状态机、前置条件、后置条件、紧急制动和代理。面向智能合约的设计模式有益于提升合约代码可读性,降低合约语言学习难度,也是提高区块链合约代码审计效率的途径。Focused on the smart contract design in Solidity language on Ethereum,this paper identifies six design patterns for smart contract based on the study of open source code of contracts,including Access Restriction,State Machine,PreCondition,PostCondition,Emergency Stop,and Proxy.The design patterns identified can be utilized to improve the readability of contract code,reduce the difficulty of contract language learning.Moreover,it is also an approach to improve the efficiency of blockchain contract code audit.

关 键 词:智能合约 设计模式 区块链 

分 类 号:TP311[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象