Abstract
Traditional application uses centralized database and the data is managed and maintained by a single institution. Blockchain is a decentralized, non-tamperable, traceable, multi-party distributed database, which can greatly improve the security of data. It is crucial to transfer traditional application to blockchain-based application for many application scenarios. However, as a new field, most developers are not familiar with blockchain technology. Therefore we propose a method to transfer the traditional application to application based on Hyperledger Fabric. First, we finish the secondary development of Fabric-sdk-java and define a set of API mapping rules. Secondly, we compare the storage model between Mysql and CouchDB, and implement a SQL-Fabric transformation engine through the smart contract, which can parse SQL and automatically transform into read and write operations on the distributed ledger.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
Hyperledger Fabric. https://www.hyperledger.org/projects/fabric. Accessed 5 May 2019
Java SDK for Fabric Client. https://github.com/hyperledger/fabric-sdk-java. Accessed 5 May 2019
Szabo, N.: Smart Contracts. Virtual School (1994)
Nakamoto, S.: Bitcoin: a peer-to-peer electronic cash system (2009). http://www.bitcoin.org/bitcoin.pdf
Ethereum Project. https://www.ethereum.org/. Accessed 20 May 2019
Hyperledger Fabric Chaincode. https://github.com/hyperledger/fabric-chaincode-java. Accessed 8 Apr 2019
CouchDB. http://couchdb.apache.org. Accessed 20 May 2019
Acknowledgments
This paper is partly supported by the National Key R&D Program of China under Grant No. 2017YFB1002000, the Talent Program of Fujian Province for Distinguished Young Scholars in Higher Education, the Guiding Project of Fujian Province under Grant No. 2018H0017.
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2020 Springer Nature Singapore Pte Ltd.
About this paper
Cite this paper
Liu, Z., Huang, Z., Chen, X., Chen, Y. (2020). The Transformation from Traditional Application to Blockchain-Based Application. In: Zheng, Z., Dai, HN., Tang, M., Chen, X. (eds) Blockchain and Trustworthy Systems. BlockSys 2019. Communications in Computer and Information Science, vol 1156. Springer, Singapore. https://doi.org/10.1007/978-981-15-2777-7_39
Download citation
DOI: https://doi.org/10.1007/978-981-15-2777-7_39
Published:
Publisher Name: Springer, Singapore
Print ISBN: 978-981-15-2776-0
Online ISBN: 978-981-15-2777-7
eBook Packages: Computer ScienceComputer Science (R0)