Lines

Sidechain 101: What are sidechains and why do we need them on Polkadot?

Project UpdateMay 11, 2022
New image

When it comes to scalability, Polkadot is one of the leading blockchain platforms. So why did Integritee feel the need to develop a second-layer sidechain protocol for Polkadot? In this post, we will take a look at the origin of sidechains and why they are needed on Polkadot. Then, we will describe how Integritee has created a second-layer protocol that can deliver sub-second block times, with 1,000 transactions per second (TPS) per sidechain, and up to 1 million TPS over the entire Integritee network.

The Origin of Sidechains

Traditional proof-of-work (PoW) blockchains rely on a combined hash rate to ensure their security. In principle, the more miners there are and the more computer hardware devoted to mining, the harder the network is to breach, as an intruder typically needs to control 51% of the overall computational power to gain control.

However, the need for mining also leads to scalability issues, where a heavy transaction load can create bottlenecks. Bitcoin, for instance, processes an average of 3-7 transactions per second, whereas traditional payment processors like VISA average 1,700.

Sidechains emerged in response to this challenge. A sidechain is a second blockchain that processes transactions separately and connects at set intervals to the mainchain to update its verified state. By reducing the number of transactions that need to be verified on the mainchain, sidechains enable greater scalability and faster transaction times.

Typically both the parent blockchain and sidechain contain lock boxes connected by a two-way peg. In order to use the sidechain, a user needs to lock assets on the mainchain by sending them to a designated lockbox address. A corresponding amount of assets then become available on the sidechain. Once on the sidechain, assets can be transacted at greater speed. That’s how it works on Liquid Network, for example, a Bitcoin-based sidechain that reduces the block time to one minute and enables 7-10 TPS.

Other than increased scalability, another potential benefit of sidechains is that they can be used to provide a higher degree of transaction privacy, as not every transaction needs to be disclosed on the mainchain. A key disadvantage, however, is that the security of a sidechain is totally separate from the mainchain, and may be weaker if the sidechain network is smaller and lacks access to a large and diverse pool of validators.

Scalability on Polkadot

Polkadot has significant advantages when it comes to scalability. Firstly, it uses a form of nominated proof of stake (NPoS) to achieve consensus. This makes the total volume of staked assets — rather than the total hashing power of the network — the most relevant metric for determining the core security of the network. With mining not taking up computing resources, validation is faster.

In addition, Polkadot adopts a pooled security model, whereby many separate blockchains called parachains can connect to a common relay chain and share security resources. This architecture enables it to achieve about 166-1000 TPS in current real-world operations and makes it one of the most energy-efficient blockchain protocols, according to research by the Crypto Carbon Ratings Institute.

Why Polkadot Needs Sidechains

Given that Polkadot performs comparatively well on scalability, why did Integritee develop sidechains? The first reason is privacy. While Polkadot offers competitive transaction speeds, as a public blockchain, it is transparent by nature. Transparency is an oft-cited advantage of blockchain but in some cases, it can be problematic. A user may wish to access a service that requires identity verification without publicly disclosing any personal information, for instance. A cryptocurrency trader may wish to execute a large trade on an exchange without the threat that so-called frontrunners will gain prior knowledge of the move by monitoring the mempool of unconfirmed transactions. So there is a need for confidential processing of certain data — such as the user’s personal information or the trader’s order.

The second motivation for sidechains is performance. While Polkadot comes out well in comparative tests with other blockchains, sometimes quite fast is not fast enough. Take the rapidly growing blockchain gaming space. During a fast-paced game, there could be multiple events within a space of seconds that would affect the value or ownership status of in-game assets, and any lags in responsiveness caused by latency issues will diminish the gameplay experience. This is why the decentralized blockchain gaming platform Ajuna chose to use Integritee sidechains to maximize performance and reduce latency to 300ms. And this is just one example — from high-frequency digital asset trading to connectivity with industrial IoT devices, there are many other scenarios that involve a similarly high transaction throughput.

How Integritee’s Sidechains Were Developed

One of the first big breakthroughs we made at Integritee was to establish a framework whereby Substrate-based blockchains like Polkadot and Kusama could harness trusted execution environments (TEEs) to process data confidentially. (For an explanation of how we use TEEs, read our previous article on the topic.)

