计算机科学 ›› 2022, Vol. 49 ›› Issue (1): 336-344.doi: 10.11896/jsjkx.210600170
刘峰1,2,4, 张嘉淏1,4, 周俊杰2, 利牧2,4, 孔德莉3, 杨杰2,4, 齐佳音2, 周爱民1,4
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
摘要: 区块链是近年来炙手可热的技术话题之一,与其相关的研究理论正在不断丰富。然而,距离区块链技术落地仍面临着吞吐量小、处理效率低的关键问题。针对该问题,跨链技术作为一种有潜力,同时具备扩大吞吐量处理能力、提升处理效率的区块链技术而被广泛关注。文中给出了一种基于改进哈希时间锁的跨链资产交互协议(A Novel Hash-Time-Lock-Contract Based Cross-Chain Token Swap Mechanism,NCASP),创造性地为Fabric区块链引入账户体系,融合智能合约技术实现了在以太坊和Fabric联盟链网络之间的安全无缝资产交换。NCASP协议在每笔HTLC(Hash Time Lock Contract)转账中设置了不同的中间账户进行资产托管和转移,并在交易完成后及时销毁,使得在原有跨链交易速率不变的同时,保证了交易的安全性。通过对协议进行仿真模拟表明,该协议适用于以Fabric为代表的联盟链与比特币以及以以太坊为代表的公链,无需第三方区块链介入,即可实现高效安全的跨链资产交换,且在交易效率上比BSN(Blockchain Service Network)的跨链方案节省了约26.8%。改进的协议扩展了传统HTLC跨链资产方案的使用场景,使不同用户间的资产交换兼顾原子性、公平性以及透明性的特点。
中图分类号:
[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] | 黄松, 杜金虎, 王兴亚, 孙金磊. 以太坊智能合约模糊测试技术研究综述 Survey of Ethereum Smart Contract Fuzzing Technology Research 计算机科学, 2022, 49(8): 294-305. https://doi.org/10.11896/jsjkx.220500069 |
[2] | 陈自民, 卢艺文, 郭燕. 基于区块并行的以太坊智能合约高速重放 High-speed Replay of Ethereum Smart Contracts Based on Block Parallel 计算机科学, 2021, 48(2): 289-294. https://doi.org/10.11896/jsjkx.200500105 |
[3] | 王宇晨, 齐文慧, 徐立臻. 基于区块链的无人机集群安全协作 Security Cooperation of UAV Swarm Based on Blockchain 计算机科学, 2021, 48(11A): 528-532. https://doi.org/10.11896/jsjkx.201100199 |
[4] | 肖锋, 张鹏程, 罗夏朴. 基于正则表达式、程序插桩和代码替换的以太坊智能合约bug检测和修复方法 Ethereum Smart Contract Bug Detection and Repair Approach Based on Regular Expressions, Program Instrumentation and Code Replacement 计算机科学, 2021, 48(11): 89-101. https://doi.org/10.11896/jsjkx.210600064 |
[5] | 胡腾, 王艳平, 张小松, 牛伟纳. 基于区块链的DApp数据与行为分析 Data and Behavior Analysis of Blockchain-based DApp 计算机科学, 2021, 48(11): 116-123. https://doi.org/10.11896/jsjkx.210200134 |
[6] | 於志勇, 林力强, 陈艳, 周天, 倪一涛, 陈星. 面向Hyperledger Fabric的SQL访问框架 SQL Access Framework for Hyperledger Fabric 计算机科学, 2021, 48(11): 54-61. https://doi.org/10.11896/jsjkx.210100220 |
[7] | 张艳梅, 楼胤成. 基于深度神经网络的庞氏骗局合约检测方法 Deep Neural Network Based Ponzi Scheme Contract Detection Method 计算机科学, 2021, 48(1): 273-279. https://doi.org/10.11896/jsjkx.191100020 |
[8] | 林旭丹, 鲍士兼, 赵立昕, 赵成林. 基于Hyperledger Fabric的汽车供应链系统的方案设计与性能分析 Design and Performance Analysis of Automotive Supply Chain System Based on Hyperledger Fabric 计算机科学, 2020, 47(6A): 546-551. https://doi.org/10.11896/JsJkx.190700022 |
[9] | 梁贺君, 韩景倜. 基于区块链的云计算资源去中心化交易共识机制研究 Research on Decentralized Transaction Consensus Mechanism of Cloud Computing Resources Based on Block Chain 计算机科学, 2019, 46(11A): 548-552. |
[10] | 范吉立, 李晓华, 聂铁铮, 于戈. 区块链系统中智能合约技术综述 Survey on Smart Contract Based on Blockchain System 计算机科学, 2019, 46(11): 1-10. https://doi.org/10.11896/jsjkx.190300013 |
|