Computer Science ›› 2022, Vol. 49 ›› Issue (1): 336-344.doi: 10.11896/jsjkx.210600170

• Information Security • Previous Articles     Next Articles

Novel Hash-time-lock-contract Based Cross-chain Token Swap Mechanism of Blockchain

LIU Feng1,2,4, ZHANG Jia-hao1,4, ZHOU Jun-jie2, LI Mu2,4, KONG De-li3, YANG Jie2,4, QI Jia-yin2, ZHOU Ai-min1,4   

  1. 1 School of Computer Science and Technology,East China Normal University,Shanghai 200062,China
    2 Institute of Artificial Intelligence and Change Management,Shanghai University of International Business and Economics,Shanghai 200336,China
    3 School of Business and Management,Shanghai International Studies University,Shanghai 201620,China
    4 Institute of Intelligent AI Education,East China Normal University,Shanghai 200062,China
  • Received:2021-06-21 Revised:2021-07-23 Online:2022-01-15 Published:2022-01-18
  • About author:LIU Feng,born in 1988,Ph.D candidate,engineer,is a senior member of China Computer Federation.His main research interests include blockchain technology,data science and cognitive cross science.
    ZHOU Ai-min,born in 1978,Ph.D,professor,Ph.D supervisor,is a member of China Computer Federation and a senior member of IEEE.His main research interests include evolutionary computation and optimization,machine lear-ning,and AI for education.
  • Supported by:
    National Natural Science Foundation of China(72042004).

Abstract: Blockchain is one of the technical hotspots in recent years,and the research theories related to it are being enriched.However,it is still facing the key problem of small throughput and low processing efficiency before it can be implemented into the industry.In response to this problem,cross-chain technology has been widely focused as a blockchain technology that has the potential to both expand throughput processing capacity and improve processing efficiency.This paper presents a novel hash-time-lock-contract based cross-chain token swap mechanism (NCASP),which creatively introduces an account system for the Fabric blockchain and integrates smart contract technology to achieve secure and seamless asset exchange between the Ethernet and Fabric blockchain network.The NCASP protocol sets up different intermediate accounts for asset escrow and transfer in each HTLC transfer,and destroys them in time after the transaction is completed,making the original cross-chain transaction rate unchanged while ensuring the security of the transaction.Simulation of the protocol shows that the protocol is applicable to the federated chain represented by Fabric and the public chains represented by Bitcoin and Ethernet,can achieve efficient and secure cross-chain asset exchange without the intervention of third-party blockchains,and can save about 26.8% in transaction efficiency compared with the cross-chain scheme of BSN (blockchain service network).The improved protocol extends the usage scenarios of the traditional HTLC cross-chain asset schemes,enabling the exchange of assets between different users with a balance of atomicity,fairness and transparency.

Key words: Asset exchange, Blockchain cross-chain technology, Ethereum, Fabric, Hash time lock, Man-in-the-middle accounts

CLC Number: 

  • TP309.2
