Sidechain
A sidechain is a separate blockchain linked to a main chain by a two-way bridge, with its own validators and security. Unlike a rollup, it does not inherit the main chain's security.
Main chains like Bitcoin and Ethereum change slowly and have limited capacity. A sidechain is one way around that: a separate blockchain, with its own rules and block producers, that can receive coins from the main chain and send them back. The catch is security. A sidechain is only as safe as its own validators and its bridge, which is the key difference from layer-2 rollups. This page explains how sidechains work, how pegs move coins, and how to judge the trust you take on.
- Category
- Cryptocurrency and Blockchain
- Reading time
- 6 min
- Also called
- Side chain, Pegged sidechain, Two-way peg
- Updated
A sidechain in plain words
A sidechain is an independent blockchain that runs alongside a main chain such as Ethereum and is connected to it by a two-way bridge.1
It uses its own consensus method, block time and limits, so it does not rely on the main chain to agree on its blocks.1 That also means it does not get the main chain's security guarantees.1
The idea was set out for Bitcoin in a 2014 paper on pegged sidechains, which described a two-way peg: coins move to a sidechain and back at a fixed or otherwise deterministic rate.2
How a two-way peg moves coins, step by step
Lock coins on the main chain
You send coins to a special address or contract on the main chain, where they are held.3
Wait for confirmations
The sidechain waits until the deposit is buried deep enough; Liquid asks for 102 Bitcoin confirmations.4
Receive the pegged coin
The sidechain releases an equal amount of its pegged asset, such as L-BTC on Liquid, backed one-to-one by locked bitcoin.4
Use the sidechain
Transact under the sidechain's own rules, for example faster blocks or smart contracts. See Ethereum Virtual Machine (EVM).
Peg out
Return the pegged coin to the bridge; the sidechain's signers then release the locked coins on the main chain.3
Know who holds the keys
The locked coins are controlled by the sidechain's signers or validators, so their honesty is part of your risk.1
Worked examples
Example 1 — Waiting for a Liquid peg-in
About 17 hoursLiquid requires 102 confirmations on a Bitcoin deposit before the L-BTC can be claimed.4 Assume Bitcoin's 10-minute average block time.
| Minutes of blocks | 102 × 10 = 1,020 |
| In hours | 1,020 ÷ 60 = 17 |
A peg-in takes most of a day, so a sidechain is not an instant way to move bitcoin.
Example 2 — Rootstock's PowPeg timing
Hours, not minutesRootstock counts 100 Bitcoin blocks for a peg-in and roughly 200 Bitcoin blocks of time for a peg-out.3 Assume 10-minute blocks.
| Peg-in | 100 × 10 = 1,000 min |
| Peg-in in hours | 1,000 ÷ 60 ≈ 16.7 |
| Peg-out | 200 × 10 = 2,000 min |
| Peg-out in hours | 2,000 ÷ 60 ≈ 33.3 |
Long waits protect the peg against chain reorganisations, at the cost of speed.2
Example 3 — Trust in a federation
Trust assumptionA hypothetical sidechain's locked coins sit in an 11-of-15 multisig held by a federation.
| Signers needed to move coins | 11 |
| Signers that can block exits | 15 − 11 + 1 = 5 |
| Share able to block | 5 ÷ 15 ≈ 33% |
Users trust that 11 signers will not collude and that 5 will not refuse to sign. See Multisig Wallet.
Sidechain vs. layer-2 rollup
Both move activity off the main chain, but only a rollup posts its data back and leans on the main chain's security.5
| Aspect | Sidechain | Rollup (layer 2) |
|---|---|---|
| Consensus | Its own validators or signers | Settles on the main chain |
| Data posted to main chain | No | Yes, transaction data |
| Security | Its own; not inherited | Inherited from the main chain |
| Main trust point | Validators and the bridge | Proof system and contracts |
| Examples | Polygon PoS, Gnosis Chain, Liquid | See Optimistic and ZK Rollups |
What sidechains are used for
Cheaper, faster transactions
Different consensus designs can process more transactions at lower fees.1
Running Ethereum apps elsewhere
EVM-compatible sidechains can run contracts written for Ethereum with little or no change.1 See Ethereum Virtual Machine (EVM).
New features for bitcoin
Liquid adds confidential amounts and issued assets such as stablecoins.4
Testing ideas safely
The 2014 paper argued that problems on a sidechain stay confined to the sidechain.2
Advantages and disadvantages
Advantages
- Higher throughput and lower fees than many main chains.
- Can add features the main chain lacks, like privacy or smart contracts.
- Uses the main chain's coin instead of a brand-new token.
- Well-studied design that has been in use for years.
Disadvantages
- Does not inherit the main chain's security.
- Users must trust the sidechain's validators or federation.
- Peg-ins and peg-outs can take many hours.
- The bridge holding locked coins is a target for attackers. See Cross-Chain Bridge.
Going deeper
Read as far as you need. Each level builds on the one before it.
A separate road with a toll gate
Beginner
Think of a sidechain as a separate road next to a motorway, with a gate between them. The road has its own police, so its safety depends on them, not on the motorway's.1
The coins do not literally travel: they are locked on one chain while a matching amount is created on the other, and destroyed again on the way back.1
Sidechains are not layer 2
Intermediate
Ethereum's definition of layer 2 is a chain that posts its transaction data to Ethereum and inherits its security.5 Sidechains do not post state changes or transaction data back, so they fall outside that definition.1 See Layer 1 and Layer 2.
Some projects call themselves layer 2 in marketing even though they work like sidechains, so check where data is posted and who can release the bridge funds.
SPV pegs and federated pegs
Advanced
The 2014 paper proposed an SPV peg: coins locked on the parent chain unlock only with a proof that work was done on the sidechain, followed by a confirmation period and a contest period during which a fraudulent transfer can be challenged.2 See Merkle Tree.
Because Bitcoin's script could not check such proofs, the paper also described a federated peg, where a group of functionaries signs a multisig to carry out the rules.2 Liquid works this way, with block signers and watchmen in a federation of more than 80 members.4
Rootstock is merge-mined with Bitcoin, and its PowPeg keeps the multisig keys in tamper-resistant hardware that signs only after seeing enough cumulative proof of work.3
Common mistakes
Calling every sidechain a layer 2
Without posting data to the main chain, a sidechain does not inherit its security.5
Treating pegged coins as the real coin
L-BTC or a bridged token is a claim on coins locked by the sidechain's signers. See Wrapped Tokens.
Ignoring withdrawal times
Peg-outs can take many hours or more, which matters if you need to exit fast.3
Skipping the validator check
Ask how many validators exist and who they are; a small group can collude.1
Check your understanding
Test yourself before moving on. Each answer comes with an explanation.
Key points to remember
- A sidechain is a separate blockchain linked to a main chain by a two-way bridge.
- It has its own consensus and does not inherit the main chain's security.
- Rollups post data to the main chain; sidechains do not.
- Peg-ins and peg-outs lock and release coins, often after many hours.
- Your real risk sits with the sidechain's validators and bridge signers.
Frequently asked questions
Is Polygon a sidechain?
Does Bitcoin have sidechains?
Is the Lightning Network a sidechain?
Further learning
- Layer 1 and Layer 2
Where sidechains sit next to layer-2 networks.
- Optimistic and ZK Rollups
The layer-2 design that inherits main-chain security.
- Cross-Chain Bridge
The mechanism that moves coins on and off a sidechain.
- Atomic Swap
A way to swap coins between chains without using the peg.
Sources
This article is written in our own words. The sources below support the specific facts, rules and figures marked with a number in the text. Links open the original publisher’s page.
- ethereum.org. Sidechains (opens in a new tab) Checked .
- Back, Corallo, Dashjr et al.. Enabling Blockchain Innovations with Pegged Sidechains (2014) (opens in a new tab) Checked .
- Rootstock Developer Portal. PowPeg (opens in a new tab) Checked .
- Liquid Network Docs. Technical overview (opens in a new tab) Checked .
- ethereum.org. What is layer 2? (opens in a new tab) Checked .
Educational content, not financial advice. Examples use hypothetical prices and simplified costs; actual fees, margin rules and regulations vary by broker, market and country. We are not affiliated with any publisher linked above. Last reviewed . Report an error or request a source credit.