🌉Cross-chain Bridge
Technique Challenges
Handling various data formats across diverse blockchains
The main difficulty arises from harmonizing Bitcoin's stateless UTXO (Unspent Transaction Output) model with the stateful, account-based system used by Ethereum. We integrate a set of operational markers (confirm, unconfirm, replacement) in the depositor's UTXO wallet, along with corresponding triggers in the smart contract. This setup enables users to conduct transactions on the Bitcoin network, subsequently causing updates in the UTXO and leading to state changes in the Ethereum network's smart contracts.
Deciding which party should be responsible for fee deductions
In our method, actions start from the Bitcoin side, with the real transactions activated on this network. This leads to related state changes on the Ethereum side. Nonetheless, thanks to Gelios's approach to optimizing gas costs, fees are incurred only during withdrawals from Gelios. This strategy is adopted because Bitcoin network costs are relatively unstable and can escalate quickly with a surge in transaction volume.
Actors in the Gelios-bridge model
Transaction initiator (Bitcoin): Their primary responsibility involves encoding the transaction with OP_RETURN, related to an Ethereum-based address, like the receiver's address and operational data. This specific information is incorporated into the Bitcoin transactions and later examined by validators How to Embed Data into OP_RETURN:
Multisig Contract: The contract which interact with the middleware protocol, specify the contract operations that are triggerable via Bitcoin network-related transactions. Additionally, they keep track of the state changes announced by validators. Implement with EIP191: A specification about how to handle signed data in Ethereum contracts. EIP734: A multisignature key manager
Middleware Validator: These validators play a crucial role in ensuring the middleware protocol is executed correctly. Their responsibilities encompass enlisting themselves, decoding and verifying Bitcoin network transactions, and overseeing updates to smart contract states. They are also involved in consensus mechanisms. Decoding OP_RETURN:
Middleware Operator: Operators are tasked with establishing and managing the middleware protocol. Their duties include configuring system parameters like the size of the validator committee, determining the block confirmation for consensus and state updates, establishing multi-signature validation rules, and implementing additional security measures.
Last updated