Main Transaction Flow

  1. User deposits a certain amount of BTC assets to the BTC on-chain recharge address:

    • The user sends a specified quantity of BTC assets to the BTC on-chain recharge address.

  2. TEE Cross-Chain Bridge monitors the transaction:

    • The TEE Cross-Chain Bridge detects the transaction and, after remote attestation confirmation, utilizes the ETH_MPC private key to invoke the BTC-ETH conversion contract, generating the corresponding ETH Tokens for the deposited BTC assets.

  3. OpenBit Off-Chain Service credits the user:

    • OpenBit off-chain services update the user's account after confirming the successful conversion of BTC to ETH Tokens.

  4. User completes the transaction:

    • After completing various transactions, the user initiates a withdrawal request through the OpenBit off-chain service.

  5. OpenBit Off-Chain Service generates proof and sends it to the proof verification contract:

    • OpenBit off-chain services create a proof for the withdrawal request and send it to the proof verification contract.

  6. OpenBit Contract validates the proof, updates the world state, and sends corresponding ETH Tokens to the BTC-ETH conversion contract:

    • After validating the proof, the OpenBit contract updates the world state and transfers the corresponding ETH Tokens to the BTC-ETH conversion contract.

  7. BTC-ETH Conversion Contract burns the corresponding amount of ETH Tokens:

    • The BTC-ETH conversion contract destroys an equivalent amount of ETH Tokens, ensuring synchronization with the Ethereum network.

  8. TEE Cross-Chain Bridge, after remote attestation confirmation, forwards the corresponding BTC assets to the user:

    • The TEE Cross-Chain Bridge, upon remote attestation verification, utilizes the BTC_MPC private key to transfer the corresponding BTC assets to the user.

This comprehensive process ensures a secure and streamlined experience for users depositing, transacting, and withdrawing assets within the OpenBit ecosystem.

Last updated