The drivechain proposal that enables trustless, miner-validated sidechains on Bitcoin.
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.
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.
Depositing Bitcoin into a sidechain is straightforward:
OP_DRIVECHAIN output specifying the sidechain slot number.Deposits are fast and simple because they only require standard Bitcoin transaction confirmation.
Withdrawals are the more complex (and more security-critical) direction:
The long voting period is a critical security feature. It gives the Bitcoin community months to notice and respond to any fraudulent withdrawal attempt.
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.
BIP-300's security rests on several pillars:
Bitcoin's base layer is intentionally conservative. Changes are slow, risky, and require broad consensus. Drivechains offer an escape valve:
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.