[1]ConsenSys.BTC Relay's documentation[EB/OL].(2016-01-14).http://btc-relay.readthedocs.io/en/latest/.
[2]CAI X Q,DENG Y,ZHANG L,et al.The Principle and Core Technology of Blockchain[J].Chinese Journal of Computers,2021,44(1):84-131.
[3]WOOD G.Polkadot:Vision for a heterogeneous multi-chainframework[EB/OL].(2016-10-09).https://github.com/pol-kadot-io/polkadotpaper/raw/master/ PolkaDotPaper.pdf.
[4]CACHIN C.Architecture of the hyperledger blockchain fabric[C]//Workshop on Distributed Cryptocurrencies and Consensus Ledgers.2016:310-313.
[5]GAO Z H.Introduction to Cross-chain Technology of Block-chain[J].Cards World,2016(11):46-51.
[6]PAN C,LIU Z Q,LIU Z,et al.Research on Scalability of Blockchain Technology:Problems and Methods[J].Journal of Computer Research and Development,2018,55(10):2099-2110.
[7]HOPE-BAILIE A,THOMAS S.Interledger:Creating a stan-dard for payments[C]//Proceedings of the 25th International Conference Companion on World Wide Web.2016:281-282.
[8]BUCHMAN E,KWON J.Cosmos:A Network of DistributedLedgers[EB/OL].(2019-4-17).https://github.com/cosmos/cosmos/blob/master/WHITEPAPER.md.
[9]ZHANG S,QIN B,ZHENG H B.Research on Multi-partyCross-chain Protocol Based on Hash Locking[J].Cyberspace Security,2018,9(11):57-62,67.
[10]SCHWARTZ D,YOUNGS N,BRITTO A.The Ripple protocol consensus algorithm[EB/OL].(2018-02-20).https://ripple.com/files/ripple_consensus_whitepapew.pdf.
[11]JOSEPH P,THADDEUS D.The Bitcoin Lightning Network:Scalable Off-Chain Instant Payments[EB/OL].(2016-01-14).http://lightning.network/lightning-network-paper.pdf.
[12]LI S T,LIU J K,CHEN N.Design and research of a billing and clearing platform based on blockchain technology[J].Telecommunications Science,2020,36(9):84-93.
[13]THOMAS S,SCHWARTZ E.A protocol for interledger pay-ments[EB/OL].(2015-10-09).https://inter-ledger.org/interledger.pdf.
[14]BACK A,CORALLO M,DASHJR L,et al.Enabling blockchain innovations with pegged sidechains[EB/OL].(2014-10-22).https://blockstream.com/sidechains.pdf.
[15]POON J,BUTERIN V.Plasma:Scalable autonomous smart con-tracts[EB/OL].(2017-08-11).https://www.plasma.io/plasma-deprecated.pdf.
[16]LI Z,ZHANG Z.Research and Implementation of Multi-chainDigital Wallet Based on Hash TimeLock[C]//International Conference on Blockchain and Trustworthy Systems.Singapore:Springer,2019:175-182.
[17]HUANG Y F.Design and implementation of a data sharingtransaction system based on federated chain[D].Guangzhou:Guangzhou University,2020.
[18]VOGELSTELLER F,BUTERIN V.ERC-20 Token Standard[EB/OL].(2015-11-19).https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md.
[19]ENTRIKEN W,SHIRLEY D,SACHES N.ERC-721 Non-Fungible Token Standard [EB/OL].(2019-1-24).https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md.
[20]MA C G,AN J,BI W,et al.Smart Contract in Blockchain[J].Netinfo Security,2018,18(11):8-17.
[21]ZHU J,HU K,ZHANG B J.Review on Formal Verification of Smart Contract[J].Acta Electonica Inica,2021,49(4):792-804.
[22]WU Y,ZENG S,WU B,et al.Quantitative Weighted VisualCryptographic (k,m,n) Method[J].Security and Communication Networks,2021,2021(11):1-13.
[1] HUANG Song, DU Jin-hu, WANG Xing-ya, SUN Jin-lei. Survey of Ethereum Smart Contract Fuzzing Technology Research [J]. Computer Science, 2022, 49(8): 294-305.
[2] CHEN Zi-min, LU Yi-wen, GUO Yan. High-speed Replay of Ethereum Smart Contracts Based on Block Parallel [J]. Computer Science, 2021, 48(2): 289-294.
[3] WANG Yu-chen, QI Wen-hui, XU Li-zhen. Security Cooperation of UAV Swarm Based on Blockchain [J]. Computer Science, 2021, 48(11A): 528-532.
[4] XIAO Feng, ZHANG Peng-cheng, LUO Xia-pu. Ethereum Smart Contract Bug Detection and Repair Approach Based on Regular Expressions, Program Instrumentation and Code Replacement [J]. Computer Science, 2021, 48(11): 89-101.
[5] HU Teng, WANG Yan-ping, ZHANG Xiao-song, NIU Wei-na. Data and Behavior Analysis of Blockchain-based DApp [J]. Computer Science, 2021, 48(11): 116-123.
[6] YU Zhi-yong, LIN Li-qiang, CHEN Yan, ZHOU Tian, NI Yi-tao, CHEN Xing. SQL Access Framework for Hyperledger Fabric [J]. Computer Science, 2021, 48(11): 54-61.
[7] ZHANG Yan-mei, LOU Yin-cheng. Deep Neural Network Based Ponzi Scheme Contract Detection Method [J]. Computer Science, 2021, 48(1): 273-279.
[8] LIN Xu-dan, BAO Shi-Jian, ZHAO Li-xin and ZHAO Chen-lin. Design and Performance Analysis of Automotive Supply Chain System Based on Hyperledger Fabric [J]. Computer Science, 2020, 47(6A): 546-551.
[9] FAN Ji-li, LI Xiao-hua, NIE Tie-zheng, YU Ge. Survey on Smart Contract Based on Blockchain System [J]. Computer Science, 2019, 46(11): 1-10.
[10] MENG Yan, ZHENG Gang, DAI Min and ZHAO Rui. Design and Implementation of Wearable ECG Signal Acquisition and Analysis System [J]. Computer Science, 2015, 42(10): 39-42.
[11] . Small Neighborhood 3D Movement Constraint Estimate Fabric Simulation Algorithm [J]. Computer Science, 2013, 40(1): 311-313.
[12] HU Yu-xiang LAN Ju-long MA Xiang-jie (National Digital Switching System Engineering & Technological R&D Center, Zhengzhou 450002, China). [J]. Computer Science, 2008, 35(5): 81-84.
[13] . [J]. Computer Science, 2007, 34(3): 35-37.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!