{"id":"sidechain","version":1,"language":"en","title":"Sidechain","hidden":false,"content":"**Sidechain** is a separate, independent [blockchain](https://iq.wiki/wiki/blockchain) that runs in parallel and is linked to the main blockchain, often referred to as the 'main chain' or 'parent chain', through a two-way bridge.[\\[1\\]](#cite-id-nvv3kjcj48)  \n$$widget0 [YOUTUBE@VID](cFRj2-jzm8E)$$  \n  \n# Overview  \n  \nThe concept of sidechains was first introduced by Dr. Adam Back, the founder of HashCash and CEO of Blockstream, in his paper titled ‘Enabling Blockchain Innovations with Pegged Sidechains’, which was published on October 22, 2014. Several Bitcoin engineers, including Matt Corallo, Luke Dashjr, Mark Friedenbach, and others, were also involved in its development. A sidechain, as a distinct blockchain connected to the main blockchain (often referred to as the 'mainchain') through a two-way bridge, facilitates the transfer of tokens or digital assets between the mainchain and the sidechain.[\\[3\\]](#cite-id-tr98crddhxr) Adam and his team proposed:  \n  \n> We propose a new technology, pegged sidechains, which enables Bitcoins and other ledger assets to be transferred between multiple blockchains. This gives users access to new and innovative cryptocurrency systems using the assets they already own.[\\[4\\]](#cite-id-fz9de146q2)  \n  \n![Multi-block-sidechain-ecosystem-with-the-BT-blockchain-as-a-parent-chain.png](https://ipfs.everipedia.org/ipfs/QmdZ3UWvoZeCiuZhnwP6N21XxYCCHFWcSvwvKCRCSv8J9M)  \nThe sidechain allows the execution of specific functions or applications while still leveraging the security and consensus mechanisms of the main chain. Additionally, depending on the [blockchain](https://iq.wiki/wiki/blockchain)'s design, multiple sidechains can be connected to the main chain. Communication between sidechains is also feasible, using the [mainnet](https://iq.wiki/wiki/mainnet) as a relay network.  \n  \nSidechains can host [decentralized apps (dapps)](https://iq.wiki/wiki/decentralized-application) and help alleviate some of the computational burdens on the mainchain, acting as a scaling solution. By transferring certain types of transactions or processes to a dedicated sidechain, congestion on the main chain can be reduced, leading to enhanced overall performance.[\\[1\\]](#cite-id-nvv3kjcj48)  \n  \n# Types and Examples of Sidechains  \n  \nThere are two basic types of sidechains:  \n  \n* With two independent [blockchains](https://iq.wiki/wiki/blockchain)  \n* One blockchain is dependent on the other  \n  \nIn the case of the former, both blockchains can be thought of as the sidechain of the other, to say, they are equal, and sometimes both blockchains will have their own native [token](https://iq.wiki/wiki/ai-tokens).  \n  \nIn the case of the latter, one sidechain can be thought of as the parent chain and the other as the dependent or ‘child’ chain. Typically in a parent-child sidechain relationship the child chain does not create its own assets. Instead, it derives any assets from transfers from the parent chain.[\\[2\\]](#cite-id-lpzw5e04zq)  \n  \n## SmartBCH  \n  \nSmartBCH is an example of the first type of sidechain - two independent [blockchains](https://iq.wiki/wiki/blockchain). SmartBCH is an Ethereum Virtual Machine (EVM) and [web3](https://iq.wiki/wiki/web3)-compatible sidechain for [Bitcoin Cash](https://iq.wiki/wiki/bitcoin-cash), but does not have its own native [token](https://iq.wiki/wiki/ai-tokens). SmartBCH uses a bridge called 'SHA-Gate'. Transferring from [BCH](https://iq.wiki/wiki/bitcoin-cash) to SmartBCH is handled by BCH full-node clients.  \n  \n## Drivechain  \n  \nDrivechain is an example of the second type of sidechain - parent-child. [Bitcoin](https://iq.wiki/wiki/bitcoin) is the parent and Drivechain is the child, thus Drivechain does not issue a native token. Instead, it relies solely on [BTC](https://iq.wiki/wiki/bitcoin-btc) transferred from the [Bitcoin network](https://iq.wiki/wiki/bitcoin). Drivechain uses SPV to implement its 2-way peg, which relies on miners to validate transfers. [51% attacks](https://iq.wiki/wiki/51percent-attack) by a coalition of miners are possible. Drivechain creates Blind Merged Mining (BMM), which addresses the drawback of sidechains requiring their own miners. BMM allows a miner on the [Bitcoin](https://iq.wiki/wiki/bitcoin) blockchain (parent) to mine on Drivechain (child) without running a Drivechain full node, and the miner is paid in [BTC](https://iq.wiki/wiki/bitcoin-btc).  \n  \n## Polygon  \n  \n[Polygon](https://iq.wiki/wiki/polygon) is a mixture of both types of sidechains. It uses an [Ethereum](https://iq.wiki/wiki/ethereum) framework called Plasma, which allows the creation of child chains that can process transactions before periodically being finalized on the Ethereum blockchain. Polygon is EVM compatible. On the other hand, Polygon issues its own native token, [MATIC](https://iq.wiki/wiki/matic), through [Proof-of-Stake](https://iq.wiki/wiki/proof-of-stake) [validators](https://iq.wiki/wiki/validator). It features 'two' 2-way pegs, one through Plasma and one through the Proof-of-Stake validators.[\\[2\\]](#cite-id-lpzw5e04zq)  \n  \n# Sidechain Implementation  \n  \nIn a typical sidechain implementation, a transaction is initiated on the primary blockchain, commonly referred to as the main chain, through the process of asset locking. Following this, a corresponding transaction is created on the secondary blockchain, or the sidechain, which necessitates providing cryptographic proof that confirms the proper locking of assets on the main chain.  \n![image](https://ipfs.everipedia.org/ipfs/Qmdqot9NZ9y6AbNMHdP5wG15PNfWjMP83h1DvM8mf2hPvx)  \nFor instance, to transfer 1 BTC from the [Bitcoin](https://iq.wiki/wiki/bitcoin-btc) network to a sidechain, the user initiates a transaction directing 1 BTC to a predefined lockbox address on the Bitcoin network. This action temporarily excludes the transferred BTC from the active Bitcoin supply. The transaction incorporates details of the sidechain recipient address where the BTC is to be forwarded. Upon verification and incorporation of the transaction into the Bitcoin blockchain, the sidechain facilitates the release of 1 BTC to the specified address in the initial transaction. To revert the transfer and send the BTC back to the Bitcoin network, the process is executed in reverse.[\\[1\\]](#cite-id-nvv3kjcj48)  \n![image](https://ipfs.everipedia.org/ipfs/QmWZDFJzayRtRpqabdufDfHfAxMJmdB4StzFoN2W8bzPPH)  \n  \n# Characteristics  \n  \n## Interoperability  \n  \nSidechains are designed to be interoperable with the main chain, allowing assets or data to be transferred between the two chains. This enables users to move assets from the main chain to the sidechain and vice versa.  \n  \n## Independence  \n  \nSidechains can have their own consensus mechanisms, rules, and features tailored to specific use cases. This allows developers to experiment with new features or optimizations without risking the stability of the main chain.  \n  \n## Two-Way Pegging  \n  \nA common feature of sidechains is the ability to lock a certain amount of [cryptocurrency](https://iq.wiki/wiki/cryptocurrency) on the main chain, which then [mints](https://iq.wiki/wiki/minting) an equivalent amount of tokens on the sidechain. This is known as a two-way pegging mechanism and allows assets to move between the main chain and the sidechain.  \n  \n## Specific Use Cases  \n  \nSidechains can be created for specific purposes, such as enhancing privacy, increasing transaction speed, or implementing smart contracts. This specialization enables different sidechains to cater to different needs.  \n  \n## Reduced Network Load  \n  \nBy handling specific types of transactions or functions on a sidechain, the main chain's network load can be reduced, leading to improved scalability and faster transaction confirmation times.  \n  \n## Security Considerations  \n  \nWhile sidechains can offer various benefits, security is a critical concern. Proper mechanisms must be in place to ensure that assets transferred between the main chain and the sidechain are not susceptible to attacks or vulnerabilities.[\\[5\\]](#cite-id-49fv4ywigou)  \n  \n# Risks  \n  \nSince sidechains are usually independent blockchains, their security can potentially be compromised since they are not secured by the main chain. On the other hand, if a sidechain is compromised, it won’t affect the main chain, so it can be used to experiment with new protocols and improvements to the main chain.  \n  \nSidechains require their own miners. In parent-child sidechains, the child chain typically does not have its own native coin. This acts as a disincentive for miners because their chief source of income is from the issuance of native coins.  \n  \nFor example, if the user holds [BTC](https://iq.wiki/wiki/bitcoin-btc) because of [Bitcoin’s](https://iq.wiki/wiki/bitcoin) security and trust model, and then transfers BTC to a sidechain, the security will be less robust, and the trust model will be different.[\\[2\\]](#cite-id-lpzw5e04zq)","summary":"Sidechain is an independent blockchain linked to a mainchain, allowing transfers of digital assets between them, thus introducing innovative cryptocurrency syst...","categories":[{"id":"defi","title":"Decentralized Finance"}],"promoted":0,"tags":[{"id":"Glossary"}],"metadata":[{"id":"references","value":"[{\"id\":\"nvv3kjcj48\",\"url\":\"https://crypto.com/university/what-are-sidechains-scaling-blockchain#:~:text=A%20sidechain%20is%20a%20separate,the%20mainchain%20and%20the%20sidechain.\",\"description\":\"sidechains\",\"timestamp\":1693350522418},{\"id\":\"lpzw5e04zq\",\"url\":\"https://www.bitcoin.com/get-started/what-are-sidechains/#:~:text=SmartBCH%20is%20an%20example%20of,have%20its%20own%20native%20token.\",\"description\":\"examples of different sidechains\",\"timestamp\":1693421617564},{\"id\":\"tr98crddhxr\",\"url\":\"https://blockstream.com/sidechains.pdf\",\"description\":\"'SIDECHAIN' academic paper\",\"timestamp\":1693430657418},{\"id\":\"fz9de146q2\",\"url\":\"https://www.coindesk.com/learn/an-introduction-to-sidechains/\",\"description\":\"authors about pegged sidechain in the academic paper\",\"timestamp\":1693430911619},{\"id\":\"49fv4ywigou\",\"url\":\"https://limechain.tech/blog/what-are-sidechains/\",\"description\":\"characteristics of  a sidechain\",\"timestamp\":1693431284696}]"},{"id":"previous_cid","value":"QmafRsbYbsbbE5Cdix3qvMeG6QiRhnBPCVmAxMthiJ8PWF"}],"user":{"id":"0x5456afEA3aa035088Fe1F9Aa36509B320360a89e"},"author":{"id":"0xa99437c1445649AA316f7CC43dFf3E6e210a5F23","profile":{"username":"Karishma","avatar":"Qmc7ek3BpBjheHQ4knBSdPt6UJEnbJQQmbe8iNEPW2L88F"}},"media":[{"name":"Multi-block-sidechain-ecosystem-with-the-BT-blockchain-as-a-parent-chain.png","id":"QmdZ3UWvoZeCiuZhnwP6N21XxYCCHFWcSvwvKCRCSv8J9M","size":"0.07","type":"GALLERY","source":"IPFS_IMG"},{"name":"image","id":"Qmdqot9NZ9y6AbNMHdP5wG15PNfWjMP83h1DvM8mf2hPvx","size":"0.05","type":"GALLERY","source":"IPFS_IMG"},{"name":"image","id":"QmWZDFJzayRtRpqabdufDfHfAxMJmdB4StzFoN2W8bzPPH","size":"0.06","type":"GALLERY","source":"IPFS_IMG"},{"name":"image","id":"QmNu8sTWaHnXn6VzhAtczCyy1BkqNK9Vj9KAcXEQgptT1U","size":"0.02","type":"GALLERY","source":"IPFS_IMG"},{"name":"image","id":"QmZrZ4yHm9QTqR6oJrfFLnPV3bFPvtEeA1CE7hUVP772TN","size":"0.12","type":"GALLERY","source":"IPFS_IMG"},{"name":"cFRj2-jzm8E","id":"https://www.youtube.com/watch?v=cFRj2-jzm8E","size":"0","type":null,"source":"YOUTUBE"},{"name":"9pJjtEeq-N4","id":"https://www.youtube.com/watch?v=9pJjtEeq-N4","size":"0","type":null,"source":"YOUTUBE"}],"views":361,"events":[],"linkedWikis":null,"founderWikis":[],"blockchainWikis":[],"ipfs":"QmafRsbYbsbbE5Cdix3qvMeG6QiRhnBPCVmAxMthiJ8PWF","transactionHash":"0xf27799b1996e187af057c8acf62f537f3859731146b714d6702aa0b4b4893587","created":"2023-08-29T23:15:17.156Z","updated":"2023-12-16T18:31:12.276Z","images":[{"id":"QmNpYQyodCknVfFwgZtht5c8nnCWTHomX2HjKUV2XmxENj","type":"image/jpeg, image/png"}]}