Cointime

Download App
iOS & Android

What is Rollups technology?

Validated Venture

The Zero-knowledge proof method is widely used in roll-up solutions. ZK-Rollups are a collection of such technologies.

Rollups allow you to ensure high transaction privacy while also scaling the main Ethereum network: many transactions are combined into a single package that is confirmed in the first-level blockchain.

In the Ethereum ecosystem, popular second-level protocols based on ZK include Starnet, zkSync, Loopring, Polygon Miden, and others. Optimistic Rollups is a separate technology used in the L2 platforms Arbitrum One and Optimism.

How does the Zero-knowledge proof work?

The Zero-knowledge proof (ZKP) method was formulated by scientists Shafi Goldwasser and Silvio Micali in 1985 in the article “The knowledge complexity of interactive proof systems”.

They proposed a method for proving the message’s authenticity without revealing its contents.

To accomplish this, you must create a special “confirmation” with which the verifier can verify the accuracy of the source data. The sender must perform a series of calculations, all of which will be correct if he has the necessary knowledge. The verifier knows the value of the correct answer, allowing you to confirm the authenticity of the information’s possession. As a result, both parties have limited information about the message’s content.

Consider the following scenario: A colorblind person who cannot distinguish between colors is shown two balls. One is red and the other is green, but the person cannot tell the difference.

You must demonstrate the opposite without naming the colors of the balls. You do this by passing the objects to the interlocutor, who hides them behind his back. He then takes out the ball and shows it to you. The individual then hides it and repeats the action. You must respond to the question of whether he changed the ball behind his back. Because you know the correct answer, you will be able to prove your case through a series of experiments. However, you will not have to disclose additional information.

How is the Zero-knowledge proof used in ZK-Rollups?

The ZKP method enabled the development of a group of technologies known collectively as ZK-Rollups, on the basis of which many key second-level protocols in the Ethereum ecosystem operate today. Vitalik Buterin referred to ZKP as the most important technology for scaling the main blockchain platform.

“Rollup” packets are created from a series of transactions in which the data from each transfer is compressed. Such “convolutions” provide proof to the main network of the first level (in this case, Ethereum), allowing you to confirm the authenticity of all transactions in the package without considering each one individually. Following verification, the package is included in one of the blocks. A single rollup package can contain thousands of transactions, but only the bare minimum of data is stored in the first-level blockchain.

Three elements ensure the operation of ZK-Rollups:

  • An L2 protocol virtual machine that groups transactions;
  • A verifier smart contract that verifies packages;
  • A module that sends packets to the first-level blockchain and updates the state.

The second-level network node performs basic transaction verification. It generates a ZK proof after receiving a certain number of transfers and combining them into a package. The package validates a smart contract that has been deployed in a first-level network. It also allows for fund input and withdrawal to the L2 blockchain.

“Rollups” also include user balances in the L2 network, presented in the form of the Merkle tree. Its root is stored in the contract, allowing you to track changes in the network’s state. Each transaction’s confirmation values are also sent to the first-level blockchain. The data contains the Merkle root, which is calculated in stages. Each transfer in the package is confirmed by recording intermediate values in the blockchain.

Which advantages does ZK-Rollups technology have?

The Zero-knowledge proof was initially used in anonymous cryptocurrency projects, but in recent years it has found widespread application as a solution for scaling Ethereum.

ZK-Rollups enables you to process user data without revealing any personal information about them. The algorithm, in particular, can check the availability of funds without displaying the user’s balance. These characteristics are critical for businesses that need to protect their customers’ personal information.

The use of solutions based on ZK-Rollups reduces transaction fees significantly. Many translations are combined into a single package in which all data is compressed, such as using an index instead of an address. This enables you to save less information in the first-level blockchain. The costs are distributed among all senders, so each of the users pays less.

ZK-Roll ups provide low delays when withdrawing funds to the main network, since the smart contract verifies the validity of the data before including the package in the blockchain.

What kinds of ZK proofs are there?

There are numerous implementations of ZK roll-ups, the most common of which are: ZK-SNARKs (and its variant Plonky2), ZK-STARKs, zkSync, and others. The size of the “proof” and the computational costs required for verification differ between technologies.

ZK-SNARK

