System Architecture
Last updated
Last updated
The entire system consists of four main components: off-chain system, TEE cross-chain bridge, ETH on-chain contracts, and BTC on-chain addresses.
The off-chain system is designed to receive user transaction requests, verify the legality and security of each transaction, generate proofs for valid transactions, and interact with on-chain contracts.
Transaction Engine: This component processes user transaction requests.
L2 Block Node Service: Responsible for packaging off-chain transactions and generating L2 blocks.
ZK Prover: Examines the legality of L2 blocks and generates proofs for valid L2 blocks.
The TEE cross-chain bridge employs Trusted Execution Environment (TEE) technology to facilitate cross-chain transactions from BTC assets to ETH. It securely stores the private keys of the BTC recharge address, BTC-ETH conversion contract, and corresponding invocation program within the enclave of TEE. By utilizing TEE's remote attestation technology, it ensures that the invocation program for private keys remains untampered. Both the BTC recharge address and the BTC-ETH conversion contract private key are generated by program in enclave.
BTC-ETH Conversion Contract: This contract bridges BTC assets, allowing the minting of corresponding tokens on the Ethereum network. It is controlled by the TEE cross-chain bridge through the eth_mpc private key.
World State Contract: Responsible for maintaining the overall account information, where recharge, withdrawal, and transactions contribute to changes in the world state.
Proof Verification Contract: Validates zero-knowledge proofs, ensuring the legitimacy of the provided proofs.
Forced Withdrawal Contract: Handles users' forced withdrawal requests. In case of off-chain system malfunctions or issues, users can use this contract to withdraw their funds. This contract ensures the ownership of user assets.
This address is managed by the TEE cross-chain bridge and is responsible for receiving/sending BTC assets.