Cointime

Download App
iOS & Android

ZK-Rollups: A Revolutionary Scaling Approach

Validated Project

ZK-Rollups’ technology offers a particular transaction validation mechanism along with other advanced features.

The development of Web3, coupled with the growing popularity of dApps, are putting pressure on the existing networks, prompting the development of scaling solutions. Among the latter zero-knowledge rollups (ZK-Rollups) are considered most promising.

Scaling solutions, known as Layer 2 chains (L2s), are designed to solve the scalability problem of Layer 1 (L1) networks, like Ethereum, by handling transactions off the mainnet. While depending on L1 for final transaction settlement, they aim to offer users greater throughput, lower gas fees and higher transaction speed. Rollups rely on rolling up multiple transactions into batches on L2 and then publishing them to the main network. There are two common types of rollups, Optimistic Rollups and ZK-Rollups. The examples of top Optimistic Rollups include Optimism and Arbitrum. Speaking of ZK-Rollups, zkSync Era is currently one of the leading projects. Among other notable players are Polygon’s ZK Rollups and Starknet. Both Optimistic and ZK-Rollups share L2’s transaction handling principle. Meanwhile, through its approach to the validation process, the latter offers users a number of additional benefits.

The advanced validation approach and fast withdrawal

Optimistic Rollups rely on fraud proof based on the assumption that all transactions submitted to L1 are legitimate. Hence, they are “optimistic.” After a user submits a withdrawal request, a validator needs to check the state of the chain to provide fraud proof. To detect incorrectly calculated transactions, the fraud proof uses a binary search between two parties to find where exactly in a block they disagree. The whole process can take multiple days, leading to a long withdrawal time.

By contrast, ZK-Rollups use zero-knowledge proofs (ZKPs) — a computationally intense and promising approach to transaction verification. L2 transactions are batched into a proof — a cryptographic mechanism — to automatically provide an L1 proof that computations on L2 were made correctly. This algorithm is based on the principle of encrypting and validating the result of computation without being able to “unroll” it to reveal the original data. So there is no need to check all the transactions, since the encryption algorithm has already provided the final correct result along with validation.

The generated proof is then submitted to the main chain and validated by the L1 network’s nodes. This approach offers both enhanced security and instant withdrawal time, since it optimizes the data shared between layers and allows for faster verification and higher throughput.

Transaction fees of ZK-Rollup proof systems

ZKPs come in the form of two proof systems, SNARKs and STARKs — Zero-Knowledge Succinct Non-Interactive Argument of Knowledge and Zero-Knowledge Scalable Transparent Argument of Knowledge, respectively.

ZK-SNARKs rely on a trusted setup to create private transactions. The system has been widely adopted in crypto transactions and other DeFi areas. For example, the privacy of the Zcash coin is derived from zk-SNARKs. One reason for the technology’s growing adoption is its capability to generate proof without disclosing much data. A notable example of a rollup built on the SNARK platform is zkSync Era.

ZK- STARK’s computations are simpler and not as expensive, and they don’t need a trusted setup, but the size of the generated proofs is larger. One of the well-known ZK-Rollups using ZK-STARK is Starknet.

The two systems differ in their cost validation approach. With ZK-SNARK, the gas required for validating the proof doesn’t change, no matter how complex the transaction is. By contrast, ZK-STARK uses different amounts of gas depending on the transaction size.

Less gas fee with more ZK-Rollup users

Part of the gas fee goes to publishing on L1, when using all rollups. They can post either the entire calldata or the most current state at the moment of publishing. The latter offers more scalability, since it reduces the size of submitted records (calldata is potentially heavier).

Another key difference is that as long as only the final states are published, the transaction cost decreases with more people using the L2. For example, no matter how many users simultaneously swap through the same protocol, one or ten, the state will be updated only once and then published. But in the former case, one user will pay the entire fee for submitting data to L1, while in the latter, the cost will be split among ten transactions. This feature allows for cheaper transaction execution with increasing ZK-Rollup demand. It appears to be the opposite principle to that of the main network: the more users, the cheaper gas. Since ZK-Rollups mostly publish the final states, they can boast an unlimited potential for future growth and offer a favorable gas price.

Development of ZK-Rollups projects

One of the rapidly expanding ZK-Rollups is zkSync Era, which is constantly experiencing significant network activity. It became the 4th largest L3 in terms of TVLin just over a month since launch and, according to DeFiLlama, keeps 3rd place among all rollups at the moment of writing with a TVL of $116.67 mln. The company behind zkSync Era, Matter Labs, previously launched zkSync Lite, but, despite the similar name, it refers to a completely different project that does not support smart contracts.

Polygon zkEVM shares the ZK-Rollup technology with zkSync, yet is lagging behind it with a TVL of $2.1 mln. StarkNet and StarkEx, developed by Starkware, are other examples of early ZK-Rollup projects, with StarkNet’s TVL standing at $9.28 mln.

This April, 1inch added zkSyncEra to the list of supported L2s in order to provide users with yet more swapping opportunities and connect them with more liquidity sources.

