Skip to content

Commit 9dfe7ee

Browse files
update img and sequence diagram
1 parent 583480a commit 9dfe7ee

File tree

3 files changed

+31
-2
lines changed

3 files changed

+31
-2
lines changed

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

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ The following diagram depicts the CDK FEP stack component layout and details som
2020

2121
The following diagram is a sequential depiction of the user data flow for the CDK FEP stack in validium mode using a mock prover and having an AggLayer connection.
2222

23-
![High level view of CDK user data flow](../../img/cdk/user-data-flow.png)
23+
![High level view of CDK user data flow](../../img/cdk/cdk-user-data-flow.png)
2424

2525
#### Sequential interactions
2626

@@ -36,7 +36,36 @@ The following diagram is a sequential depiction of the user data flow for the CD
3636
10. The aggregator submits the final proof to the AggLayer.
3737
11. The AggLayer submits the final proof to the L1 smart contract domain.
3838

39-
![Sequence diagram of user data flow](../../img/cdk/user-data-flow-sequence.png)
39+
```mermaid
40+
sequenceDiagram
41+
participant User
42+
participant ErigonRPC as CDK Erigon RPC Node
43+
participant Sequencer as CDK Erigon Sequencer Node
44+
participant DataStreamer as Data Streamer
45+
participant SeqSender as Sequence Sender
46+
participant Aggregator
47+
participant AggLayer
48+
participant DACNodes as DAC Nodes
49+
participant Prover
50+
participant L1 as L1 Smart Contracts
51+
52+
User->>ErigonRPC: Send transaction
53+
ErigonRPC->>Sequencer: Proxy transaction data
54+
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)
65+
Aggregator->>Aggregator: Batch the proofs
66+
Aggregator->>AggLayer: Submit final proof
67+
AggLayer->>L1: Submit final proof to L1 Smart Contract Domain
68+
```
4069

4170
!!! tip
4271
Detailed AggLayer flows will be published soon.
-215 KB
Binary file not shown.

docs/img/cdk/user-data-flow.png

-81.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)