ZK-SNARK generates a small and easy-to-verify confirmation. Calculating the values of elliptic curves to obtain a proof requires less cost than hashing, so the algorithm has a lower cost. The method requires that the proof be destroyed immediately after it is sent. To make the algorithm work, the node generates a public and private key, then destroys the latter. Another key pair is created using the public key. The private key is then used to generate confirmation, which is then verified using the public key.

ZK-STARK

ZK-STARKs generates a proof without requiring interaction between the verifier and the verifier. Data validation takes less time, making the technology more scalable. The algorithm employs hashing, making it resistant to quantum computer attacks.

zkSync

zkSync is an L2 protocol that is based on the same-named roll-up algorithm. The platform supports smart contracts and allows you to transfer assets. The algorithm has a low gas limit per transaction that does not exceed 500 Gwei. The main advantage of zkSync 2.0 is compatible with Ethereum Virtual Machine.

Which projects do ZK-Rollups и Optimistic Rollups use?

There are several popular solutions using ZKP in the Ethereum ecosystem today:

  • The StarkNet platform

On the basis of its private version called StarkEx, large DeFi protocols Rhino, Immutable X, dYdX and Sorare work.

  • Mina Protocol

It is a lightweight blockchain that uses ZK-SNARK technology to generate 22 KB blocks. You can use the platform to execute smart contracts and run decentralized applications.

  • LoopRing

It is a decentralized trading protocol that uses an order book. Implemented in the Ethereum network, ZK-proofs are used for its operation.

  • Polygon Miden is a “rollup” based on zk-STARKs, working with a special virtual machine Miden VM.

In addition to ZKP-based roll-ups, a group of solutions known as Optimistic Rollups can be distinguished. The difference is in how transactions are verified: in Optimistic, transaction packets are considered valid, and transactions are only checked if someone challenges them.

Following the validation of each transfer, zero-disclosure proofs store data in the main network. As a result, the technology ensures that the current state of the network is preserved. Similarly, unlike ZK-Rollups, withdrawing funds from the protocol based on Optimistic Rollups requires a fraud check, which can take up to two weeks. The time when funds are withdrawn to the first-level blockchain is determined by the specified period. The requirement to validate data in ZK-Rollups, on the other hand, increases resource consumption and financial costs.

Two popular Ethereum L2 protocols — Arbitrum and Optimism — work on the basis of Optimistic Rollups.

What is Validium?

There are complex solutions — validiums. This is a compromise technology that combines evidence stored at different levels. Confirmations are sent to the main blockchain, but data is stored elsewhere. The solution reduces commissions but assumes reliance on external storage. Users will not lose funds if the latter fails, but they will be unable to conduct transactions.

Comments

All Comments

