SQL Access Framework for Hyperledger Fabric
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 developmen...
Main Author: | |
---|---|
Format: | Article |
Language: | zho |
Published: |
Editorial office of Computer Science
2021-11-01
|
Series: | Jisuanji kexue |
Subjects: | |
Online Access: | https://www.jsjkx.com/fileup/1002-137X/PDF/1002-137X-2021-11-54.pdf |
_version_ | 1818992300609503232 |
---|---|
author | YU Zhi-yong, LIN Li-qiang, CHEN Yan, ZHOU Tian, NI Yi-tao, CHEN Xing |
author_facet | YU Zhi-yong, LIN Li-qiang, CHEN Yan, ZHOU Tian, NI Yi-tao, CHEN Xing |
author_sort | YU Zhi-yong, LIN Li-qiang, CHEN Yan, ZHOU Tian, NI Yi-tao, CHEN Xing |
collection | DOAJ |
description | 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 pro-blem,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 under-lying 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%. |
first_indexed | 2024-12-20T20:23:58Z |
format | Article |
id | doaj.art-92f69ab5d44d46a5a8ca3c4a23be563c |
institution | Directory Open Access Journal |
issn | 1002-137X |
language | zho |
last_indexed | 2024-12-20T20:23:58Z |
publishDate | 2021-11-01 |
publisher | Editorial office of Computer Science |
record_format | Article |
series | Jisuanji kexue |
spelling | doaj.art-92f69ab5d44d46a5a8ca3c4a23be563c2022-12-21T19:27:31ZzhoEditorial office of Computer ScienceJisuanji kexue1002-137X2021-11-014811546110.11896/jsjkx.210100220SQL Access Framework for Hyperledger FabricYU Zhi-yong, LIN Li-qiang, CHEN Yan, ZHOU Tian, NI Yi-tao, CHEN Xing0College of Mathematics and Computer Science,Fuzhou University,Fuzhou 350108,China <br/>Fujian Key Laboratory of Network Computing and Intelligent Information Processing (Fuzhou University),Fuzhou 350108,ChinaBlockchain 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 pro-blem,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 under-lying 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%.https://www.jsjkx.com/fileup/1002-137X/PDF/1002-137X-2021-11-54.pdfblockchain|key-value model|model transformation|hyperledger fabric|smart contract |
spellingShingle | YU Zhi-yong, LIN Li-qiang, CHEN Yan, ZHOU Tian, NI Yi-tao, CHEN Xing SQL Access Framework for Hyperledger Fabric Jisuanji kexue blockchain|key-value model|model transformation|hyperledger fabric|smart contract |
title | SQL Access Framework for Hyperledger Fabric |
title_full | SQL Access Framework for Hyperledger Fabric |
title_fullStr | SQL Access Framework for Hyperledger Fabric |
title_full_unstemmed | SQL Access Framework for Hyperledger Fabric |
title_short | SQL Access Framework for Hyperledger Fabric |
title_sort | sql access framework for hyperledger fabric |
topic | blockchain|key-value model|model transformation|hyperledger fabric|smart contract |
url | https://www.jsjkx.com/fileup/1002-137X/PDF/1002-137X-2021-11-54.pdf |
work_keys_str_mv | AT yuzhiyonglinliqiangchenyanzhoutianniyitaochenxing sqlaccessframeworkforhyperledgerfabric |