Skip to main content

How Does the Two-Way Peg Mechanism Work for a Sidechain?

The two-way peg is the mechanism that allows assets to be transferred between the main blockchain and the sidechain and back again. To move an asset to the sidechain, the asset is "locked" on the main chain.

A corresponding amount of the asset is then "unlocked" or minted on the sidechain. To move it back, the process is reversed: the asset is burned on the sidechain, and the original asset is unlocked on the main chain.

This peg ensures the supply of the asset remains consistent across both chains.

Why Is the Public Key Derived from the Private Key, and Not Vice Versa?
What Is the Concept of a ‘Sidechain’ and How Is It Used to Scale Financial Transactions?
What Is the Concept of a ‘Sidechain’ and How Does It Rely on Cryptographic Security?
What Is a ‘Sidechain’ and Its Purpose?