Skip to content

Commit 025466f

Browse files
updates to pics and flows
1 parent 5b06774 commit 025466f

File tree

2 files changed

+14
-21
lines changed

2 files changed

+14
-21
lines changed

docs/cdk/architecture/high-level-views.md

Lines changed: 14 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -25,23 +25,21 @@ The following diagram is a sequential depiction of the user data flow for the CD
2525
#### Sequential interactions
2626

2727
1. User sends a transaction to the CDK Erigon RPC node.
28-
2. The Erigon RPC node proxies the data to the CDK Erigon sequencer node.
28+
2. The CDK Erigon RPC node proxies the data to the CDK Erigon sequencer node and syncs the batch data between the sequencer and the RPC nodes.
2929
3. The sequencer sequences the transaction batches.
30-
4. The sequencer puts the batches into the data streamer component.
31-
5. The data streamer component streams the data into the sequence sender. It streams data into the aggregator and AggLayer for rollup and validium mode stacks.
32-
6. In validium mode, the sequencer sender persists transaction data into the DAC nodes.
33-
7. In both modes, the sequencer sender sequences the batches into the L1 smart contracts.
34-
8. In both modes, the aggregator sends the batches to the prover and the prover returns the proofs.
35-
9. The aggregator batches the proofs.
36-
10. The aggregator submits the final proof to the AggLayer.
37-
11. The AggLayer submits the final proof to the L1 smart contract domain.
30+
4. The sequencer sender reads batches from the RPC node.
31+
5. In validium mode only, the sequencer sender persists transaction data into the DAC nodes.
32+
6. The sequencer sender sequences the batches into the L1 smart contracts.
33+
7. The aggregator reads batches from the sequencer data stream.
34+
8. The aggregator sends batches to the provers.
35+
9. The aggregator submits the final proof to the AggLayer.
36+
10. The AggLayer submits the final proof to the L1 smart contract domain.
3837

3938
```mermaid
4039
sequenceDiagram
4140
participant User
4241
participant ErigonRPC as CDK Erigon RPC Node
4342
participant Sequencer as CDK Erigon Sequencer Node
44-
participant DataStreamer as Data Streamer
4543
participant SeqSender as Sequence Sender
4644
participant Aggregator
4745
participant AggLayer
@@ -50,18 +48,13 @@ sequenceDiagram
5048
participant L1 as L1 Smart Contracts
5149
5250
User->>ErigonRPC: Send transaction
53-
ErigonRPC->>Sequencer: Proxy transaction data
51+
ErigonRPC->>Sequencer: Proxy and sync transaction data
5452
Sequencer->>Sequencer: Sequence transaction batches
55-
Sequencer->>DataStreamer: Put batches into Data Streamer
56-
DataStreamer->>SeqSender: Stream data into Sequence Sender
57-
DataStreamer->>Aggregator: Stream data for Rollup & Validium mode
58-
DataStreamer->>AggLayer: Stream data for Rollup & Validium mode
59-
alt Validium Mode
60-
SeqSender->>DACNodes: Persist transaction data
61-
end
62-
SeqSender->>L1: Sequence batches into L1 Smart Contracts (both modes)
63-
Aggregator->>Prover: Send batches to Prover (both modes)
64-
Prover->>Aggregator: Return proofs (both modes)
53+
SeqSender->>ErigonRPC: Reads batches
54+
SeqSender->>DACNodes: Persist transaction data (validium mode only)
55+
SeqSender->>L1: Sequence batches into L1 Smart Contracts
56+
Aggregator->>Prover: Send batches to Prover
57+
Prover->>Aggregator: Return proofs
6558
Aggregator->>Aggregator: Batch the proofs
6659
Aggregator->>AggLayer: Submit final proof
6760
AggLayer->>L1: Submit final proof to L1 Smart Contract Domain
21.7 KB
Loading

0 commit comments

Comments
 (0)