A sidechain is a separate, independent blockchain that runs in parallel to a main blockchain and is connected to it through a two-way peg a mechanism allowing assets to move between the main chain and the sidechain while maintaining equivalent value on both sides. Sidechains enable additional functionality, higher transaction throughput, or specialised features without modifying the main chain's protocol.
HOW SIDECHAINS WORK: THE TWO-WAY PEG
To move assets from the main chain to a sidechain: Users lock their mainchain assets (e.g., BTC) in a smart contract or multi-sig address on the main chain. An equivalent amount of "pegged" tokens is created (minted) on the sidechain, representing the locked main chain assets. Users can transact freely on the sidechain using these pegged tokens. To return to the main chain, users burn the sidechain tokens and unlock the original assets on the main chain. The peg mechanism ensures that the total supply across both chains remains constant.
SIDECHAIN VS. LAYER
2Sidechains have their own independent consensus mechanisms and validator sets they are not secured by the main chain. This gives them flexibility but means their security depends on their own validator set, not the main chain's security. Layer 2 solutions (rollups) derive their security from the main chain by posting proofs or data to it a significantly stronger security model.
NOTABLE SIDECHAIN IMPLEMENTATIONS
Liquid Network (Bitcoin): Operated by a federated group of exchanges and financial institutions, Liquid enables confidential transactions, fast settlement (2 minutes vs Bitcoin's 10), and asset issuance on Bitcoin primarily for institutional trading.
Polygon PoS (Ethereum): Originally a sidechain (now more of a validium/commit chain), Polygon PoS provides fast, low-cost Ethereum-compatible transactions secured by its own validator set.
Gnosis Chain: Originally xDai, Ethereum sidechain now secured by Gnosis validator set used for stable micropayments.
Rootstock (RSK): Bitcoin sidechain enabling Ethereum-compatible smart contracts secured by merge mining with Bitcoin.