🌁
Light Client Bridge
AKA Relay
A bridge between two blockchains connects them together. Some bridges only enable moving assets from one blockchain to another, and some bridges move the whole data of one blockchain to another. The second type covers the first one.
Relay is an interoperability solution that makes it possible to access the whole data of the source chain from the target chain. In a Relay, there are parties called Relayers who submit block headers of the source chain on the target chain. A smart contract (Relay contract) checks the validity of submitted block headers by checking the consensus mechanism of the source chain. The smart contract, then, decides which blocks should be finalized according to the finalization rule of the source chain. Therefore, the Relay smart contract that exists on the target chain, acts as a light client of the source chain.
TeleportDAO uses Relay as its interoperability solution. Since the consensus mechanism of the source chain and all the cross-chain data is verified by the Relay contract, the security of the TeleportDAO bridge is equal to the security of its underlying blockchains.
After adding the new block header by a Relayer, TeleportDAO checks for any previous block header that got finalized. When a block header gets finalized on the source chain, it will get finalized on the target chain in a very short delay. Users can refer to finalized block headers on the target chain for proving the inclusion of some data on the source chain.
As block headers include Merkle roots (or other commitment schemes) of all transactions and states, TeleportDAO can perform any state or transaction inclusion verifications using Merkle proofs generated by users. This means that the target chain has access to the whole data of the source chain. Any dApp on the target chain that wants to read some data from the source chain can leverage the TeleportDAO bridge.
There are two main interactions that one can have with the TeleportDAO bridge:
- 1.Submit block headers: anyone can submit block headers of the source chain on Relay and earn rewards. If the block headers are not valid, the submission will revert, and if the block header won’t get finalized in the source chain, the user will not earn the reward.
- 2.Query inclusion of data: any user can query TeleportDAO and ask about the inclusion of some data in a finalized block of the source chain.
Last modified 10mo ago