radFi
  • Overview
  • Economics
  • User Guides
    • Trading Wallet
  • Trading
  • Automated Market Making
  • User Flows
    • Swap Tab
    • Pool Tab
      • Positions
      • Pools
    • Portfolio Tab
  • Walk-Through Video
  • Technical Architecture
    • Automated Market Maker
    • radFi OP_12
    • Bitcoin Data Availability
    • Trading Wallet
  • Validator
  • Smart Contract
  • radFi Actions Flowchart
  • DEV
    • API Endpoints
      • Create Trading Wallet
      • Swap
      • AMM
        • Init Liquidity
        • Supply Liquidity
        • Increase Liquidity
        • Withdraw Liquidity
        • Collect Fees
  • Terms and Conditions
  • Privacy Policy
Powered by GitBook
On this page
  • Key Components
  • Flow Overview

Validator

PreviousTrading WalletNextSmart Contract

Last updated 3 months ago

Validators are decentralized nodes operated by RadFi and other stakeholders. They process Bitcoin raw transaction requests from clients, validating sequence numbers, user signatures, data formats, and OPCODEs. Once validated, the request is forwarded to other validator nodes.

Validators also update the state on the EVM chain, sign the Bitcoin raw transaction, and share the signature with other validators. When consensus is reached and all signatures are collected, one validator finalizes the BTC transaction and broadcasts it to the Bitcoin network.

Key Components

Client

  • Initiates the swap request.

Validators

  • Handle request validation and relay information.

EVM Node

  • Executes the swap and updates the blockchain state.

Bitcoin Node

  • Signs and broadcasts the transaction to the Bitcoin network.

Flow Overview

1. Client Request

  • A user initiates a swap by submitting a BTC raw tx to a validator.

2. Validation Process

  • Step 2: Validator 1 verifies the swap request.

  • Step 2 (Rejection Case): If invalid, the request is rejected.

  • Step 2 (Peer-to-Peer Validation): If necessary, the request is sent to other validators for consensus.

3. Transaction Processing

  • The validated BTC raw transaction is parsed into an EVM-compatible swap data structure.

  • A request is then sent to an EVM node to execute the swap and update the state.

4. Bitcoin Network Broadcast

  • Once the swap is executed on the EVM node, a Bitcoin signature is collected.

  • The signed Bitcoin transaction is broadcasted to the Bitcoin network via a Bitcoin node.

RadFi Validator Interaction