Read more: https://medium.com/1inch-network/zk-rollups-a-revolutionary-scaling-approach-6331608cf328

Comments

All Comments

Recommended for you

  • Robinhood Chief Legal Officer Dan Gallagher Says He Won't Become SEC Chairman

    According to market news, Dan Gallagher, the Chief Legal Officer of Robinhood, stated that he would not serve as the Chairman of the US Securities and Exchange Commission.

  • Cosine: After a user used GPT to write a bot with a backdoor code, the private key was sent to a phishing website

    SlowMist Yu Xian stated in a post on the X platform that a user used GPT to write a bot with code and sent the private key to a phishing website. The reason why the private key was stolen was because it was directly sent to the phishing website in the HTTP request body. Yu Xian reminded that when using LLM such as GPT/Claude, one must pay attention to the common fraudulent behavior of these LLM. It was previously mentioned that AI poisoning attacks were carried out, and now this is a real attack case targeting the crypto industry.

  • U.S. Supreme Court rejects Facebook's attempt to avoid shareholder securities fraud lawsuit

     US Supreme Court rejected Facebook's attempt to avoid shareholder securities fraud lawsuits under the META umbrella.

  • The final value of the US one-year inflation rate in November is expected to be 2.6%, the expected value is 2.7%, and the previous value is 2.60%

     the expected final value of the US one-year inflation rate in November is 2.6%, with an expected value of 2.7% and a previous value of 2.60%. The expected final value of the US five-to-ten-year inflation rate in November is 3.2%, with an expected value of 3.1% and a previous value of 3.10%.

  • Polymarket Blocks French Users Amid Government Investigation into Gambling Law Compliance

    Polymarket has blocked users from France following reports of an investigation by the country's gaming authority for compliance with gambling laws. The ban was not stated in Polymarket's terms of service, but French users attempting to access the website using a VPN from a French server were met with a digital blockade. The ANJ, France's national gaming authority, began investigating Polymarket after a French trader placed large bets on Donald Trump winning the 2024 US Presidential election.

  • U.S. stocks open, most crypto stocks open lower

     the US stock market opened with the Dow Jones up 0.19%, the S&P 500 up 0.05%, and the Nasdaq up 0.01%. Most cryptocurrency stocks opened lower, with Coinbase (COIN.O) down 0.06%, MicroStrategy (MSTR.O) up 0.4%, and Riot Platforms (RIOT.O) down 2.6%. Previously, Bitcoin had risen above $99,000 before falling back.

  • Amazon to invest an additional $4 billion in Anthropic, OpenAI's rival

     Amazon is deepening its cooperation with Anthropic and will add an additional $4 billion investment to the company. In September of this year, Anthropic, an artificial intelligence startup, was seeking a new round of financing with a valuation of up to $40 billion. Anthropic was founded by former OpenAI executives in 2021 and focuses on creating interpretable, secure, and controllable artificial intelligence systems. The company's flagship AI model, Claude, operates based on "Constitutional AI," which uses predefined principles to guide its output, avoiding some erroneous or discriminatory output reactions.

  • Family Offices Evolve into Powerful Investment Entities with Innovative Strategies and Advanced Technologies

    Family offices, which traditionally focused on conservative investment strategies, have transformed into powerful investment entities with a focus on alternative investments, private equity, co-investments, venture capital, and impact investing. This shift has been driven by innovative financial solutions and modern investment strategies, responding to technological advancements and an evolving global financial landscape. Family offices are taking a more active role in direct investments and co-investments, particularly in high-growth companies and startups, enhancing their control and flexibility. They are also diversifying further into private markets and real assets due to geopolitical and macroeconomic uncertainties, while embracing innovative financing solutions and cutting-edge risk management techniques. Additionally, family offices are implementing AI technologies to improve their decision-making processes, particularly in investment analysis, reflecting their commitment to innovation and strategic planning.

  • The Evolution of Family Offices: Embracing Innovative Investment Strategies and Technology

    Family offices have shifted from conservative investment strategies to more active roles in direct investments and co-investments, thanks to innovative financial solutions and modern investment strategies. They are now leaders in alternative investments, private equity, co-investments, venture capital, and impact investing, leveraging their capital through non-recourse and limited-recourse financing to expand their investments across sectors and regions. Family offices are also adopting sophisticated risk management strategies, diversifying further into private markets and real assets, and integrating advanced technologies such as AI-driven platforms to enhance decision-making processes. A family office in the UAE, International Venture Investments Holding, takes an active investment approach, emphasizing operational autonomy and forming dedicated management teams for specific projects. The UBS Global Family Office Report 2024 shows that 78% of family offices plan to invest in generative artificial intelligence in the next two to three years.

  • DeFi TVL exceeds $95 billion again

    According to defillama data, as of May 18, 2024, the total value locked (TVL) in DeFi has once again surpassed $95 billion. It is currently reported at $95.069 billion, an increase of nearly $12 billion from the low point of $83.04 billion 35 days ago. Among the top five protocols in terms of TVL, Eigenlayer has the highest 30-day increase, with TVL rising by 19.67% to a total of $15.455 billion.