What do you prefer - Maximum Security or Cheaper Transactions?
Tolly Brown (Guest Author)
September 16, 2021
The Ethereum scaling solutions space has been heating up lately. Which is a good thing, because Ethereum (and its community) needs scaling as soon as possible.
As you know, Polygon's mission is to develop various kinds of Ethereum scaling solutions, from sidechains to rollups (and more).
But all these solutions come with trade-offs. There's no perfect scaling solution that would satisfy everyone and any need.
The two most popular types of scaling solutions right now are sidechains and rollups.
Sidechains are sometimes referred to as "childchains", but the "sidechain" term is more commonly used.
A sidechain is a type of blockchain. In practice, most sidechains are EVM-compatible chains, which means they use the same technology as the Ethereum blockchain (usually a Geth node software), but with some modifications.
That's why the experience of using EVM sidechains is the same as using Ethereum. You can easily use MetaMask with any EVM-compatible sidechain, except you need to change the network in MetaMask from Ethereum to the specific sidechain.
But not all EVM-compatible chains are sidechains! For example, BSC and Tron also use EVM and Ethereum node software, but they are not Ethereum's sidechains.
For something to be a sidechain/childchain to Ethereum, it needs to have a dependence on it.
For example, the Polygon PoS Chain has all the staking management defined on Ethereum, which means it depends on Ethereum. If Ethereum stops working, Polygon cannot properly function anymore.
BSC and Tron do not have any dependence on Ethereum. They can easily exist without Ethereum. That's why these two chains are Layer 1 blockchains (L1). Polygon PoS Chain, on the other hand, is not an L1 because it cannot exist on its own. It's a sidechain (or childchain) to Ethereum because it depends on it.
The advantage of sidechains is to have high throughput (high TPS) and very low transaction fees because they can produce bigger blocks and have a shorter block time. Thisof course has an impact on decentralization, butit is a tradeoff that makes sense for scalingsolutionstomake.
> That said, Polygon PoS Chain still has a very good level of decentralization with 100+ distinct PoS validators (compared to other scaling solutions that are currently mostly completely centralized).
Similar to sidechains, rollups are also blockchains. Optimistic rollups usually use customized Geth for EVM compatibility, while ZK-rollups build their own node software from scratch, that's why they are not EVM compatible by default (more on ZK rollups in one of our future blog posts).
But what really sets rollups apart from sidechains, is that rollups store all their transactions on L1 (on Ethereum).
What's the point of doing that?
The reason to do that is to offer users the maximum security of their funds. If rollup block producers (BPs) start behaving maliciously or stop working for some reason, the rollup users are still able to get their funds back to Ethereum without needing any permission from rollup nodes.
> Besides storing transactions on L1, an important security mechanism is validity/fraud proofs. We'll talk more about that in another blog post.
There are various ways to get funds back to L1, but the most common one is an "escape hatch". It is basically a way for users to "escape" from a rollup back to L1 in case something bad starts happening on a rollup.
For an escape hatch to work permissionless, all rollup transactions need to be stored on Ethereum.
But if transactions are stored on Ethereum, why would you use a rollup chain anyway? Isn't that the same as using Ethereum then?
Not really. The key here is that transactions are only stored on Ethereum, but they are not processed on Ethereum. Processing a transaction is the bigger part of transaction costs. Storing transactions is cheap.
As we said, a rollup is a separate blockchain and you'd use it in the same way as you use Ethereum. Each time a rollup BP creates and processes a new block of transactions, it also stores it on Ethereum in order to enable the Escape Hatch mechanism. Moreover, in case all rollup nodes malfunction and lose all data, the rollup chain can be easily restored from data stored on Ethereum (it's kind of like a backup).
What's important to note here is that when a rollup block producer stores block data on L1, it does that by making a transaction on L1. This transaction includes all rollup transactions (from that block) as data. As we said, these transactions are not processed on L1, they are just stored there. But there's a limit on how much data you can store within one transaction on L1.
As Vitalik wrote in his blog post about rollups, you could store up to 62,500 rollup transactions in one L1 block, which gives you a theoretical rollup TPS limit of around 4807 TPS.
Note that this is a theoretical limit because it would mean that this BP's transaction on L1 takes the whole L1 block space, which is extremely unlikely to occur. Especially with multiple rollups competing for L1 block space.
A more realistic TPS limit for rollups is a lot lower, probably at around 300TPS and likely even less until sharding arrives. Just for comparison: Polygon PoS Chain (a sidechain) has a theoretical limit of 7200 TPS, but in reality we've seen it getting closer to 1000 TPS.
So the thing that makes rollups more secure (storing transactions on L1) also limits their scalability. This means that rollups will always be more expensive than non-rollup scaling solutions, which can have a much higher TPS.
What to choose then? Lower gas fees or higher security?
Luckily, you don't have to choose just one of these. We live in a multichain world where many people are already active on multiple chains. These can be either sidechains, or rollups, or even other L1s (although we prefer chains within the Ethereum ecosystem).
All it takes is just switching your network in MetaMask, but even that will be automated for you in the future by wallets. Some mobile wallets like Rainbow already do that.
A typical blockchain user will probably have some funds on Ethereum L1 (funds that will be rarely moved), some on sidechains (for high-frequency activities like trading), and some on rollups (for less regular activities like weekly yield farming).
What's most important is that people have a choice and can choose which solution to use based on their needs.
Polygon is the leading platform for Ethereum scaling and infrastructure development. Its growing suite of products offers developers easy access to all major scaling and infrastructure solutions: L2 solutions (ZK Rollups and Optimistic Rollups), sidechains, hybrid solutions, stand-alone and enterprise chains, data availability solutions, and more. Polygon’s scaling solutions have seen widespread adoption with 500+ applications hosted, ~600M total transactions processed, ~60M unique user addresses, and $5B+ in assets secured.
If you're an Ethereum Developer, you're already a Polygon developer! Leverage Polygon’s fast and secure txns for your Dapp, get started here.
EY, a global professional services and technology firm, is collaborating with Polygon on building and implementing scaling and enterprise solutions for the Ethereum ecosystem. As part of this collaboration, EY and Polygon will work on Polygon Nightfall, a public, privacy-focused Rollup. In addition to this, EY will offer its other flagship blockchain products on Polygon […]
The Protocol team was recently established at Coinbase to work on scaling Ethereum through integration with L2 and other ETH scaling solutions. The Coinbase team plans to integrate Polygon PoS as their first scaling solution for Coinbase. The Coinbase Protocol team is an experienced group of engineers at Coinbase focused on contributing to scaling blockchains and […]
We are proud and excited to announce that Hermez, one of the most prominent zero-knowledge (ZK) cryptography-based scaling projects and teams, will be joining Polygon. Starting today, we will initiate the process of merging Hermez into the Polygon ecosystem, where it will be operating under the new name: Polygon Hermez. Polygon Hermez will become a part of […]
Polygon is the biggest crypto project to be born out of India and is today one of the most adopted blockchains in the world. The project is very popular with developers and users alike, with 1200+ Dapps deployed and the highest daily active user count in the web3verse.. To further promote Web3 technology and culture […]
Now there’s an easy and low-cost way to gain exposure to top Polygon-native projects, including Quickswap, DFYN, and Aavegotchi, via a single token Amun, a leader in DeFi index products, today announces the launch of the Polygon Ecosystem Index (PECO) token. Available through the Amun Platform, the PECO token is an index of the top […]
We have covered the pace of growth of the Polygon ecosystem with blogs such as OpenSea, and our Polygon User in Numbers. Today, we will look at the overall growth of the Polygon developer ecosystem. Alchemy, a leading blockchain developer platform, is able to take a birdseye view on teams building on a number of […]