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
The figure below depicts a simplified, high level view of the CDK PP chain architecture, as well as the flow of transactions through the system.
2
2
3
-
The figure below depicts a simplified, high-level view of the CDK chain architecture using pessimistic proofs and the flow of transactions through the system.
Here is a step-by-step flow of transactions starting from when users submit transactions up to when the transactions are settled in L1:
7
+
Here is a step by step flow of transactions starting from when users submit transactions up to when the transactions are settled in L1.
10
8
11
9
1. A user connects to the chain via a CDK Erigon RPC node and submits a transaction.
12
10
2. CDK Erigon RPC node sends the transaction data to the transaction-pool manager.
13
11
3. The transaction-pool manager proxies all transaction data to the CDK Erigon sequencer.
14
-
4. CDK Erigon sequencer executes transactions, puts the transactions in blocks, and the blocks fill up batches.
15
-
5.Any CDK Erigon RPC node syncs transaction data from the CDK Erigon sequencer.
16
-
6. AggSender gets batch data from the CDK Erigon sequencer, uses the data to generate certificates, and submits the certificates to the AggLayer RPC.
17
-
7. The AggLayer RPC checks the validity of the certificates against the transaction data in the CDK Erigon RPC node.
18
-
8. After validating the certificates, the AggLayer RPC sends a request to generate a proof, together with the necessary data (including the certificates), to the SP1 prover.
19
-
9. Once the proof is received from the SP1 prover, the AggLayer RPC sends it to L1.
12
+
4. CDK Erigon sequencer executes transactions, puts the transactions in blocks, and the blocks fill up batches.
13
+
5. CDK Erigon sequencer syncs all transaction data with any CDK Erigon RPC node.
14
+
6. AggSender gets batch data from the CDK Erigon sequencer, uses the data to generate certificates, and submits the certificates to the JSON-RPC API.
15
+
7. The JSON-RPC API checks validity of the certificates against the transaction data in the CDK Erigon RPC node.
16
+
8. After validating the certificates, the JSON-RPC API sends a request to generate a proof, together with the necessary data (including the certificates), to the SP1 prover.
17
+
9. Once the proof is received from the SP1 prover, the JSON-RPC API sends it to L1.
Copy file name to clipboardExpand all lines: docs/cdk/concepts/bridging.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
@@ -26,7 +26,7 @@ Chains that integrate with the unified bridge can benefit from the network effec
26
26
27
27
This option is suited to chains that want a standard bridging experience and do not require customization of the bridge's operation. The shared bridge is also not directly managed by the chain operator, instead, it shares the governance outlined in the [admin upgradeability](./admin-upgradeability.md) section.
The `params.yml` file defines the parameters of the chain and the deployment process.
85
+
The `input_parser.star` file defines the default parameters of the chain and the deployment process.
70
86
71
87
It includes configurations for simple parameters such as the chain ID and more complex configurations such as the gas token smart contract address.
72
88
73
-
You can modify each of these parameters to customize the chain to your specific needs.
89
+
To customize the chain to your specific needs you need to create a new configuration file in your desired path, for example: `./params.yml`
74
90
75
91
## Run the chain locally
76
92
@@ -102,20 +118,35 @@ You can modify each of these parameters to customize the chain to your specific
102
118
103
119
```
104
120
105
-
The default deployment includes `cdk-erigon` as the sequencer, and `cdk-node` functioning as the sequence sender and aggregator.
121
+
The default deployment it's a **Full Execution Proofs** setup that includes `cdk-erigon` as the sequencer, and `cdk-node` functioning as the sequence sender and aggregator.
106
122
107
123
You can verify the default versions of these components and the default fork ID by reviewing `input_parser.star`. You can check the default versions of the deployed components and the default fork ID by looking at `input_parser.star`.
108
124
109
125
3. Customize the chain
110
126
111
-
To make customizations to the CDK environment, clone this repo, make any desired configuration changes, and then run:
127
+
To make customizations to the CDK environment create a kurtosis configuration file with your desired environment, for example:
128
+
129
+
### Configure a CDK Sovereign chain
130
+
131
+
```yaml
132
+
args:
133
+
consensus_contract_type: pessimistic
134
+
sequencer_type: erigon
135
+
erigon_strict_mode: false
136
+
agglayer_prover_sp1_key: REDACTED
137
+
enable_normalcy: true
138
+
```
139
+
140
+
Save this config to `params.yml` file, and then run:
112
141
113
142
```sh
114
143
# Delete all stop and clean all currently running enclaves
115
144
kurtosis clean --all
116
145
146
+
147
+
117
148
# Run this command from the root of the repository to start the network
118
-
kurtosis run --enclave cdk .
149
+
kurtosis run --enclave cdk --args-file ./params.yml github.com/0xPolygon/kurtosis-cdk
0 commit comments