Inscription: As a distributed ledger technology, blockchain can be applied in many fields such as finance, health care, supply chain, asset management, etc., but it is restricted by factors such as throughput, network isolation, scalability, etc. Blockchain projects do not serve commercial applications well. Among the many problems faced by blockchains, network isolation hinders the cooperative operation between different blockchains, which greatly limits the space for blockchains.
I. Introduction
- Technical exploration of cross-chain DEX prototypes: How to trade cross-chain assets within a single DEX?
- Popular Science | Cosmos Blockchain works: How to cross-chain, why cross-chain?
- Polkadot project party successfully sold 500,000 DOT tokens with a valuation of US$1.2 billion
- Bitcoin is a big one, cross-chain is a pseudo-demand?
- Innovatively launching the MOV agreement than the original chain, realizing the transaction, that is, the transfer, the smart contract
- IRISnet delivers cross-chain presentations and opens the Internet with DEX
Figure | Network
Among them, anyone can become a Relayer without registering, as long as the running status information synchronization service program is deployed and related synchronization work can be performed.
Second, the pass contract and dApp contract
1. Lock interface
Lock assets on the chain. The interface invokes a cross-chain management contract, and the transaction for the locked asset is placed in the merkle tree by the cross-chain management contract.
2. Unlock interface
Unlock assets on the chain. The interface is invoked by a cross-chain management contract, and the cross-chain management contract passes the verified transaction parameters to the interface, and the interface unlocks the assets according to the parameters.
Third, the state information synchronization player Relayer
Figure | Network
Figure: Main chain to side chain miner fee transfer
Users of cross-chain transactions can submit cross-chain trading information themselves, or they can include a miner fee in a cross-chain transaction to commission Relayer to synchronize cross-chain transactions. Specifically, when the user conducts a cross-chain transaction on the source chain, it needs to additionally lock a part of the pass or destroy part of the pass as the miner fee. After listening to the cross-chain request, Relayer will charge according to whether the miner is higher than the miner. Set your own threshold to decide whether to submit this cross-chain transaction.
Figure | Network
Figure: Side chain to main chain miner fee transfer
Fourth, postscript