What is a drivechain?
One main chain, many sidechains, and coins that move between them.
4 min readThe problem
Bitcoin changes slowly on purpose. Every node must agree on the same rules, so adding a new feature to the main chain is hard and risky.
A sidechainSidechain (L2)A separate blockchain whose coins are locked on the L1 and released only by a slow miner vote. It has its own software and rules. is a separate blockchain with its own software and features, which uses coins brought over from the main chain. If something goes wrong on a sidechain, the main chain is not affected.
The idea
A drivechain connects the main chain (L1L1 (mainchain)The base blockchain. On this site it is eCash Betanet.) with sidechains (L2) using two proposals:
- BIP300, hashrate escrows. Coins sent to a sidechain are locked on L1. Getting them back out requires L1 miners to approve the withdrawal in a slow, public vote.
- BIP301, blind merged mining. L1 miners help produce sidechain blocks and collect their fees, without running any sidechain software.
Think of a shared vault for each sidechain. Anyone can put coins in. The door only opens after the miners have voted for months, in the open, block by block.
How a drivechain works, in 4 steps
Follow one coin through a sidechain, with real numbers from eCash Betanet.
1 · Lock coins on L1
You send coins to a sidechain's treasury: a single locked output on the main chain. It is an ordinary L1 transaction, so no vote is needed.
Learn it: Deposits and the treasuryWhat you are looking at
This site watches eCash Betanet as it runs. Everything inside a Live on Betanet panel comes from a monitor connected to a Betanet node and the official enforcerEnforcerThe program that checks the BIP300/301 rules alongside the L1 node. The Observatory reads its official API.. See the proof opens the exact record behind a value.
eCash Betanet right now
Loading live data…
Read the source
The rules in this lesson come from these documents and code:
Ask an AI assistant about this concept
Opens your assistant with a question about this concept and its sources already written. AI answers can be wrong: check them against the sources above. Your question goes to the assistant you choose, not to us.