Page 97 - 《软件学报》2021年第11期
P. 97

软件学报 ISSN 1000-9825, CODEN RUXUEW                                       E-mail: jos@iscas.ac.cn
                 Journal of Software,2021,32(11):3423−3439 [doi: 10.13328/j.cnki.jos.006277]   http://www.jos.org.cn
                 ©中国科学院软件研究所版权所有.                                                         Tel: +86-10-62562563


                                                   ∗
                 一种智能合约微服务化框架

                                                1,2
                      1,2
                                        1,2
                                                         1,2
                               1,2
                 张富利 ,   侯培宇 ,   李杉杉 ,   荣国平 ,   李质颖 ,   丁梦洁      1,2
                 1
                 (南京大学  软件学院,江苏  南京   210093)
                 2
                 (计算机软件新技术国家重点实验室(南京大学),江苏  南京  210023)
                 通讯作者:  荣国平, E-mail: ronggp@nju.edu.cn

                 摘   要:  区块链具有分布式、不可篡改、去中心化、历史可追溯等特点,但难以落地.智能合约的引入,有效地解
                 决了这一难题.然而,智能合约的开发和运维存在部署效率低、监控工具不成熟等问题.受 DevOps 自动化工具支持
                 微服务持续交付、持续监控的启发,针对上述问题,提出了一种用于智能合约微服务化改造的框架.随后,结合支持
                 DevOps 的工具设计原型平台 Mictract,完成智能合约的部署和监控.在 Hyperledger Fabric 官方链码 Marbles 上的案
                 例研究表明,该框架和原型平台能够显著提升智能合约部署和监控的自动化水平.
                 关键词:  区块链;智能合约;微服务;DevOps;自动化
                 中图法分类号: TP311


                 中文引用格式:  张富利,侯培宇,李杉杉,荣国平,李质颖,丁梦洁.一种智能合约微服务化框架.软件学报,2021,32(11):3423−
                 3439. http://www.jos.org.cn/1000-9825/6277.htm
                 英文引用格式: Zhang FL, Hou PY, Li SS,  Rong GP, Li ZY, Ding MJ.  Framework  for architecting smart contracts  using
                 microservices. Ruan Jian Xue Bao/Journal of Software, 2021,32(11):3423−3439 (in Chinese). http://www.jos.org.cn/1000-9825/
                 6277.htm
                 Framework for Architecting Smart Contracts Using Microservices

                            1,2
                                         1,2
                                                       1,2
                                                                                     1,2
                                                                        1,2
                 ZHANG Fu-Li ,   HOU Pei-Yu ,   LI Shan-Shan ,   RONG Guo-Ping ,   LI Zhi-Ying ,   DING Meng-Jie 1,2
                 1
                 (Software Institute, Nanjing University, Nanjing 210093, China)
                 2
                 (State Key Laboratory for Novel Software Technology (Nanjing University), Nanjing 210023, China)
                 Abstract:    Blockchain has the  advantages of distribution, immutability,  decentralization,  and traceability, but short of implementing.
                 Smart contract is a decent solution to make up for this deficiency. However, smart contracts also struggle in deploying and monitoring.
                 Inspired by the DevOps tools that support continuous delivery and continuous monitoring for microservices, a framework is proposed to
                 architect smart contracts  using microservices. Besides, a  prototype  platform (Mictract)  is implemented  in  which DevOps  tools  were
                 aggregated to support smart contracts deploying and monitoring. The case study performed in Marbles of Hyperledger Fabric shows that
                 the proposed framework and the prototype platform significantly improve the automation level to deploy and monitor smart contracts.
                 Key words:    blockchain; smart contract; microservice; DevOps; automation
                                        [1]
                    智能合约(smart contract) 最早由 NickSzabo 提出,其被定义为实现合同条款的计算机程序.智能合约允许
                                                                        [2]
                 在没有可信第三方的情况下进行可信的、可追踪的、不可逆转的交易 .受当时技术所限,智能合约很难在没有
                 可信第三方的情况下准确执行,相关的理论一直领先于应用实践.近年来,区块链(blockchain)的迅速发展,为智

                   ∗  基金项目:  国家自然科学基金(62072227, 61802173);  国家重点研发计划(2019YFE0105500);  江苏省政府间双边创新项目
                 (BZ2020017);  南京大学计算机软件新技术国家重点实验室创新项目(ZZKT2019B01)
                      Foundation item: National Natural Science Foundation of China (62072227, 61802173); National Key Research and Development
                 Program of  China (2019YFE0105500); Intergovernmental  Bilateral Innovation Project of  Jiangsu Province (BZ2020017);  Innovation
                 Project of State Key Laboratory for Novel Software Technology at Nanjing University (ZZKT2019B01)
                     收稿时间: 2020-09-15;  修改时间: 2020-10-26;  采用时间: 2020-12-15; jos 在线出版时间: 2021-08-03
   92   93   94   95   96   97   98   99   100   101   102