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
Copy file name to clipboardExpand all lines: docs/learn/agglayer.md
+13-12Lines changed: 13 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Aggregation layer
2
2
3
-
Solving the scalability problem in blockchains means scaling access to shared state and liquidity across many chains. To do so requires a new approach to blockchain architecture, namely, aggregated blockchains. Polygon Labs researchers and engineers have designed a solution–the **aggregation layer**, or **AggLayer**–which will seamlessly connect any ZK-enabled L2 or L1 chain.
3
+
Solving the scalability problem in blockchains means scaling access to shared state and liquidity across many chains. To do so requires a new approach to blockchain architecture, namely, aggregated blockchains. Polygon Labs researchers and engineers have designed a solution -- the **aggregation layer**, or **AggLayer** -- which will seamlessly connect any ZK-enabled L2 or L1 chain.
4
4
5
5
In this document, we look at:
6
6
@@ -82,7 +82,7 @@ Here's what happens in the AggLayer when users interact with individual Polygon
82
82
83
83
7. Optionally, the aggregated proof can also guarantee that a list of updated state roots $S_i$ is valid.
84
84
85
-
After producing the aggregated proof $\pi_{\text{final}}'$, the AggLayer posts that proof to Ethereum, along with a commitment to the message lists $M_i$.
85
+
After producing the aggregated proof $\pi_{\text{final}}'$, the AggLayer posts that proof to Ethereum, along with a commitment to the message lists $\{M_i\}$.
86
86
87
87
The above procedure is depicted in the simplified diagram below.
88
88
@@ -95,7 +95,7 @@ The above procedure is depicted in the simplified diagram below.
95
95
96
96
There's a subtle detail about validiums that needs to be noted.
97
97
98
-
For all rollup chains, we have all data necessary to retrieve the proof of inclusion for a particular message in some list $M_i$.
98
+
For all rollup chains, we have all data necessary to retrieve the proof of inclusion for a particular message in some list $\{M_i\}$.
99
99
100
100
But this is not so with validium chains. For instance, there could be a 'data withholding' attack.
101
101
@@ -106,16 +106,16 @@ The solution that enables validium users to circumvent 'data withholding' attack
106
106
107
107
#### Proof aggregation interface
108
108
109
-
The `submitBatch` data interface is used to transmit proofs between chains and the AggLayer, involves the following data elements. The below table records the interface data elements, their types and brief descriptions.
109
+
The `submitBatch` data interface, used to transmit proofs between chains and the AggLayer, involves the following data elements. The below table records the interface data elements, their types and brief descriptions.
| Calldata | Vec<Calldata>| Calldata that must be posted to Ethereum |
119
119
| Cross-Chain Dependencies | Vec<*> | Cross-chain state root dependencies and bundles that the batch builds on. |
120
120
121
121
@@ -127,9 +127,10 @@ The problem with the aggregation layer, as described, is that it suffers from hi
127
127
128
128
Currently, proving time for a batch is a few minutes, and batches are posted to Ethereum every 30-60 minutes, which prohibits fast cross-chain messaging and interoperability.
129
129
130
-
In order to reduce latency to levels that make cross-chain interactions feel like using a single chain, we need to safely confirm batches before:
131
-
1. A proof is generated (validity).
132
-
2. A batch is posted to Ethereum (finality).
130
+
In order to reduce latency to levels that make cross-chain interactions feel like using a single chain, we need to safely confirm batches before:
131
+
132
+
1. A proof is generated (validity).
133
+
2. A batch is posted to Ethereum (finality).
133
134
134
135
135
136
#### Finality
@@ -164,9 +165,9 @@ The `SubmitBatchWithoutProof` data interface is used to post batches to the Aggl
0 commit comments