Skip to content

Commit 9343bac

Browse files
author
Nadim Kobeissi
authored
Merge pull request 0xPolygon#63 from 0xPolygon/km/style_scan
Km/style scan
2 parents ba11733 + 772b85f commit 9343bac

29 files changed

+358
-372
lines changed

docs/cdk/concepts/dac.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ Data availability in blockchain technology refers to whether or not transaction
33
If data is available on-chain, then each node has to store every piece of data related to every transaction. This can be costly for node operators as hardware and storage requirements are high. Moving data off-chain streamlines node architecture and operations.
44

55
!!! info "Recommended resource"
6-
See Ethereum.org's discussion on [data availability](https://ethereum.org/en/developers/docs/data-availability/).
6+
See [Ethereum.org's discussion on data availability](https://ethereum.org/en/developers/docs/data-availability/).
77

8-
## Data availability committees
8+
## Data availability committee (DAC)
99

10-
Polygon's CDK validium has an optional data availability committee (DAC).
10+
Polygon's CDK validium has an optional DAC.
1111

1212
A DAC is an off-chain network of nodes that implements a data storage layer in a modular chain architecture like CDK. Some advantages are:
1313

@@ -24,15 +24,15 @@ The CDK validium DAC is a secure consortium of nodes that ensures off-chain data
2424

2525
## DAC data flow
2626

27-
![CDK validium DAC dataflow](../../img/cdk/cdk-val-dac-02.png)
27+
![CDK validium data availability dataflow](../../img/cdk/cdk-val-dac-02.png)
2828

2929
The DAC works together with the sequencer to control the flow of data. The process can be broken down as follows:
3030

3131
1. **Batch formation**: The sequencer collects user transactions and organizes them into batches.
3232

3333
2. **Batch authentication**: Once the batches are assembled, they are authenticated. The sequencer forwards the batch data and its corresponding hash to the DAC.
3434

35-
3. **Data validation and storage**: The DAC nodes independently validate the batch data. Once validated, the hash is stored in each node's local database for future reference.
35+
3. **Data validation and storage**: The DAC nodes independently validate the batch data. Once validated, the hash is stored in each node's local database for future reference.
3636

3737
4. **Signature generation**: Each DAC node generates a signature for the batch hash. This serves as an endorsement of the batch's integrity and authenticity.
3838

docs/cdk/concepts/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
This section covers some of the basic concepts needed to understand the CDK setting, which is a platform designed to allow developers to choose between validium and zk-rollup architectures.
1+
This section explores basic concepts underpinning CDK; a platform designed to allow developers to choose between validium and rollup architectures.
22

3-
Concepts such as a rollup, a validium and data availability committee (DAC) are defined. Implications of off-chain data availability are briefly discussed.
3+
The section currently defines concepts such as rollup, validium, and data availability committee (DAC). Some implications of off-chain data availability are mentioned.

docs/cdk/concepts/rollup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ Rollups are blockchain layer 2 scaling solutions that speed up the network by *r
33
CDK provides zkEVM rollup solutions.
44

55
!!! info "Recommended resource"
6-
See Ethereum.org's detailed [description of zero-knowledge rollups](https://ethereum.org/en/developers/docs/scaling/zk-rollups/).
6+
See [Ethereum.org's detailed description of zero-knowledge rollups](https://ethereum.org/en/developers/docs/scaling/zk-rollups/).

docs/cdk/concepts/validium.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
Validiums are blockchain scaling solutions that do not store transaction data on-chain.
22

33
!!! info "Recommended resource"
4-
See Ethereum.org's detailed [description of validiums](https://ethereum.org/en/developers/docs/scaling/validium/).
4+
See [Ethereum.org's detailed description of validiums](https://ethereum.org/en/developers/docs/scaling/validium/).
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
## Run a CDK rollup locally
22

3-
The following documentation is a quickstart guide for deploying a CDK rollup on your local machine.
3+
The following link takes you to a quickstart guide for deploying a CDK rollup on your local machine.
44

55
[https://github.com/0xPolygonHermez/zkevm-node/blob/develop/docs/running_local.md](https://github.com/0xPolygonHermez/zkevm-node/blob/develop/docs/running_local.md)

docs/cdk/how-to/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
This section describes how to manage policies pertaining to data access in the case of a Validium.
1+
This section describes how to manage policies pertaining to data access in the case of a validium.
22

3-
Validia store data off-chain, and with this option comes the need to manage both the data and access to the data. This is facilitated through policies that stipulate which addresses can have access to data. Lists of addresses, such as the Allowlist and Denylist, are therefore kept to exclude or include certain addresses to having access.
3+
Validium architectures store data off-chain, and with this option comes the need to manage both the data and access to the data. This is facilitated through policies that stipulate which addresses can have access to data. Lists of addresses, such as the Allowlist and Denylist, are therefore kept to exclude or include certain addresses to having access.
44

docs/cdk/spec/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ This section gives a comparison between a validium and a zk-rollup.
22

33
The main difference is the fact that a validium has a data availability layer whereas a zk-rollup does not. This difference alone is the reason for the substantially reduced gas fees for a validium compared to the zk-rollup.
44

5-
However, with this off-chain data availability, there is a trade-off between gas fees and security. Unlike in the zk-rollup, where forced batches are activated, the validium suffers from the possibility for the sequencer to go offline or the DAC to collude among themselves to withold state data.
5+
However, with this off-chain data availability, there is a trade-off between gas fees and security. Unlike in the zk-rollup, where forced batches are activated, the validium suffers from the possibility for the sequencer to go offline or the DAC to collude among themselves to withhold state data.
66

77
What remains common between the two architectures is the generation of proofs.

0 commit comments

Comments
 (0)