At first, this was not a sidechain solution per se. Users could simply send data to a trusted function on a TEE and receive an on-chain response. Initially, every TEE transaction needed to first pass through the main blockchain to determine the order in which transactions would be processed, which limited the scalability of the solution.

To make Integritee even faster and more scalable, therefore, we developed sidechains that support multiple validators operating within TEEs. A unique advantage of Integritee sidechains is that because every validator operates within a TEE, all validators can trust each other, which means that consensus can be reached with a much faster and simpler protocol. As a result, Integritee can deliver sub-second block times with 1,000 TPS on each sidechain. In combination, this provides a cumulative capacity of up to 1 million TPS over the entire Integritee Network for well-shardable use cases.

The Polkadot platform offers highly competitive scalability balanced with security and flexibility. However, some use cases require transaction privacy, high transaction throughput, or low latency. Integritee sidechains are ideally suited to processing sensitive data at scale, or for any blockchain use case that requires ultra-fast response times.

You Might Also Like

New image
Project UpdateDecember 04, 2024

Monthly Wrap-Up November 2024: All about Incognitee and Privacy in Web3

New image
Project UpdateNovember 29, 2024

Blockchain and Cybersecurity: Can Decentralization Solve the Biggest Security Challenges?

New image
Project UpdateNovember 14, 2024

The Evolution of Smart Contracts: What’s Next?

New image
Project UpdateNovember 05, 2024

Monthly Wrap-Up October 2024: Incognitee Beta Launch & Guess the Number Contest

New image
Project UpdateOctober 31, 2024

Incognitee Beta Launch & Guess the Number Contest

New image
Project UpdateOctober 30, 2024

Cross-Chain Interoperability: Major Issues & How to Tackle Them

New image
Project UpdateOctober 11, 2024

Different Types of Crypto Wallets: All You Need to Know

New image
Project UpdateOctober 07, 2024

Monthly Wrap-Up September 2024: TEERDays Launch, Tech Updates, New Articles & More

New image
Project UpdateSeptember 30, 2024

Public vs Private Blockchain RPC Nodes: What’s Best?

New image
Project UpdateSeptember 12, 2024

AI & Confidential Computing: Building Trustworthy AI Applications with TEEs

New image
Product UpdateSeptember 10, 2024

TEERdays: A New Unit That Will Shape Incognitee

New image
Project UpdateAugust 05, 2024

Monthly Wrap-Up July 2024: Talking at Decoded, Launching Treasury Proposals, Publishing Articles & More

New image
Project UpdateJuly 02, 2024

Monthly Wrap-Up June 2024: Incognitee Bug Bounty Launch, Polkadot Treasury Proposal & More

New image
Platform UpdateJune 26, 2024

Become a Collator Operator for Integritee Network!

New image
Project UpdateJune 03, 2024

Monthly Wrap-Up May 2024: Securing a Polkadot Parachain, Launching the Incognitee Test Campaign & More

New image
Product UpdateMay 07, 2024

The Incognitee User Test Campaign is Now Live!

New image
Industry InsightsApril 16, 2024

Slot Auctions vs Coretime: What’s Changing for Polkadot Projects

New image
Project UpdateApril 03, 2024

Monthly Wrap-Up March 2024: Listing TEER on Basilisk, Attending Sub0 & Paseo Landing

New image
Project UpdateMarch 05, 2024

Monthly Wrap-Up February 2024: Crowdloan, Governance and Treasury

New image
Project UpdateFebruary 05, 2024

Monthly Wrap-Up January 2024: Launching the Incognitee Testnet, Winning a Hackernoon Award & Much More!

New image
Project UpdateFebruary 02, 2024

Polkadot Crowdloan: Campaign Kicks Off on February 7th!

New image
Project UpdateJanuary 30, 2024

2023 at Integritee: Product Releases, Partnerships, a Privacy Sidechain & Much More

New image
Project UpdateJanuary 19, 2024

OLI Systems Releases Research Paper about a DLT-Based Local Energy Market Model

New image
Project UpdateJanuary 05, 2024

Monthly Wrap-Up December 2023: New Products, Fresh Content & More

New image
Project UpdateJanuary 03, 2024

2023 Integritee Content: Giving Back to Our Community

New image
Product UpdateDecember 11, 2023

