Decentralized Mining Pools
  • Main Page
  • Flow diagrams
  • Sandbox BTCDEB
  • Bitcoin version, RPC, explorer
    • Run clarinet integrate with bitcoin regtest v24.0
    • Custom docker image regtest 24.0.1
    • RPC Browser and transactions legacy
  • Block commit
  • Multiple miners interacting in the same network
  • Rust Taproot Transactions
    • Dependencies
  • Smart Contract
    • Overall explanations
    • Election System
      • Add new miner
      • Remove Miner
      • Update Notifier
    • Funds System
  • Front End
    • Overall
    • UI display usecases
    • How to link it to the sc
    • Github Repository
Powered by GitBook
On this page
  1. Smart Contract

Overall explanations

The smart contract keeps track of the Miners of the mining pool. It will be able to add new Miners to the mining pool through the Miners voting system. The Miners will be able to vote to remove existing Miners in the case of them being bad actors. The Smart contract will keep track of the STX and xBTC balances each Miner owns, and if the Miners has opted in, auto exchange it into BTC to a Bitcoin address specified by the Miner. The smart contract will also update the Miners balances with their STX after winning a block.

On the following pages, we'll go through each flow and show you how it works with clear explanations and helpful visuals.

The functions for the Smart Contract are explained in the next flows.

PreviousDependenciesNextElection System

Last updated 10 months ago