BIP-300
Hashrate Escrows

The drivechain proposal that enables trustless, miner-validated sidechains on Bitcoin.

What is BIP-300?

BIP-300, also known as "Hashrate Escrows" or "Drivechains", is a Bitcoin improvement proposal by Paul Sztorc that creates a mechanism for two-way pegged sidechains secured by Bitcoin's own proof-of-work.

The core idea: Bitcoin miners act as escrow agents for sidechain deposits and withdrawals. They don't need to run sidechain software — they simply validate withdrawal attempts over a long voting period, ensuring security through economic incentives and time delays.

Drivechains allow Bitcoin to have opt-in sidechains where new features can be tested and deployed without changing Bitcoin's base layer consensus rules beyond the initial soft fork activation.

Key Concepts

Sidechain Slots

BIP-300 defines a fixed number of sidechain "slots" (up to 256). Each slot can host one sidechain. For example:

Each sidechain is proposed on-chain and must receive sufficient miner support to activate.

Deposits (L1 → L2)

Depositing Bitcoin into a sidechain is straightforward:

  1. A user sends BTC to a special sidechain deposit address on L1.
  2. The deposit transaction includes an OP_DRIVECHAIN output specifying the sidechain slot number.
  3. After sufficient confirmations, the equivalent amount of coins appears on the sidechain.

Deposits are fast and simple because they only require standard Bitcoin transaction confirmation.

Withdrawals (L2 → L1)

Withdrawals are the more complex (and more security-critical) direction:

  1. A user initiates a withdrawal on the sidechain.
  2. The sidechain bundles withdrawals into a Withdrawal Bundle (a proposed L1 transaction).
  3. Miners vote on the withdrawal bundle over a ~3-6 month period (~13,150 blocks).
  4. If the bundle accumulates enough "upvotes" from miners, it is executed on L1 and the BTC is released.

The long voting period is a critical security feature. It gives the Bitcoin community months to notice and respond to any fraudulent withdrawal attempt.

The CTIP (Current Transaction ID Pointer)

Each sidechain has a single UTXO on the Bitcoin mainchain called the CTIP. This UTXO holds all of the sidechain's deposited BTC. Deposits add to it; withdrawals spend from it. The CTIP is the on-chain "account balance" of the sidechain.

Security Model

BIP-300's security rests on several pillars:

Why Drivechains Matter

Bitcoin's base layer is intentionally conservative. Changes are slow, risky, and require broad consensus. Drivechains offer an escape valve:

BIP-300 and Coinshift

Coinshift is a sidechain application built on top of BIP-300 infrastructure. It occupies sidechain slots and provides a trustless swap mechanism for converting L2 coins back to L1 assets (BTC, BCH, LTC, etc.) without waiting for the full withdrawal voting period.

While BIP-300 withdrawals take months, Coinshift swaps settle in minutes to hours — as fast as the parent chain confirms transactions. This makes Coinshift a practical liquidity layer for the drivechain ecosystem.