Skip to content

Commit

Permalink
nav and content changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchpolygon committed Nov 26, 2024
1 parent dd648be commit 57c9e87
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 29 deletions.
File renamed without changes.
20 changes: 20 additions & 0 deletions docs/cdk/concepts/rollup-vs-validium.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,26 @@ Below is a breakdown of the technical differences between a zkEVM rollup and val
| **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. |
<sub><sup>\*</sup>JSON RPC, Tx pool manager, Sequencer, Etherman, Synchronizer, State DB, Aggregator, Prover</sub>


Polygon CDK running in validium mode inherits the core functionalities of a zkEVM rollup node and adds a [data availability layer](../glossary/index.md#data-availability-committee-dac).

## Key differences

| | Rollup | Validium |
| ------------------------ | ----------------------------------------------------------- | ---------------------------------------------------------------------------------- |
| **Node type** | [cdk-erigon:v1.2.24](https://github.com/0xPolygonHermez/cdk-erigon/releases/tag/v1.2.24) | [cdk-erigon:v2.1.x](https://github.com/0xPolygonHermez/cdk-erigon/releases) |
| **Data availability** | On-chain via L1 | Off-chain via a local option, or a [DAC](../glossary/index.md#data-availability-committee-dac) + [DA node](https://github.com/0xPolygon/cdk-data-availability) |
| **Components** | zkEVM components\* | zkEVM components\* + PostgreSQL database + on-chain committees |
| **Contracts** | [zkEVM smart contracts](https://github.com/0xPolygonHermez/zkevm-contracts) <ul><li>`PolygonZkEVM` (main rollup contract)</li> <li> `PolygonZkEVMBridge`</li> <li>`PolygonZkEVMGlobalExitRoot`</li></ul> | [Validium-specific DAC contract](https://github.com/0xPolygon/cdk-validium-contracts) <ul><li>`CDKDataCommittee.sol`</li><li> `CDKValidium.sol` </li></ul> |
| **Infrastructure** | Standard infrastructure | Dedicated infrastructure for data availability layer and DACs |
| **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.
| **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. |
| **Gas fees** | High, because all transaction data is stored on Ethereum. | Low, because only the hash of the transaction data is stored on Ethereum. |
| **Proof generation** | Uses Prover to generate proofs of batched transactions for validation. | Uses Prover to generate proofs of batched transactions for validation. |
| **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. |

<sub><sup>*</sup>JSON RPC, Pool DB, Sequencer, Etherman, Synchronizer, State DB, Aggregator, Prover</sub>

## Further reading

- [Ethereum documentation: rollups](https://ethereum.org/en/developers/docs/scaling/#rollups)
Expand Down
File renamed without changes.
24 changes: 0 additions & 24 deletions docs/cdk/spec/validium-vs-rollup.md

This file was deleted.

8 changes: 3 additions & 5 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,9 @@ nav:
- Overview: cdk/overview.md
- Releases:
- Current Release:
- Polygon CDK Fork ID 12: docs/cdk/releases/fork-id-12.md
- Polygon CDK Fork ID 12: cdk/releases/fork-id-12.md
- Previous Releases:
- Polygon CDK Erigon: cdk/getting-started/cdk-erigon/releases.md
- Polygon CDK Fork ID 7 to 9: cdk/how-to/migrate/forkid-7-to-9.md
- Get Started:
- Local Deployment Guide: cdk/getting-started/local-deployment.md
- CLI Tool: cdk/getting-started/cli-tool.md
Expand All @@ -77,8 +76,9 @@ nav:
- Resources: cdk/getting-started/cdk-erigon/resources.md
- How To:
- Migrate:
- General Guide for Projects: cdk/how-to/migrate/fork.md
- Fork ID 9 to 12: cdk/how-to/migrate/forkid-9-12.md
- General Guide for Partners: cdk/how-to/migrate/fork.md
- Fork ID 7 to 9: cdk/how-to/migrate/forkid-7-to-9.md
- Create Custom Native Token: cdk/how-to/use-native-token.md
- Integrate DA Layer: cdk/how-to/integrate-da.md
- Manage Allowlists with Policies: cdk/how-to/manage-policies.md
Expand All @@ -103,8 +103,6 @@ nav:
- CDK Rollup: cdk/architecture/cdk-zkevm.md
- CDK Validium: cdk/architecture/cdk-validium.md
- Staking the Bridge (STB): cdk/architecture/staking-the-bridge.md
- Specification:
- Validium vs Rollup: cdk/spec/validium-vs-rollup.md
- Glossary:
- Glossary: cdk/glossary/index.md
- Additional Resources:
Expand Down

0 comments on commit 57c9e87

Please sign in to comment.