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
Polygon AggLayer is a web service that receives zero-knowledge proofs from different CDK chains and checks their soundness before sending the proof to L1 for verification.
2
+
3
+
!!! warning
4
+
- The AggLayer is in development and subject to architectural changes.
5
+
- The code is still being audited.
6
+
7
+
## Prerequisites
8
+
9
+
Make sure you have the following software installations.
Run the following command to bring up a zkEVM node, a prover, and a mock L1 network.
28
+
29
+
```sh
30
+
make run-docker
31
+
```
32
+
33
+
### Production build - managed by Polygon
34
+
35
+
!!! warning
36
+
- The AggLayer in production is currently managed by Polygon.
37
+
- Currently only one instance of the AggLayer can run at one time.
38
+
- The AggLayer should, therefore, automatically start in the case of failure using a containerized setup or an OS level service manager/monitoring system.
39
+
40
+
Install the Golang dependencies.
41
+
42
+
```sh
43
+
go install .
44
+
```
45
+
46
+
#### Key-signing configurations
47
+
48
+
Install polygon-cli:
49
+
50
+
```sh
51
+
go install github.com/maticnetwork/polygon-cli@latest
In the `../agglayer/docker/data/agglayer/agglayer.toml` file, add the `KMSKeyName` from GCloud.
67
+
68
+
## Setting up the AggLayer
69
+
70
+
Each CDK chain requires a corresponding RPC node configuration that is synced with the target CDK. This node checks the state root after executions of L2 batches.
71
+
72
+
!!! info "Storage recommendations"
73
+
- Use a durable HA PostgresDB for storage; ideally AWS Aurora PostgreSQL or Cloud SQL for PostgreSQL in GCP.
74
+
75
+
Add the chain configurations to the `../agglayer/docker/data/agglayer/agglayer.toml` file by amending the following details to add the required chain(s).
76
+
77
+
* Configure `[FullNodeRPCs]` to point to the corresponding L2 full node.
78
+
* Configure the `[DB]` section with the managed database details.
79
+
* Configure `[L1]` to point to the corresponding L1 chain.
Copy file name to clipboardExpand all lines: docs/cdk/version-matrix.md
+18-28Lines changed: 18 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,15 +5,15 @@ hide:
5
5
6
6
## CDK
7
7
8
-
The table below shows the version compatibility for CDK releases and related components.
8
+
The table below shows the version compatibility for CDK releases and related components.
9
9
10
10
<table>
11
11
<thead>
12
12
<tr>
13
13
<th>CDK version</th>
14
14
<th>Fork ID</th>
15
15
<th>Equivalent zkEVM node</th>
16
-
<th>CDK validium node</th>
16
+
<th>CDK validium node</th>
17
17
<th>CDK data<br>availability</th>
18
18
<th>ZK-EVM prover</th>
19
19
<th>Contracts</th>
@@ -22,42 +22,33 @@ The table below shows the version compatibility for CDK releases and related com
22
22
</thead>
23
23
<tbody>
24
24
<tr>
25
-
<td>Rollup </td>
26
-
<td colspan="7">Follow zkEVM: <a href="https://github.com/0xPolygonHermez#testnetmainnet-versions" target="_blank" rel="noopener noreferrer">https://github.com/0xPolygonHermez#testnetmainnet-versions</a><br>Disclaimer: These versions are intended for permissionless nodes.</td>
0 commit comments