Drivechains, broken down
A drivechain is a separate blockchain pegged to a main chain. Coins move in, do something the main chain cannot, and move back out.
The round trip of one coin
- Deposit. You send coins to the sidechain’s escrow on the main chain. They appear on the sidechain.
- Use. You do whatever that sidechain is for: cheap payments, private spending, tokens, markets.
- Ask to leave. The sidechain gathers withdrawals into one bundle and proposes it to the main chain.
- The miners vote. Main-chain miners approve or reject the bundle, block by block, over a long window.
- Paid out. When the bundle has enough approvals, the escrow pays the coins back out on the main chain.
The main chain stays simple. New ideas run on sidechains that nobody is forced to use.
BIP-300: the escrow
BIP-300 is the rule for how coins get in and out. It is called a hashrate escrow, because the miners are the ones who release it.
A withdrawal bundle needs 13,150 approvals within 26,300 blocks. That takes about three to six months. The wait is deliberate: it gives everyone time to notice a bad withdrawal and vote it down.
BIP-301: the security
BIP-301 is the rule for who makes sidechain blocks and why miners care. It is called blind merged mining.
- Bid. A sidechain block producer pays a main-chain miner to include a hash of the sidechain block.
- Blind. The miner collects that fee without running any sidechain software.
- One labour, many chains. The same proof of work secures the main chain and every sidechain, and sidechain fees become extra income for miners.
The sidechains of eCash
Live at launch
- Thunder
- Payments. Large blocks for cheap, high-volume transfers.
- zSide
- Privacy. Shielded transactions.
- BitNames
- Names. Human-readable names and identity without a registrar.
- BitAssets
- Tokens. Issue and trade assets, with fees paid in ECX.
- Truthcoin
- Prediction markets, resolved by the market’s own participants.
Planned
- CoinShift
- Swaps between eCash and other coins without a custodian.
- Photon
- Quantum-resistant signatures and vaults for long-term storage.
New sidechains can be added without changing the main chain’s rules.
The trade-offs, stated plainly
- Leaving is slow. Months, by design. People who need speed swap with someone else instead of waiting for the escrow.
- The miners hold the keys. Critics argue that a majority of miners could vote through a false withdrawal and take escrowed coins. Supporters answer that the long, public window and the miners’ own stake in the coin make that a losing move.
- A sidechain can fail on its own. A bug on one sidechain puts the coins on that sidechain at risk. It does not touch coins that never left the main chain.
Bitcoin argued about these trade-offs for ten years without running them. eCash runs them. What eCash is.