Recommended for you

  • Samourai Wallet crypto-currency mixing service co-founder arrested for money laundering

    According to The Block, the co-founders of the encrypted coin-mixing service, Samourai Wallet, have been arrested. Prosecutors allege that they laundered $100 million from Silk Road and other illegal markets. On Wednesday, Samourai CEO Keonne Rodriguez and CTO William Lonergan Hill were charged with operating the Samourai wallet.Prosecutors claim that Samourai is an unlicensed money transfer company that participated in "over $2 billion in illegal transactions and provided over $100 million in money laundering transactions for illegal dark web markets, including Silk Road." Rodriguez was arrested on Wednesday morning and will face trial in Pennsylvania.Hill was reportedly arrested in Portugal, and the US is seeking extradition. Prosecutors say that Samourai's network servers and domain name have also been seized, and the app can no longer be downloaded from the US Google Play store. Rodriguez and Hill are charged with money laundering and unlicensed money transmission, with maximum sentences of 20 years and 5 years, respectively.

  • Rune token DOG's transaction volume exceeded 100 BTC within 4 hours of launch

    According to data from Ordinal News forwarded by Runestone founder Leonidas, the Bitcoin symbol token DOG broke through a trading volume of 118.72 BTC (approximately $7,685,101 USD) within 4 hours of trading. The trading volume on three platforms was: Magic Eden on Bitcoin: 45.21 BTC; OKX Wallet: 20.37 BTC; UniSat: 53.14 BTC.

  • NFT lending volume exceeds $2 billion in Q1

    According to a report from CoinGecko, the first quarter trading volume of the lending market using non-fungible tokens (NFTs) as collateral exceeded $2 billion, a 44% increase compared to the fourth quarter of 2023. The lending platform Blend has shown significant dominance in the market, with a monthly loan amount of $562.3 million as of March 2024, occupying nearly 93% of the market share.

  • Grayscale GBTC outflow of $130 million yesterday

    According to data monitored by HODL15Capital, Grayscale's Bitcoin ETF GBTC saw an outflow of 2,000 BTC, worth about $130 million, on April 24th.

  • U.S. House of Representatives: Agreement on stablecoin regulation will soon be reached with the Chairman of the Financial Services Committee

    Maxine Waters, the Democratic leader of the US Financial Services Committee, predicted on Wednesday that she and Chairman Patrick McHenry will soon reach an agreement on stablecoin regulation legislation.

  • InfiniGods, a blockchain game studio, announced that it has received $8 million in Series A funding

    Blockchain game studio InfiniGods announced it has received $8 million in Series A funding, exclusively invested by Pantera Capital.

  • Tevaera Closes $5 Million Funding Round to Create One-Stop Gaming Ecosystem Powered by zkSync's ZK Stack

    Tevaera, a gaming platform powered by zkSync's ZK Stack, has closed a $5 million funding round led by Laser Digital and Nomura Group. The funding will support Tevaera's mission to create a one-stop gaming ecosystem. The project has attracted prominent investors, including Hashkey Capital, Fenbushi Capital, and Crypto.com Capital. Tevaera has also launched a redesigned website and is preparing to introduce two new games and the first decentralized L3 gaming chain on zkSync.

  • The Hong Kong Securities Regulatory Commission’s official website has listed the Bitcoin and Ethereum spot ETFs and stock codes of China Asset Management, Bosera and Harvest.

    Hong Kong Securities and Futures Commission website has listed the Bitcoin and Ethereum spot ETFs of three fund companies, Huaxia, Boshi, and Jiashi, with approval dates all on April 23, 2024. The related funds are not derivative product funds, specifically including:1. Huaxia Bitcoin ETF (BUU163) with share codes of 03042, 09042, and 83042;2. Huaxia Ethereum ETF (BUU164) with share codes of 03046, 09046, and 83046;3. Boshi HashKey Bitcoin ETF (BUU104) with share codes of 03008 and 09008;4. Boshi HashKey Ethereum ETF (BUU105) with share codes of 03009 and 09009;5. Jiashi Bitcoin Spot ETF (BUT244) with share codes of 03439 and 09439;6. Jiashi Ethereum Spot ETF (BUU885) with share codes of 03179 and 09179.

  • Correction: Nigeria’s central bank says “freezing Bybit, KuCoin, OKX, Binance user accounts” is unofficial

    The official X account of the Central Bank of Nigeria (CBN) stated that the announcement "the Central Bank of Nigeria will freeze Bybit, KuCoin, OKX, and Binance user accounts" is not an official release. Previously, according to Cointelegraph, the Central Bank of Nigeria (CBN) issued an instruction requiring all banks and financial institutions to identify individuals or entities trading with cryptocurrency exchanges and ensure that such accounts receive no debit (PND) instructions within six months.

  • Alliance of 314: The X314 contract is suspected to have a hidden additional issuance switch, developers should pay attention to verification

    Alliance of 314 issued a statement claiming that the contract of a certain 314 project has not been open-sourced on the blockchain. As for whether other platforms have open-sourced their contracts, there is a misconception that open-sourcing on other platforms is self-submitted and does not necessarily mean that the contract is deployed on the chain, so there may be unknown hidden issuance. Additionally, the said 314 project announced that it will soon launch a trading platform, and the first requirement for logging into a centralized exchange is to open-source the contract. Open-sourcing is the first thing that any project should do to ensure investor confidence. Referring to the open-sourcing of the 0.1, 0.5, and 0.9 versions before, it can be concluded that there is hidden code in the X314 contract, and therefore it cannot be open-sourced out of fear. The biggest risk warning: after decompiling and querying ethervm, it is highly suspected that a certain 314 has a hidden issuance switch to increase mining pool output and arbitrage. The field is as follows: 0x40c10f19mint(address,uint256). The risk alert level for this switch is the highest level, and generally, ordinary developers do not set this switch.