Sidechains
Parallel blockchains for scaling, experimentation, and interoperability.
Sidechains function as autonomous scaling environments that maintain their own consensus mechanisms and security models while remaining logically linked to a mainnet (like Bitcoin or Ethereum). Unlike Layer 2 solutions (rollups) which inherit the security of the L1, sidechains are sovereign; if a sidechain's consensus fails, the mainchain remains unaffected, though pegged assets may be lost. The connection is maintained via a Two-Way Peg (2WP), where assets are effectively 'locked' on the mainchain to trigger a 'minting' event on the sidechain, and vice versa for withdrawals.
🛡️ Trust Score
✅ Verified Technical Facts
- • Sidechains operate with sovereign consensus independent of the mainnet.
- • BIP-300 (Drivechains) uses miner hashrate to secure peg-out transactions.
- • Sidechains do not inherit Layer 1 security guarantees unlike rollups.
- • Merged mining allows a blockchain to be secured by another's cumulative work.
graph LR
Center["Sidechains"]:::main
Pre_blockchain_basics["blockchain-basics"]:::pre --> Center
click Pre_blockchain_basics "/terms/blockchain-basics"
Pre_consensus_mechanism["consensus-mechanism"]:::pre --> Center
click Pre_consensus_mechanism "/terms/consensus-mechanism"
Rel_layer_2["layer-2"]:::related -.-> Center
click Rel_layer_2 "/terms/layer-2"
Rel_rollups["rollups"]:::related -.-> Center
click Rel_rollups "/terms/rollups"
Rel_state_channel["state-channel"]:::related -.-> Center
click Rel_state_channel "/terms/state-channel"
classDef main fill:#7c3aed,stroke:#8b5cf6,stroke-width:2px,color:white,font-weight:bold,rx:5,ry:5;
classDef pre fill:#0f172a,stroke:#3b82f6,color:#94a3b8,rx:5,ry:5;
classDef child fill:#0f172a,stroke:#10b981,color:#94a3b8,rx:5,ry:5;
classDef related fill:#0f172a,stroke:#8b5cf6,stroke-dasharray: 5 5,color:#94a3b8,rx:5,ry:5;
linkStyle default stroke:#4b5563,stroke-width:2px;
🧒 Explain Like I'm 5
🚜 Imagine a private express lane built next to a jammed highway. You can drive much faster there, but the road is maintained by a private company instead of the government. You move your car onto this lane when you're in a hurry and move back to the main highway when you reach your destination.
🤓 Expert Deep Dive
Sidechain architecture is defined by the security of its Two-Way Peg (2WP). Centralized/Federated Pegs (e.g., Liquid Network) rely on a 'Strong Federation' of functionaries to sign multisig transactions. Merged Mining (e.g., RSK, Namecoin) uses Auxiliary Proof-of-Work (AuxPoW) to allow L1 miners to secure the sidechain without extra energy. Drivechains (BIP-300/301) propose a 'hashrate escrow' where miners vote on peg-outs over a multi-month period, potentially decentralizing the bridge. Technically, sidechains differ from rollups in Data Availability (DA): while rollups post compressed transaction data to L1 to ensure trustless state reconstruction, sidechains keep DA local, requiring users to trust the sidechain's own validator set or federation.
❓ Frequently Asked Questions
How are Sidechains different from Layer 2 Rollups?
Rollups share security with the mainchain by posting validity or fraud proofs; sidechains are sovereign and rely on their own validators. If a rollup's sequencer fails, you can still exit via L1; if a sidechain's validators collude, assets can be stolen.
What is Merged Mining?
It's a process where miners solve blocks for two or more chains simultaneously. RSK is secured by Bitcoin miners using this method, inheriting a portion of Bitcoin's massive hashrate.