Docs
  • Overview
  • Our Product Suite
    • Fiamma Bridge (Trust-minimized Bitcoin Bridge, Powered by BitVM2)
      • Introduction
      • Fiamma Bridge Status
      • Consensus Proof
      • Fungible Transfer
      • Multi-Operators
      • Permissionless Challenger
      • Yield opportunities
        • Operator
        • Challenger
        • Fungibility Provider
      • User Guides
        • Testnet Alpha
        • Testnet Beta
          • How to Deposit and Withdraw on Fiamma Bridge?
          • How to run the Fiamma Operator?
            • Operator for Mac
              • 1. Install Fiamma Operator App
              • 2. Register
              • 3. Deposit and Stake BTC
              • 4. Start & Pause Operator
              • 5. Quit Operator and Withdraw Funds
            • Operator for Linux
              • 1. Install and Set Up Fiamma Operator Backend Program
              • 2. Start and Register
              • 3. Deposit and Stake
              • 4. Query Operator Status
              • 5. Manage the Operator Program
              • 6. Quit Operator
              • 7. Troubleshooting
          • How to run a challenger?
    • Fiamma Layer (BitVM-Powered Settlement Layer)
      • Introduction
        • Key Highlights
        • Challenges Tackled
        • Core Technologies
      • Architecture
        • General Flow (Soft Finality)
          • For Programmable Blockchains
          • For Non-Programmable Blockchains :
        • ZKP Verification Process
      • Ecosystem Layout
      • User Guides
        • QuickStart
        • Installation
        • Wallet and Tokens
          • Connect Keplr Wallet
          • Get $FIA
        • Manage Keys
        • Fiamma Testnet Explorer
      • Developer Guides
        • Network Information
        • Fiamma CLI
          • CLI Command Overview
          • CLI Tutorial
        • Fiamma-Committee CLI
        • Run a Fiamma Node
          • Set up a Node
          • Getting Testnet Tokens
          • Become a Bitvm Staker
          • Become a Validator
        • Rest API And GRPC
        • Fiamma ZKPVerify SDK
        • Supported ProofSystem
      • Roadmap
    • Other Essential Protocols
  • Support
Powered by GitBook
On this page
  • Steps overview:
  • Step 1: Set up the Environment
  • Step 2: Configure Environment Variables
Edit on GitHub
  1. Our Product Suite
  2. Fiamma Bridge (Trust-minimized Bitcoin Bridge, Powered by BitVM2)
  3. User Guides
  4. Testnet Beta
  5. How to run the Fiamma Operator?
  6. Operator for Linux

1. Install and Set Up Fiamma Operator Backend Program

Steps overview:

  1. Set up the environment

  2. Configure environment variables

Step 1: Set up the Environment

Run the setup script to install all dependencies and prepare your environment:

./setup.sh

This script will:

  • Install required packages (build-essential, gcc, g++, libssl-dev)

  • Install and configure PostgreSQL

  • Install Docker and Docker Compose (if not already installed)

  • Install Rust and SQLx CLI

  • Create a default .env file from .env_example

  • Set up database and Redis containers

  • Grant execute permissions for scripts

Step 2: Configure Environment Variables

  • Prepare three BTC addresses to process transactions:

    • Main address (auth): The address operator deposits funds to

    • Pegin address: The address responsible for processing deposit transactions

    • Pegout address: The address responsible for processing withdraw transactions

  • Note: Please use p2tr type addresses

Edit the .env file:

  • vim .env

Enter the three private keys from your addresses:

BITVM_BRIDGE_OPERATOR_AUTH_SK=your_auth_private_key
BITVM_BRIDGE_OPERATOR_PEGIN_SK=your_pegin_private_key
BITVM_BRIDGE_OPERATOR_PEGOUT_SK=your_pegout_private_key
  • Note: Make sure you use three different addresses to avoid large UTXOs being unintentionally locked by pre-sign transactions. While funds won't be lost, this can lower capital efficiency for the operator.

PreviousOperator for LinuxNext2. Start and Register

Last updated 6 days ago