Unlocking Privacy in Transfers: The Power of Integritee’s Private Sidechain Model

New image
Project UpdateDecember 05, 2023

Monthly Wrap-Up November 2023: New Content, TEER Recover & Tech Updates

New image
Project UpdateNovember 06, 2023

Monthly Wrap-Up October 2023: Joining an Accelerator Program, Launching the New Website, Educational Content & More!

New image
Project UpdateOctober 06, 2023

Monthly Wrap-Up September 2023: Winning an Award, Talking at Sub0, Partnering with OVH & More!

New image
Project UpdateSeptember 27, 2023

OVH Releases Whitepaper on How Integritee Is Re-Inventing Blockchain Security & Confidentiality Using Intel SGX Technology & OVHcloud

New image
Project UpdateSeptember 04, 2023

Monthly Wrap-Up August 2023: Launching the Attesteer, Encointer’s PoP Badge & More

New image
Product UpdateAugust 30, 2023

Launching Integritee’s Attesteer

New image
Project UpdateAugust 08, 2023

Monthly Wrap-Up July 2023: Video Releases, Tech Updates & More

New image
Project UpdateJuly 06, 2023

Monthly Wrap-Up June 2023: Polkadot Decoded, New Add-Ons and More

New image
Project UpdateJune 06, 2023

Monthly Wrap-Up May 2023: Governance Platform Launch, New Environments and More

New image
NewsMay 09, 2023

Integritee Launches New Governance Platform with Polkassembly

New image
Project UpdateMay 04, 2023

Monthly Wrap-Up April 2023: Tech Upgrades, Partnerships & Upcoming News

New image
Project UpdateApril 06, 2023

Monthly Wrap-Up March 2023: Product Releases, a Privacy Sidechain & More

New image
Project UpdateApril 04, 2023

Securitee & enclaive Team Up to Offer Ready-To-Use TEE-Secured Solutions

New image
Product UpdateMarch 30, 2023

Securitee Launches Confidential Computing Platform to Protect Data in Use

New image
Product UpdateMarch 23, 2023

Introducing Integritee’s Teeracle: A Framework to Build TEE-Based Oracles

New image
Project UpdateMarch 21, 2023

A Privacy Sidechain for All Polkadot & Kusama Chains

New image
Project UpdateMarch 06, 2023

Monthly Wrap-Up February 2023: Launching Roadmap, Partnerships and More!

New image
NewsMarch 03, 2023

SDK v0.11.0: Increased Performance and Faster Processes

New image
NewsFebruary 21, 2023

OLI Systems Develops Innovative Energy Market Place by Building on Integritee

New image
Project UpdateFebruary 09, 2023

Integritee Network: Roadmap 2023

New image
Project UpdateFebruary 06, 2023

Monthly Wrap-Up January 2023: Slot Swap, Davos Touchdown and Much More

New image
Project UpdateJanuary 03, 2023

Community Updates: Discord, Twitter Raids & More

New image
Project UpdateJanuary 03, 2023

2022 at Integritee: Winning Parachains, Hosting Events, Integrating with Projects & Much More

New image
Project UpdateDecember 01, 2022

Monthly Wrap-Up November 2022: Lisbon Happenings, Bifrost Integration & More

New image
Project UpdateNovember 16, 2022

XCM Integration of Integritee and Bifrost Completed

New image
Project UpdateNovember 14, 2022

Integritee Welcomes Sergei Medvedev as New Advisory Board Member

New image
Project UpdateNovember 10, 2022

Monthly Wrap-Up October 2022: Travels, Interviews, Tech Updates & More

New image
Project UpdateOctober 06, 2022

Monthly Wrap-Up September 2022: Integritee SDK Release, Token2049 & More

New image
Project UpdateSeptember 20, 2022

Integritee & Securitee: Connecting the Dots

New image
Project UpdateSeptember 08, 2022

Integritee’s SDK: A New Era of Web3 Application Building

New image
Project UpdateSeptember 05, 2022

Monthly Wrap-Up August 2022

New image
Project UpdateAugust 30, 2022

Integritee Sidechain Performance Benchmark

New image
Project UpdateAugust 24, 2022

Integritee & Crust Team Up for Publicly Verifiable Decentralized Content Storage

Lines