期刊文献+

面向Hyperledger Fabric的SQL访问框架 被引量:2

SQL Access Framework for Hyperledger Fabric
下载PDF
导出
摘要 区块链技术具有去中心化、不可篡改、可追溯等优势,已经在各领域得到广泛应用。但区块链作为一项前沿技术,存在开发难度大、学习成本高等问题,且大多数开发者更熟悉基于关系型数据库的应用开发方法,即通过SQL操作关系型数据库。Hyperledger Fabric是目前最为主流的区块链开发框架。针对此问题,文中提出了一种面向Hyperledger Fabric的SQL访问框架。首先,针对Fabric和SQL底层存储结构不一致的问题,定义了关系模型至键值模型的转换规则,实现了模型转换算法;然后,基于智能合约技术开发了SQL执行合约,实现了SQL语句向底层状态数据库CouchDB操作语句的自动转换,进而操作Fabric底层的数据;最后,从应用层开发的角度,设计了应用自动化重构工具,工具包含两个部分,分别是应用重构工具和区块链网络的交互中间件Fabric-Driver。实验结果表明,相比现有方案,使用所提框架开发区块链应用能节省82%左右的时间,且使用此框架降低的读写性能仅有5%左右。 Blockchain technology has the advantages of decentralization,non-tampering,and traceability,and has been widely used in various fields.However,as a cutting-edge technology,blockchain has problems in development and high learning costs,and most developers are more familiar with application development methods based on relational databases,that is operating relational databases through SQL.Hyperledger Fabric is the most mainstream blockchain development framework.In response to this problem,the article proposes a SQL access framework for Hyperledger Fabric.First of all,in view of the inconsistency of the underlying storage structure of Fabric and SQL,the conversion rules from relational model to key-value model are defined and implemented the model conversion algorithm.Second,the SQL execution contract is developed based on smart contract technology,which realizes the automatic transformation from SQL statement to CouchDB operation statement,and then operates the underlying data of Fabric.Finally,from the perspective of application layer development,an application automation refactoring tool is designed.The tool consists of two parts,including the application refactoring tool and the blockchain.Fabric-Driver is an interactive middleware for the network.The experimental results show that compared with the existing scheme,using the proposed framework to develop blockchain applications can save about 82%of the time,the reading and writing performance of using this framework is less than 5%.
作者 於志勇 林力强 陈艳 周天 倪一涛 陈星 YU Zhi-yong;LIN Li-qiang;CHEN Yan;ZHOU Tian;NI Yi-tao;CHEN Xing(College of Mathematics and Computer Science,Fuzhou University,Fuzhou 350108,China;Fujian Key Laboratory of Network Computing and Intelligent Information Processing(Fuzhou University),Fuzhou 350108,China)
出处 《计算机科学》 CSCD 北大核心 2021年第11期54-61,共8页 Computer Science
基金 国家重点研发计划资助项目(2018YFB1004800) 福建省自然科学基金杰青项目(2020J06014) 福建省自然科学基金项目(2018J07005)。
关键词 区块链 键值模型 模型转换 Hyperledger Fabric 智能合约 Blockchain Key-value model Model transformation Hyperledger Fabric Smart contract
  • 相关文献

参考文献2

二级参考文献2

共引文献525

同被引文献22

引证文献2

二级引证文献2

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部