You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rollups are blockchain layer 2 scaling solutions that speed up the network by *rolling up* multiple transactions into batches which are eventually committed to the layer 1.
2
+
3
+
CDK provides zkEVM rollup solutions.
4
+
5
+
!!! info "Recommended resource"
6
+
See Ethereum.org's detailed [description of zero-knowledge rollups](https://ethereum.org/en/developers/docs/scaling/zk-rollups/).
Copy file name to clipboardExpand all lines: docs/cdk/get-started/deploy-validium.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,4 +20,4 @@ Follow the instructions in the [CDK validium node repository's README](https://g
20
20
21
21
Finally, once the CDK validium node is operational, set up and run the data availability node.
22
22
23
-
Check for instructions here: [<ins>CDK DA Node GitHub repository's README</ins>](https://github.com/0xPolygon/cdk-data-availability).
23
+
Check for instructions here: [<ins>CDK DA Node GitHub running instructions</ins>](https://github.com/0xPolygon/cdk-data-availability/blob/main/docs/running.md).
Copy file name to clipboardExpand all lines: docs/cdk/get-started/overview.md
+14-7Lines changed: 14 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,20 @@
1
-
Polygon's Chain Development Kit (CDK) is a modular, open source software tool for blockchain developers which supports installation and configuration of a variety of chain architectures.
1
+
Polygon’s Chain Development Kit (CDK) is a modular, open source software toolkit for blockchain developers which supports installation and configuration of a variety of chain architectures.
2
2
3
-
!!! important
4
-
At the time of writing, CDK offers rollup and validium configurations.
3
+
This section documents the two most popular deployments currently supported by CDK:
4
+
5
+
- Validium
6
+
- Rollup
7
+
8
+
Users select a chain architecture specific to their needs from a set of supported, open source options. Alternatively, users can select custom components for specific requirements.
5
9
6
-
CDK users choose a chain architecture specific to their needs and use cases.
10
+
The diagram below shows the two supported configuration options for data availability (DA), rollup or validium. Rollups post transaction data from the CDK directly onto Ethereum whereas validiums only post the transaction hash.
|**Node type**|[zkEVM node](https://github.com/0xPolygonHermez/zkevm-node)|[Validium node](https://github.com/0xPolygon/cdk-validium-node): zkEVM node with validium extensions |
10
-
|**Data availability**| On-chain | Off-chain via DACs + [DA node](https://github.com/0xPolygon/cdk-data-availability)|
10
+
|**Data availability**| On-chain via L1| Off-chain via a local option, or a [DAC](../concepts/dac.md) + [DA node](https://github.com/0xPolygon/cdk-data-availability)|
|**Infrastructure**| Standard infrastructure | Dedicated infrastructure for data availability layer and DACs |
14
-
| **Tx flow** | All transaction data is published on L1 | Validium only publishes the hash of the transaction data. This `Accumulated Input Hash` must be approved by a majority of DAC members. <br/><br/>The sequencer sends both the hash and the transaction data to the DAC for verification. Once approved, the hash plus signatures, is sent to the Consensus L1 contract of the validium protocol. <br/><br/> After verification, the hash and the zk-proof are added to the L1 state.
15
-
|**Security**| High security due to on-chain data availability and zero-knowledge proofs. |Off-chain data availability can affect security if DAC members collude to withhold state data. However, security still good due to zero-knowledge proofs. |
14
+
| **Tx flow** | All transaction data is published on L1 | Validium only publishes the hash of the transaction data to L1. The sequencer sends both the hash and the transaction data to the DAC for verification. Once approved, the hash+signatures are sent to the Consensus L1 contract of the validium protocol.
15
+
|**Security**| High security due to on-chain data availability and zero-knowledge proofs. |Off-chain data availability can affect security if the sequencer goes offline or if DAC members collude to withhold state data. |
16
16
|**Gas fees**| High, because all transaction data is stored on Ethereum. | Low, because only the hash of the transaction data is stored on Ethereum. |
17
17
|**Proof generation**| Uses Prover to generate proofs of batched transactions for validation. | Uses Prover to generate proofs of batched transactions for validation. |
18
-
|**Transaction validation**| Done with smart contracts on Ethereum. | Involves an additional layer where DAC members sign the hash of the transaction data. |
19
18
|**Final settlement**| Transaction batches and their corresponding proofs are added to the Ethereum state. | The hash of transaction data and its proof are added to the Ethereum state, referred to as the consolidated state. |
20
19
21
20
<sub><sup>*</sup>JSON RPC, Pool DB, Sequencer, Etherman, Synchronizer, State DB, Aggregator, Prover</sub>
0 commit comments