【Author】
Su, Hong; Guo, Bing; Lu, Jun Yu; Suo, Xinhua
【Abstract】Cross-chain exchange is an important way to promote cooperation and exchange between different blockchains. However, current cross-chain approaches mainly rely on smart contracts with essential pre-deployment steps, several of which need to be synchronized, resulting in low performance. In this paper, we propose an asynchronous cross-chain exchange model based on a transaction that embeds a control condition to determine whether to transfer assets. The condition is used to specify the paired transaction. In order to find which cross-chain transaction meets the condition, the fields of cross-chain transactions are compared mutually, including sender, receiver, value, blockchain identifier, etc. Meanwhile, the balance process in the blockchain consensus needs to be changed: subtracting the balance of the sender first, increasing the balance of the receiver when the conditions match, or returning the assets to the sender if the time expires. By embedding conditions in transactions, the step of pre-deploying smart contracts is eliminated, and transactions can be sent in parallel. The simulation results show that compared with smart contract-based method, the exchange waiting time is reduced by up to 73.4%.
【Keywords】Cross-chain; Cross-chain exchange; Transaction dependence; Conditional transaction
【摘要】跨链交易是促进不同区块链之间合作交流的重要方式。然而,目前的跨链方式主要依赖智能合约,具有必要的预部署步骤,其中几个需要同步,导致性能低下。在本文中,我们提出了一种基于交易的异步跨链交易模型,该交易嵌入了控制条件来确定是否转移资产。条件用于指定配对交易。为了找出满足条件的跨链交易,需要对跨链交易的字段进行相互比较,包括发送者、接收者、价值、区块链标识符等。同时,需要改变区块链共识中的余额处理:先减去发送方的余额,当条件匹配时增加接收方的余额,或者如果时间到期则将资产返还给发送方。通过在交易中嵌入条件,省去了预先部署智能合约的步骤,交易可以并行发送。仿真结果表明,与基于智能合约的方法相比,交易所等待时间最多减少了73.4%。
【文献类型】Article; Early Access
评论