Sidechain

On this page 7

A sidechain is an independent blockchain that runs in parallel to a main chain and is connected to it by a two-way bridge, so assets can move from the main chain to the sidechain and back. It has its own consensus mechanism, validators and block parameters, which lets it process transactions faster or more cheaply than the main chain.

In blockchain scaling, sidechains are one of the oldest approaches to raising throughput. Their defining trait is that they do not inherit the security of the main chain: users trust the sidechain’s own validators and the bridge, which separates sidechains from layer 2 blockchains such as rollups.

How a sidechain connects to the main chain

A sidechain is linked to its parent through a peg mechanism. To move an asset, a user locks it in a contract or address on the main chain, and the bridge mints an equivalent representation on the sidechain. To return, the user burns the sidechain token, and the bridge releases the original asset on the main chain.

Who controls that release is the crucial design decision. In a federated peg, a fixed group of signers holds the locked funds under a multisignature threshold such as 11 of 15. In a validator-based bridge, the sidechain’s own validator set attests to withdrawals. Neither model lets the main chain itself verify that the sidechain behaved correctly.

The components of this arrangement are summarized below.

ComponentFunctionTrust assumption
Main chain lock contractHolds assets moved to the sidechainCode correctness
Bridge signers or relayersAuthorize minting and releasesHonest signer majority
Sidechain consensusOrders and finalizes sidechain blocksHonest validator majority
Wrapped assetsRepresent locked main chain tokensRedeemability through the bridge
Checkpoints, if usedRecord sidechain state on the main chainAccuracy of submitted data
Core components of a sidechain system

Design parameters and variants

Because a sidechain is a full blockchain, its designers choose block time, block size, fee model and validator count freely. Typical sidechains use proof of stake or proof of authority with block times of a few seconds, against roughly 12 seconds on Ethereum and about 10 minutes on Bitcoin.

DesignConsensus approachTypical use
Federated sidechainKnown functionaries sign blocksFaster Bitcoin settlement between institutions
Merge-mined sidechainShares hash power with BitcoinSmart contracts tied to Bitcoin
Proof of stake sidechainStaked validators produce blocksLow-cost EVM applications
Proof of authority chainApproved validators onlyEnterprise or gaming networks
Checkpointed sidechainOwn consensus plus main chain checkpointsAdded auditability of history
Common sidechain designs

Fewer validators usually mean higher throughput and lower decentralization. A chain with 21 validators can finalize blocks quickly, but collusion by a majority of them could approve invalid withdrawals, so validator count and independence are central to evaluating any sidechain.

Sidechains compared with rollups and other scaling methods

The essential distinction is where security comes from. A rollup posts its transaction data to the main chain and proves or allows challenges to its state, so a dishonest operator cannot steal funds. A sidechain only promises correct behavior through its own validators.

ApproachSecurity sourceWithdrawal to main chain
SidechainOwn validators and bridgeMinutes, depends on bridge
Optimistic rollupMain chain plus fraud proofsAbout seven days without fast exits
ZK-rollupMain chain plus validity proofsHours after proof verification
State channelMain chain dispute contractOn channel close
ValidiumValidity proofs, off-chain dataDepends on data committee
Sidechain compared with neighboring approaches

Some networks began as sidechains and later adopted rollup technology to inherit main chain security, which illustrates how the line has shifted. The label layer 2 should strictly be reserved for systems whose funds remain safe even if the operators act maliciously, a guarantee that sidechains do not provide.

Risks and failure modes

The largest losses in this area have come from bridge compromises rather than from the sidechains themselves. When attackers obtain enough signing keys, they can release all locked assets, leaving the wrapped tokens on the sidechain unbacked.

  • Key compromise: a small signer set can be targeted by phishing or infrastructure attacks.
  • Validator collusion: a majority can approve invalid state or censor users.
  • Liveness failure: if validators stop, users may be unable to exit.
  • Wrapped asset depeg: bridged tokens can trade below the original after an incident.
  • Smart contract bugs: errors in bridge contracts can bypass all signatures.

Mitigations include larger and more diverse signer sets, hardware security modules, rate limits on withdrawals, monitoring that pauses the bridge on anomalies, and periodic checkpoints of sidechain state to the main chain so that history can at least be audited.

When a sidechain is the right choice

A sidechain suits applications that need custom rules, very low fees and fast blocks and that can accept a weaker trust model. It suits poorly any system that stores large values for users who expect main chain security.

RequirementSuitable optionReason
Custom consensus or privacy rulesSidechainFull control over chain design
High-value user fundsRollupInherits main chain security
Many micro-payments between fixed partiesState channelNear-zero cost per payment
Game assets with low unit valueSidechain or app chainCheap transactions, tolerable risk
Decision guide for choosing a scaling approach

Before committing, a team should document who runs the validators and the bridge, how keys are stored, what happens if the chain halts, and how users can exit. Publishing these answers lets users judge the risk for themselves, which is the minimum standard of honesty for any system that asks for custom trust.

The short version

A sidechain is a second road built next to a crowded highway. Traffic can move faster and cheaper on the side road, and there are ramps that let cars cross between the two. The side road has its own police, though, so drivers rely on them rather than on the main highway’s patrol.

That is the trade-off. Sidechains make transactions faster and cheaper, but the safety of the assets depends on the people running the side road and the bridge between the roads.

Where it makes a difference

A studio building a blockchain-based card game expects players to make thousands of small moves and item trades each day. Paying main chain fees for every action would cost more than the items are worth, so the studio deploys the game on a proof of stake sidechain with two-second blocks and fees of a fraction of a cent.

Players bridge a small amount of currency to the sidechain once and then trade freely. The studio limits the bridge to a daily withdrawal cap and keeps rare, high-value items redeemable on the main chain, where they are stored after major tournaments.

The game runs smoothly at low cost. The studio accepts sidechain trust for low-value activity while keeping significant value under main chain security, which is the pattern that makes sidechains useful in practice.