Topics In Demand
Notification
New

No notification found.

CDK Validium vs Polygon zkEVM Deployment– Differences explained
CDK Validium vs Polygon zkEVM Deployment– Differences explained

December 26, 2023

97

0

 

CDK validium is currently the most interesting and highly feasible upgrade on the Polygon ecosystem. Validium is designed to enhance the existing scalability, security, and privacy capabilities of Polygon CDK. However, as a new concept, there’s a lot of skepticism among web3 developers and enterprises related to the features, benefits, and use cases of CDK validium. That’s why we see a lack of clarity between CDK Validium and Polygon zkEVM. This guide will explain all the differences of CDK Validium vs Polygon zkEVM deployment, allowing anyone to understand the benefits, deployment approach, requirements, and other parameters for choosing one of these solutions. 

What is Polygon CDK Validium?

CDK validium is a solution that performs transaction execution and maintain data availability off-chain. Which means, validiums doesnot store data on underlying Layer-1 chain. Instead, a DA layer with its DAC committee validates the transactions and generate hash that is stored on L1 network. Hence, validium maintains data availability outside of the Ethereum network by implementing a trusted sequencer, referred to as DAC or data availability committee. With that, CDK validium offers benefits like lower transaction fees and state privacy and data integrity. Projects building their CDK chain can adopt ‘validium’ mode for implementing a centralized sequencer, which enhances the throughput, speed, and security on the L1 chain.

What is Polygon zkEVM?

Polygon ZkEVM is a zero-knowledge-based rollup scaling solution that is fully EVM-equivalent, and it involves an off-chain transaction processing approach to increase the throughput and speed of Layer-1. Unlike CDK validium, Polygon zkEVM includes the data availability and execution verification in Layer-1 blockchain itself. Further, it uses Layer-2 rollup network to compute and validate the transactions. Once verified, the validity proofs are submitted on layer-1. Polygon zkEVM is basically a zk-powered public chain that allows dApps and other web3 projects to build on zkEVM’s highly scalable, secure, and low-cost ecosystem or seamlessly migrate from any Layer-1 network, let’s say Ethereum.

CDK Validium vs Polygon zkEVM – Analyzing all the deployment differences

For those who are deploying their projects on Polygon zkEVM or building their CDK chain, this section provides details on CDK validum vs Polygon zkEVM deployment. You can choose an approach based on your specific needs:

1- Comparing Hardware/software requirements

Following deploying a Polygon CDK validium:

  • Linux operating system
  • A minimum of 16GB RAM with 4-core CPU
  • Virtual machine and Hypervisor.
  • AMD64 architecture system
  • Docker.
  • Docker compose.
  • Web3 wallet. E.g Metamask
  • Access to native  LXLY Bridge

For deploying on Polygon zkEVM network:

  • A Hypervisor
  • A Virtual Machine
  • Latest version of Ubuntu Linux.
  • Docker.
  • 96-core CPU
  • Minimum 768GB RAM
  • Web3 wallet.
  • Access to Polygon zkEVM bridge.

2- Core components required for deployment

CDK Validium:

zkEVM node with Validum extension- As we know, CDK validium is powered by the Polygon zkEVM network. Hence, validium deployment requires a zkEVM node, which is further extended to support Validium-related operations, i.e. the data availability layer.

Data availability layer- This DA layer is a very crucial component of CDK validium, which is responsible for separating the transaction execution from the data storage mechanism so that the load on the mainchain is reduced significantly and privacy is preserved. To do this, the DA layer stores all the transaction data off-chain but publishes their verified hashes on the mainchain. All the operations on the DA layer are managed by DACs (Data Availability Committees) that are tasked to verify off-chain data and ensure their reliability and accessibility.

Validium-specific contract- CDK validium deployment requires a zkEVM smart contract plus a validium-specific DAC contract for enabling validum mode in your desired CDK chain and thereby implementing a dedicated layer for off-chain data storage, execution, and authentication.  

Infrastructure- CDK validium needs a dedicated infrastructure that can manage all the rollup-specific elements (prover, aggregator, etc), plus manage the data availability layer and data availability committee (DACs).

Bridge- CDK validiums are independent Zk-powered rollup chains that need to maintain interoperability across them. By implementing a LXLY or any CDK-compatible bridge, this interoperability can be achieved easily. 

Rollup-specific components: Sequencer, Synchronizer, Aggregator, and prover.

Other crucial components: JSON RPC, Pool DB, Etherma, and State DB.

zkEVM (rollup): 

zkEVM node– The zkEVM node manages the whole Polygon zkEVM network, including execution of transactions, maintaining the network’s state, and enabling interaction with the Layer-1. 

zkEVM contracts The zkEVM smart contract allows zkEVM operations on Layer-1. For example, it allow seamless deployment of Ethereum smart contract on Polygon zkEVM network, allow projects to upgrade their contract code, instead of rewriting or creating the contract from scratch. 

Infrastructure- Polygon zkEVM requires a standard Zk-rollup infrastructure to manage nodes, EVM, smart contracts, and rollup-specific elements such as prover, aggregator, sequencer, and synchronizer.

Bridge- Implementation of Polygon bridge or any Ethereum-compatible is crucial to enable bridging of assets from underlying Layer-1 blockchain to rollup network and conversely. 

