{"id":232272,"date":"2022-04-19T22:30:56","date_gmt":"2022-04-19T22:30:56","guid":{"rendered":"https:\/\/www.cryptoknowmics.com\/news\/?p=232272"},"modified":"2022-04-19T18:23:35","modified_gmt":"2022-04-19T18:23:35","slug":"could-optimistic-and-zero-knowledge-rollups-transform-and-improve-network-performance","status":"publish","type":"post","link":"https:\/\/www.cryptoknowmics.com\/news\/could-optimistic-and-zero-knowledge-rollups-transform-and-improve-network-performance","title":{"rendered":"Could Optimistic and Zero-Knowledge Rollups Transform and Improve Network Performance?"},"content":{"rendered":"<p><span style=\"font-weight: 400\">Due to its popularity and the number of decentralized apps (<\/span><a href=\"https:\/\/www.cryptoknowmics.com\/news\/defi-dapps-demand-rises-among-users\"><span style=\"font-weight: 400\">dApps<\/span><\/a><span style=\"font-weight: 400\">), Ethereum has experienced network congestion. This move has limited scalability, high fees, and slow transactions. Layer 2 (L2) protocols, which are platforms that operate on top of the underlying blockchain, have been one answer to these challenges.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400\">One sort of L2 solution is zero-knowledge rollups, which are aimed to provide improved transaction speeds and cheap costs. The other top solution is optimistic rollups parallel to the main Ethereum chain on layer 2. This feature can improve the scalability of the network by not requiring any computation. Instead, after a transaction, it will propose a new state to Mainnet.<\/span><\/p>\n<p><span style=\"font-weight: 400\">The main issue with Ethereum is how developers and users will choose the most advanced technology for their app. Convenience usually wins unless the technology is better. This article will discuss how optimistic and zero-knowledge rollups transform and improve network performance. Let&#8217;s dive in:<\/span><\/p>\n<h2><b>What are Rollups?<\/b><\/h2>\n<p><span style=\"font-weight: 400\">A rollup is an Ethereum-based scaling solution that allows users to perform transactions outside the network&#8217;s Layer 1. It will enable the key to maintain its security while scaling the network.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Because just a portion of the data from rollup transactions must fit within Ethereum blocks, moving transaction execution off-chain enables a more significant number of transactions to be executed. Rollup transactions are processed on an entirely distinct chain capable of running a rollup-specific version of the <\/span><a href=\"https:\/\/ethereum.org\/en\/developers\/docs\/evm\/\"><span style=\"font-weight: 400\">EVM<\/span><\/a><span style=\"font-weight: 400\">.<\/span><\/p>\n<p><span style=\"font-weight: 400\">In most cases, a rollup deploys smart contracts on layer 1 of its network to handle various tasks, such as processing deposits and withdrawals. Multiple types of rollups use different types of proof. The optimistic rollups utilize fraud proofs. On the other hand, ZK rollups employ validity or zero-knowledge proofs to verify the credibility of transactions.<\/span><\/p>\n<h2><b>Optimistic Rollups and their Role<\/b><\/h2>\n<p><span style=\"font-weight: 400\">In optimistic roll-ups, data is assumed to be correct before posting to Layer 1, hence &#8220;optimistic.&#8221; As long as the published information is valid, no action is necessary. Rollups with optimistic assumptions benefit from not having any extra work to do.<\/span><\/p>\n<p><span style=\"font-weight: 400\">However, if an invalid transaction has been submitted, the system should be able to identify it and take appropriate actions. An optimistic rollup uses a dispute resolution mechanism to prevent fraudulent transactions from resolving disputes. It eliminates the incentive for bad actors to submit false claims.<\/span><\/p>\n<p><span style=\"font-weight: 400\">The party that can submit transactions to layer 1 in Optimistic rollup should provide a bond in Ether. If a transaction gets rejected, another network participant can submit a fraud-proof, and then the system enters the Dispute Resolution mode. The transaction is then executed again and again until it gets resolved. If the transaction is rejected, the responsible party will be penalized with their <\/span><a href=\"https:\/\/www.cryptoknowmics.com\/news\/ethereum-cardano-and-solana-who-is-winning-the-race-to-pos\"><span style=\"font-weight: 400\">Ether<\/span><\/a><span style=\"font-weight: 400\"> bond.<\/span><\/p>\n<p><span style=\"font-weight: 400\">To prevent bad actors from sending fraudulent transactions to the network, parties that wish to submit fraud-proof must also provide a bond in ETH. Due to the nature of the transactions executed on a rollup, it has to implement a system to identify the transaction&#8217;s actual state.<\/span><\/p>\n<p><span style=\"font-weight: 400\">This process can be pretty complex, as it involves creating a contract that automatically updates the state of the rollup whenever a transaction is executed. Getting into the Dispute Resolution mode should be an exceptional experience, as it involves the right incentives.<\/span><\/p>\n<h2><b>ZK Rollups and their Role<\/b><\/h2>\n<p><span style=\"font-weight: 400\">Unlike other dispute resolution mechanisms, <\/span><a href=\"https:\/\/docs.ethhub.io\/ethereum-roadmap\/layer-2-scaling\/zk-rollups\/\"><span style=\"font-weight: 400\">ZK rollups<\/span><\/a><span style=\"font-weight: 400\"> do not have a dispute resolution mechanism. Instead, they use a cryptography mechanism called Zero-Knowledge Proof (ZKP).<\/span><\/p>\n<p><span style=\"font-weight: 400\">Instead of exchanging core information such as passwords, the two parties can resolve their disputes through puzzle pieces. The prover must provide the information required to complete the puzzle pieces.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Imagine that you&#8217;re playing a video game where the player has to unlock a locked door. You don&#8217;t have to reveal the secret code to prove that you know how to unlock the door. All that matters is that you won the game.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Instead of revealing the secret code, the prover must demonstrate control over the information. It ensures that no unauthorized person can access the critical data. The ZKP is incredibly secure because it only requires a simple verification to confirm that the puzzle has been completed.<\/span><\/p>\n<h2><b>Optimistic Rollups vs ZK Rollups<\/b><\/h2>\n<h3><b>Scaling<\/b><\/h3>\n<p><span style=\"font-weight: 400\">The ZK and optimistic rollups can quickly <\/span><a href=\"https:\/\/www.cryptoknowmics.com\/news\/rollups-are-the-layer-2-scaling-solution-for-ethereum\"><span style=\"font-weight: 400\">scale<\/span><\/a><span style=\"font-weight: 400\"> the Ethereum network up to around 15 to 45 transactions per second. The upcoming release of Ethereum 2.0 and the Sharding method will create a fantastic synergy between rollups and blockchains. Combining the ZK and Sharding methods will allow Ethereum to reach transaction speeds of up to 100k transactions per second.<\/span><\/p>\n<h3><b>EVM-compatibility<\/b><\/h3>\n<p><span style=\"font-weight: 400\">Due to the complexity of the ZK roll-up technology, it&#8217;s hard to create an EVM-compatible version without rewriting the entire application logic. ZkSync has been working on developing an EVM-compatible understanding of its roll-up. The first version of this project, zkSync 2.0, was released in June 2021. The <\/span><a href=\"https:\/\/uni.zksync.io\/\"><span style=\"font-weight: 400\">zkEVM<\/span><\/a> <span style=\"font-weight: 400\">virtual machine can perform smart contracts in a way that&#8217;s compliant with the Zero-Knowledge Proof algorithm.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Unlike ZK rollups, which have a lot of issues with EVM compatibility, optimistic rollups can quickly create an EVM-compatible version without any changes.<\/span><\/p>\n<h3><b>Computation Requirement<\/b><\/h3>\n<p><span style=\"font-weight: 400\">When it comes to computation, ZK rollups need more <a href=\"https:\/\/www.cryptoknowmics.com\/news\/nexo-officially-launches-its-mastercard-backed-crypto-card\/\">computing<\/a> power than Optimistic rollups. Because of this, machines that compute Zero-Knowledge Proof must be high-spec, making it difficult for average users to run.<\/span><\/p>\n<h2><b>Final Thoughts<\/b><\/h2>\n<p><span style=\"font-weight: 400\">Adding Layer 2 to Ethereum will help make the platform more robust and complement the more significant scalability issue work. Some prominent outsiders share the same view as many in the blockchain industry.<\/span><\/p>\n<p><span style=\"font-weight: 400\">In their announcement of their $25-million investment in Optimism, Andreessen noted that there is little debate about the need for scaling Ethereum. However, it is often seen as a competition between the platform&#8217;s various services.<\/span><\/p>\n<p><span style=\"font-weight: 400\">One of the lessons that internet history has taught us is that developers immediately create applications that demand more supply when a new computing platform is given to developers. It is believed the same will be valid for Ethereum; the answer to scaling is &#8220;<strong>all of the above<\/strong>&#8220;.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Although rollups are not as robust as the other layer two solutions, they are still considered the best. They are a natural fit for the PoS and sharding features of the Ethereum 2.0 project. It is no coincidence that <\/span><a href=\"https:\/\/www.cryptoknowmics.com\/news\/vitalik-buterin-donates-5m-in-ethereum-in-support-of-ukraine\"><span style=\"font-weight: 400\">Vitalik Buterin<\/span><\/a><span style=\"font-weight: 400\">, Ethereum&#8217;s creator, is quite fond of them.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Due to its popularity and the number of decentralized a &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.cryptoknowmics.com\/news\/could-optimistic-and-zero-knowledge-rollups-transform-and-improve-network-performance\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u201cCould Optimistic and Zero-Knowledge Rollups Transform and Improve Network Performance?\u201d<\/span><\/a><\/p>\n","protected":false},"author":289,"featured_media":232419,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"aside","meta":{"_mi_skip_tracking":false},"categories":[25,30121,42106,1267,1,28,107377],"tags":[106,112008,111203,111204,110513],"yst_prominent_words":[77351,2423,41025,63804,17177,56171,24403,4077,2360,58690,28621],"_links":{"self":[{"href":"https:\/\/www.cryptoknowmics.com\/news\/wp-json\/wp\/v2\/posts\/232272"}],"collection":[{"href":"https:\/\/www.cryptoknowmics.com\/news\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cryptoknowmics.com\/news\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cryptoknowmics.com\/news\/wp-json\/wp\/v2\/users\/289"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cryptoknowmics.com\/news\/wp-json\/wp\/v2\/comments?post=232272"}],"version-history":[{"count":0,"href":"https:\/\/www.cryptoknowmics.com\/news\/wp-json\/wp\/v2\/posts\/232272\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.cryptoknowmics.com\/news\/wp-json\/wp\/v2\/media\/232419"}],"wp:attachment":[{"href":"https:\/\/www.cryptoknowmics.com\/news\/wp-json\/wp\/v2\/media?parent=232272"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cryptoknowmics.com\/news\/wp-json\/wp\/v2\/categories?post=232272"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cryptoknowmics.com\/news\/wp-json\/wp\/v2\/tags?post=232272"},{"taxonomy":"yst_prominent_words","embeddable":true,"href":"https:\/\/www.cryptoknowmics.com\/news\/wp-json\/wp\/v2\/yst_prominent_words?post=232272"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}