Why Layer 2 Rollups and zk-SNARKs Technology will Disrupt the Crypto Ecosystem

Published by fq4z2b on

The upsurge in the number of layer 2 solutions in the crypto ecosystem is so glaring that it has to be noticeable. While the motivation for these projects might be varied, the most highlighted consensus is the need to enhance or optimize existing blockchains. In deciding which platform to be layered on, the potential, market rating, and marketplace impact plays major roles that are truly pivotal. Otherwise, the time, effort and other needed resource for their development will be difficult to justify. Just alongside, one needs to consider zk-SNARKs technology and its impact on privacy on the blockchain.

It is generally held that cryptocurrency transactions are anonymous, but only to a certain extent with everyday blockchains. It is true that the names and email address for example, of parties to a blockchain transaction are not discoverable on the face of it. However, when they originate from a crypto marketplace or exchange, traceability becomes possible, tying the user’s registration details to the wallet addresses and ensuing transactions.  The various blockchain analytic tools makes it possible to tell where the transactions arose and who the parties involved might be.  With ZK-Snarks, anonymity results, this is explained further in the next section.

Definition of Layer 2 Rollups

Layer 2 solutions are designed as added protocols that are built on existing blockchains such as Bitcoin, Ethereum, Binance, among others. These protocols are introduced to remedy the weakness identified in the host blockchain so that throughput can be enhanced. These scaling solutions do end up improving security and transaction processing times for the platforms that they are designed to layer on without diminishing the existing architecture or system integrity.

For payment processing, while a crypto deposit can be done on the host blockchain, there is a channel that leads to the layer 2 solution in order to make both parties relatable. While the usage of such payment channels is now becoming commonplace, closing any channel isn’t immediate as up to 24 hours might be needed for confirmation. For clarity, any channel opened can only work between the layer 2 solution and the host platform. When a rollup chain processes any block, it provides snapshots directly to the host blockchain. Leading examples of rollup solutions are Arbitrum, Optimism, zkSync etc.

How Do Rollups Work?

Rollups within a blockchain will perform any given set of transactions outside the main chain while providing its transaction data to the host blockchain. The rollup solution uses layer 2 while the host blockchain is layer 1. In effect, the transaction data and the rollups are actually secured by the host layer 1. Although layer 2 inherits the existing properties inherent in layer 1 such as security, it is able to perform its transaction execution outside the main chain.

Each Rollup is defined by:

  • Initiating or executing transactions outside the host blockchain (layer 1)
  • The data for transaction proof is hosted on the layer 1
  • A smart contract on the host blockchain that enforces layer 2 transactions with the transaction data on the main chain.

Operators of rollups are required to enforce a staking bond in every rollup contract so that validators can execute transactions without hesitation. With every rollup in place, the leading benefits they confer on users are

  • Blockchain fees reduction
  • Welcome participation without limitations
  • Faster transaction processing times.

How zk-SNARKs Works

 zk-SNARKs is in use by ZCash blockchain and it is a privacy technology that makes it possible for transactions to be encrypted with no possibility of tracing.  While the encryption does not shut out the parties to a transaction, it works in such a way that the sender of a transaction is able to initiate it using a receiver’s address, who will be notified when the expected funds arrive. The sender’s address and the receiver’s address will be encrypted in the final outcome among variables to authenticate a transaction.

zk- means Zero Knowledge, while snarks stand for Succinct Non -interactive Argument of Knowledge. When in use, the sender, the prover, and the verifier are the parties of importance. In an ecosystem, the receiver of ZEC for example, only needs to provider a clue to show that the transaction concerned is valid and that the expected credentials are genuine. The clue provided will not be an outright answer like 2, for 1 +1, but rather 4, to show that the answer is divisible by 2. To prevent false proofs, the ecosystem brought in a system of validators or miners, to superintend the process.

The verifier will be the miners or validators of new blocks or transactions, who requires such proof to validate the transaction. When a sender initiates the transaction, the receiver will be notified with a proof that must be presented to show that the transaction is bonafide. As zk-SNARKs is designed, the resultant proof could be a hash, or a symbol, which ordinarily bears no resemblance to the expected outcome, but will be sufficient for validation purposes.

zk-SNARKs Transaction Types

Transactions here can be partly shielded or fully shielded. A fully shielded option means that there is no traceability possible, while a partly shielded one can be traced. On how the shield level is determined, the initiator of the transactions can decide the option to use, and the ecosystem will follow the lead provided.

The appeal of zk-SNARKs is in the fact that it can be applied to any particular blockchain in order to shield transactions. In practical terms, for example, it will work as a layer-2 solution with the right infrastructure on Ethereum as zk-Rollups. Aztec, for example is already touted as an example of a solution for Ethereum privacy that looks set to be a future success.

The Disruption Front and looking Ahead

In talking about disruption of the crypto ecosystem by rollups, it is worthwhile to note that layer 2 solutions are making a difference. Developers are focusing attention on layer 2 solutions, cutting off having to invent a blockchain from the scratch, and thereby optimizing existing ecosystems.

Prominent blockchains are already providing funds through their various foundations to boost research efforts to beat the competition, which incentivizes developers to be more resourceful. Rollups could be the new route for developers to make a difference in the crypto space and with new solutions showing that zk-Rollups are possible with Ethereum and other projects, it could be the new blockchain frontier in the coming years.

Update

Fast forward 19 months since publishing this post, there has been significant traction within the development and launches of L2 Rollups and zk-SNARK projects. Below is a breakdown of the most notable projects:

zkSync – is essentially a L2 protocol which aims to scale Ethereum using Zero Knowledge Proof technology. Currently launched their mainnet, fully audited and permissionless.

Starknet – is a L2 network which focuses on Ethereum scaling securely and the dapps within the ecosystem, to achieve infinite scale regarding transactions and computation.

Polygon Zero – Scaling solution on Ethereum which works with smart contracts and wallets utilising zero knowledge proofs.

Arbitrum – L2 protocol focused on achieving higher throughput, decreasing transaction costs and reaching compatibility with Ethereum.

Optimism – Mainnet launched aiming to achieve fast, stable and scalable L2 blockchain.

 

 

 

Get InTouch