Offchain Service

The off-chain module is a crucial component of the FBTC protocol, supporting several key functions within the FBTC ecosystem. It comprises the Bridge Monitor, TSS Gateway, TSS Nodes, Risk Control Module, and Blockchain Nodes. Each module plays an essential role in ensuring the security and efficiency of FBTC asset operations.

Bridge Monitor

The Bridge Monitor is a critical monitoring tool within the FBTC protocol. It ensures the legality of all on-chain transactions and lays the groundwork for the subsequent TSS signing process.

Functions

  • Monitors on-chain events in real-time, such as new minting, burning, and cross-chain requests.

  • Validates requests against predefined requirements.

  • Submits valid target chain transactions to the TSS Gateway.

Workflow

  1. Monitor on-chain events and detect minting, burning, or cross-chain requests.

  2. Validate the legality of the requests.

  3. Submit unsigned transactions to the TSS Gateway.


TSS Gateway

The TSS Gateway is the core component connecting the Bridge Monitor and TSS Nodes. It coordinates the signing process and ensures the smooth completion of transactions.

Functions

  • Coordinates TSS Nodes, sends signing requests, and collects the final TSS signature results.

  • Broadcasts signed transactions to the blockchain.

Workflow

  1. Receive transaction requests from the Bridge Monitor.

  2. Send signing requests to the TSS Nodes.

  3. Collect signatures from all TSS Nodes.

  4. Broadcast the signed transaction to the destination blockchain.


TSS Nodes

TSS Nodes ensure the decentralization and security of the system through a distributed signing mechanism. Each node operates an independent risk control module, further enhancing system security.

Functions

  • Generate TSS private key shares and use these shares for signing.

  • Configure independent risk control modules to ensure the legality of signing requests.

Workflow

  1. Sign requests using TSS private key shares.

  2. Validate signing requests through the risk control module.

  3. Send the signature results back to the TSS Gateway.


Risk Control Module

The Risk Control Module is the last line of defense in ensuring system security. It prevents the execution of illegal or risky transaction requests through rigorous validation mechanisms.

Functions

  • Obtain information from trusted blockchain nodes.

  • Validate each signing request to ensure it meets all predefined rules.

Workflow

  1. Retrieve transaction information from trusted blockchain nodes.

  2. Validate the legality of signing requests.

  3. Allow only requests that meet all rules to proceed.


Blockchain Nodes

Blockchain Nodes form the infrastructure of the system, ensuring the accuracy and timeliness of all transaction data.

Functions

  • Operate as standard Bitcoin or other network blockchain nodes.

  • Provide fundamental blockchain data services for other modules to query and use.

Workflow

  1. Operate standard blockchain nodes to ensure data integrity and timeliness.

  2. Provide data query services to support the Bridge Monitor and Risk Control Module operations.

Last updated