基于改进哈希时间锁的区块链跨链资产交互协议
A Novel Hash-Time-Lock-Contract Based Cross-Chain Token Swap Mechanism of Blockchain
摘要
区块链是近年来炙手可热的技术话题之一,与其相关的研究理论正在不断丰富。然而,距离区块链技术落地仍面临着吞吐量小、处理效率低的关键问题。针对此问题,跨链技术作为一种有潜力同时具备扩大吞吐量处理能力、提升处理效率的区块链技术而被广泛关注。研究给出了一种基于改进哈希时间锁的跨链资产交互协议(A Novel Hash-Time-Lock-Contract Based Cross-Chain Token Swap Mechanism, NCASP),创造性地为Fabric区块链引入账户体系,融合智能合约技术实现了在以太坊和Fabric联盟链网络之间的安全无缝资产交换。NCASP协议在每笔HTLC转账中设置了不同的中间账户进行资产托管和转移,并在交易完成后及时销毁,使得原有跨链交易速率不变的同时保证交易的安全性。通过对协议进行仿真模拟表明:协议适用于联盟链与公链,无需第三方区块链介入即可实现高效安全的跨链资产交换,且在交易效率上比BSN(Blockchain Service Network)的跨链方案节省约26.8%。改进的协议扩展了传统HTLC跨链资产方案的使用场景,使得不同用户间的资产交换兼顾原子性、公平性以及透明性的特点。
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. The research 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 both Consortium Blockchain and Public Blockchain, and 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.
查看原文