Validum-specific components- Synchronizer, Aggregator, Prover, and on-chain committees.

Other important components– JSON RPC, Pool DB, Sequencer, Etherman,PostgreSQL database, and State DB.

3- Transaction Data flow differences

CDK Validium:

As discussed, data flow in CDK validium requires a different approach as it posts only the hash of transaction data on the Layer-1 network. Below is the step-by-step explanation of CDK Validium’s data flow process:  

  1. The sequencer accumulates all the transactions from layer-1 and forms their batches.
  2. The batched transactions are then sent to DACs for authentication.
  3. DAC nodes independently authenticate the batched data and stores their hash in nodes’ local database.
  4. The DAC nodes generate signatures for each batch’s hash.
  5. The sequencer collects and submits these signatures and the batch hash to Layer-1 for further verification.
  6. The smart contract on Layer-1 then validates the submitted signatures and provides approval for the batch hash.
  7. Finally, the aggregator creates zero-knowledge proof for the batch and submits that to L1. This zk-proof confirms the integrity of the batch’s transactions, and thereby updating the CDK-chain’s state on Layer-1.

Polygon zkEVM:

Data flow in Polygon zkEVM is a little simplified than Validium. Let’s take a closer look at how it exactly happens:

  • Users submit their transactions to the Polygon zkEVM network. 
  • The sequencer checks all the transactions, and then executes the valid transactions to add them into batches, and meanwhile updating its local L2 state.
  • Batches are then sequenced through sequencer nodes, verified before becoming a part of Layer-2’s virtual state.
  • The aggregator aggregates the sequenced batches and thereby creates their corresponding SNARK proof.
  •  The zk-proofs are later submitted on-chain to ensure integrity of transactions executed and verified off-chain.

4- Difference in Deployment process 

Deploying CDK validium deployment is closely similar to Polygon zkEVM deployment. However, there are some additional configurations and integration of specific components. In this regard, let’s first understand the step-by-step process of Polygon zkEVM deployment. After that, we will learn what additional deployments are required for CDK validium:

Steps for deploying Polygon zkEVM (rollup)

  1. Installing all the dependencies
  2. Creating wallets and zkEVM contract.
  3. Deploying zkEVM node.
  4. Configuring the prover and defining its services.
  5. Allowing forced transactions, asset bridging and asset claiming.
  6. Connecting to the live Polygon zkEVM network.

Steps for deploying CDK Validium chain- 

For CDK Validium deployment, most of the above processes will remain the same, but you need to follow the given additional steps.

  1. Deployment of validum-specific contract.
  2. Setting up and running the CDK validium node.
  3. Running the data availability (DA) node.

 For a complete overview of Polygon CDK deployment, refer to our guide linked here: A comprehensive guide on Polygon CDK and its deployment

TL;DR for CDK Validium vs Polygon zkEVM Deployment 

The below  TL;DR highlights the key differences between CDK validium and Polygon zkEVM. Web3 projects must consider all these parameters while deploying their dApp on zkEVM network or building a CDK validium chain.

Projects building on CDK Validium and Polygon zkEVM

Polygon zkEVM is keeping its momentum with its rich ecosystem of projects like QuickSwap, Celer cBridge, 1 delta, Symbiosis Finance, Witnet, Scalar DAO, XY Finance, and Layerzero. 

Speaking about the CDK Validum, it has gained huge traction as a fully open-source and flexible zk-powered appchain framework. Prominent projects like Canto, Astar Network, Immutable, Aavegotchi, Capx, IDEX, Gnosis pay, Palm, X1 Network are building their CDK chain. 

Despite such growing popularity and addition of new projects, Polygon continually introduces new features, staying relevant overtime and surpass the expectations of web3 projects. 

 

About The Author 

Author

Dr. Ravi Chamria is co-founder CEO of Zeeve Inc, an Enterprise Blockchain company. He has an experience of 18+ years in IT consulting spanning across Fintech, InsureTech, Supply Chain and eCommerce. He is an executive MBA from IIM, Lucknow and a prolific speaker on emerging technologies like Blockchain, IoT and AI/ML.

Passionate About: Blockchain, Supply Chain Management, Digital Lending, Digital Payments, AI/ML, IoT

Specialities: Strategic Management, Technology Innovation, Product Management


That the contents of third-party articles/blogs published here on the website, and the interpretation of all information in the article/blogs such as data, maps, numbers, opinions etc. displayed in the article/blogs and views or the opinions expressed within the content are solely of the author's; and do not reflect the opinions and beliefs of NASSCOM or its affiliates in any manner. NASSCOM does not take any liability w.r.t. content in any manner and will not be liable in any manner whatsoever for any kind of liability arising out of any act, error or omission. The contents of third-party article/blogs published, are provided solely as convenience; and the presence of these articles/blogs should not, under any circumstances, be considered as an endorsement of the contents by NASSCOM in any manner; and if you chose to access these articles/blogs , you do so at your own risk.


Zeeve is an enterprise-grade Blockchain Infrastructure Automation Platform. Join the growing list of clients that trust us with their Blockchain initiatives

© Copyright nasscom. All Rights Reserved.