Skip to content

Commit 4c8e39c

Browse files
Merge pull request 0xPolygon#651 from 0xPolygon/agglayer/review
AggLayer/Innovation & Design: Updates after review
2 parents 164e21e + da2750a commit 4c8e39c

File tree

11 files changed

+27
-32
lines changed

11 files changed

+27
-32
lines changed

docs/innovation-design/agglayer/agglayer-go.md renamed to docs/agglayer/agglayer-go.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
## Overview
2-
31
The AggLayer-go is a service designed to receive zero-knowledge (ZK) proofs from various CDK chains and verify their validity before sending them to the L1 for final settlement.
42

53
!!! warning
@@ -12,7 +10,7 @@ The AggLayer Golang architecture supports interactions with multiple CDK chains
1210
The diagram below shows the full start-up, running, and shutdown sequence for the application and its components.
1311

1412
<center>
15-
![CDK architecture](../../img/cdk/agglayer/agglayer-go.png)
13+
![CDK architecture](../img/cdk/agglayer/agglayer-go.png)
1614
</center>
1715

1816
## Get started

docs/innovation-design/agglayer/agglayer-rs.md renamed to docs/agglayer/agglayer-rs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
## Overview
1+
AggLayer-rs is a Rust-based service designed to receive ZK proofs from various CDK chains and verify their validity before sending them to the L1 for final settlement.
22

3-
AggLayer-rs is a Rust-based service designed to receive ZK proofs from various CDK chains and verify their validity before sending them to the L1 for final settlement. It replaces the previous [Golang implementation](agglayer-go.md).
3+
It replaces the previous [Golang implementation](agglayer-go.md).
44

55
## Architecture
66

File renamed without changes.

docs/innovation-design/agglayer/token-flows.md renamed to docs/agglayer/token-flows.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
The following describes how token transfers and message passing are implemented by the unified bridge across various L1 and L2 permutations. While the examples provided describe only token transfers, the sequence is the same for arbitrary messages in this current implementation of the AggLayer.
1+
The following workflows describe how token transfers and message passing are implemented by the unified bridge across various L1 and L2 permutations. While the descriptions refer only to token transfers in the current AggLayer implementation, the sequence of events is exactly the same for arbitrary messages.
22

33
## L1 to L2
44

@@ -34,7 +34,7 @@ The following describes how token transfers and message passing are implemented
3434

3535
1. When a batch of transactions is processed, the bridge contract appends the L2 exit tree with a new leaf containing the batch information. This updates the L2 exit tree root.
3636

37-
2. The bridge contracts communicates the L2 exit tree root to the L2 global exit root manager. The L2 global exit root manager, however, does not update the global exit tree at this stage.
37+
2. The bridge contract communicates the L2 exit tree root to the L2 global exit root manager. The L2 global exit root manager, however, does not update the global exit tree at this stage.
3838

3939
3. For proving and verification, the zk-proof-generating circuit obtains the L2 exit tree root from the L2 global exit root manager.
4040

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
1-
## Overview
2-
31
The unified bridge is a single bridge contract on Ethereum, providing a safe, common access point for the transfer of all native, never-wrapped tokens. Each chain has a local copy of the unified bridge root, enabling cross-chain interoperability that doesn’t require the security risks of third-party bridges.
42

5-
63
!!! important "AggLayer smart contracts"
74
- The current version of the unified bridge uses the contracts in the [PolygonzkEVM smart contract repo](https://github.com/0xPolygonHermez/zkevm-contracts).
85

96
## Bridging mechanism
107

11-
The bridging mechanism enables token transfers and message-passing between Ethereum (L1) and CDK chains via smart contracts. Detailed in the [zkEVM bridging documentation](../../zkEVM/architecture/unified-LxLy/bridging.md), core components include the bridge and exit root Solidity smart contracts.
8+
The bridging mechanism enables token transfers and message-passing between Ethereum (L1) and CDK chains via smart contracts. Detailed in the [zkEVM bridging documentation](../zkEVM/architecture/unified-LxLy/bridging.md), core components include the bridge and exit root Solidity smart contracts.
129

1310
## Data structures
1411

1512
Each chain holds a single data structure which stores a record of all token withdrawals and messages that originated from that chain. This “exit tree” is an append-only Merkle trie, similar in structure to the Ethereum deposit trie. The latest state of each chain and the unified bridge is represented by the root of this Merkle tree, referred to as the “exit root.”
1613

17-
As cryptographic commitments, exit roots ensure the integrity of the network as a whole. Refer to the [exit root documentation](../../zkEVM/architecture/high-level/smart-contracts/exit-roots.md) for greater detail about the role of exit roots in the system.
14+
As cryptographic commitments, exit roots ensure the integrity of the network as a whole. Refer to the [exit root documentation](../zkEVM/architecture/high-level/smart-contracts/exit-roots.md) for greater detail about the role of exit roots in the system.

docs/cdk/concepts/bridging.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ The LxLy bridge contracts carry out deposit and withdrawal of assets between L2
1010

1111
Chains looking to run their own bridge infrastructure can choose to deploy a new instance of the [LxLy bridge](../../zkEVM/architecture/unified-LxLy/index.md) that allows users to move assets (both native and [ERC20](https://ethereum.org/en/developers/docs/standards/tokens/erc-20/) tokens) from L1 to the L2 and vice versa.
1212

13-
Deploying an individual instance of the LxLy means interoperability with other L2 chains via the [AggLayer](../../innovation-design/agglayer/overview.md) is not possible. To enable cross-chain interoperability (i.e. L2-to-L2 cross-chain transactions), chains can opt-in to the AggLayer and use the [unified bridge](../../innovation-design/agglayer/unified-bridge.md).
13+
Deploying an individual instance of the LxLy means interoperability with other L2 chains via the [AggLayer](../../agglayer/overview.md) is not possible. To enable cross-chain interoperability (i.e. L2-to-L2 cross-chain transactions), chains can opt-in to the AggLayer and use the [unified bridge](../../agglayer/unified-bridge.md).
1414

1515
This option is suited to chains that may want to customize how the bridge is managed and operated, or maintain control of the bridge's funds; as the [upgradeability](./admin-upgradeability.md) of the bridge contracts are managed by the chain operator.
1616

1717
![LxLy bridge](../../img/cdk/lxly.png)
1818

1919
## Unified bridge
2020

21-
A single, shared instance of the LxLy bridge, called the [unified bridge](../../innovation-design/agglayer/unified-bridge.md) is available to use for all CDK chains that opt-in to the AggLayer.
21+
A single, shared instance of the LxLy bridge, called the [unified bridge](../../agglayer/unified-bridge.md) is available to use for all CDK chains that opt-in to the AggLayer.
2222

2323
It is a shared smart contract deployed on Ethereum, responsible for enabling interoperability between chains in the form of cross-chain transactions and L2-to-L2 transfers.
2424

@@ -32,4 +32,4 @@ This option is suited to chains that want a standard bridging experience and do
3232

3333
- [Aggregated blockchains: A new thesis](https://polygon.technology/blog/aggregated-blockchains-a-new-thesis).
3434
- [LxLy bridge](../../zkEVM/architecture/unified-LxLy/index.md).
35-
- [Unified bridge overview](../../innovation-design/agglayer/unified-bridge.md).
35+
- [Unified bridge overview](../../agglayer/unified-bridge.md).

docs/cdk/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Polygon CDK provides the components necessary to build a layer 2 blockchain that
1616

1717
- Modularity: CDK modular components allow developers to easily customize their L2 environment and build a chain that meets their specific needs.
1818

19-
- Interoperability: Opt-in to the [AggLayer](../innovation-design/agglayer/overview.md) to bootstrap your chain's ecosystem, enable cross-chain transactions expanding your reach and user base, while attracting users and liquidity from other established chains.
19+
- Interoperability: Opt-in to the [AggLayer](../agglayer/overview.md) to bootstrap your chain's ecosystem, enable cross-chain transactions expanding your reach and user base, while attracting users and liquidity from other established chains.
2020

2121
- Sovereignty: Maintain full control over your chain's revenue, governance, security, economic policies, and more.
2222

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ hide:
100100
</div>
101101
<p class="feature-paragraph">Deep dives only. Further your understanding of Polygon scaling technology.</p></br>
102102
</div>
103-
<a href="innovation-design/agglayer/overview" class="flex-card-item w-inline-block">
103+
<a href="agglayer/overview" class="flex-card-item w-inline-block">
104104
<div class="product-list-item-header">
105105
<div class="feature-card-heading">AggLayer</div>
106106
<div class="arrow-embed w-embed"><svg xmlns="http://www.w3.org/2000/svg" display="block" width="100%" height="auto" viewbox="0 0 16 17" fill="none">

docs/innovation-design/index.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,20 @@ hide:
3232
</div>
3333
<div class="grid-container">
3434
<div class="grid-item">
35-
<a href="../innovation-design/agglayer/overview">
35+
<a href="../agglayer/overview">
3636
<div class="product-list-item-header">
3737
<div class="feature-card-heading">AggLayer documentation</div>
3838
</div>
3939
<p class="feature-paragraph">AggLayer solves blockchain fragmentation by enabling sovereign chains to securely share liquidity, users, and state.</p>
4040
</a>
41+
</div>
42+
<div class="grid-item">
43+
<a href="./polygon-protocols">
44+
<div class="product-list-item-header">
45+
<div class="feature-card-heading">The future of Polygon network</div>
46+
</div>
47+
<p class="feature-paragraph">Upcoming updates and iterations across Polygon network</p>
48+
</a>
4149
</div>
4250
<div class="grid-item">
4351
<a href="../cdk/architecture/type-1-prover/intro-t1-prover">
@@ -62,14 +70,6 @@ hide:
6270
</div>
6371
<p class="feature-paragraph">State-of-the-art cryptography libraries for developers.</p>
6472
</a>
65-
</div>
66-
<div class="grid-item">
67-
<a href="./polygon-protocols">
68-
<div class="product-list-item-header">
69-
<div class="feature-card-heading">The future of Polygon network</div>
70-
</div>
71-
<p class="feature-paragraph">Upcoming updates and iterations across Polygon network</p>
72-
</a>
7373
</div>
7474
<div class="grid-item">
7575
<a href="https://polygon.technology/blog/reorgs-demystified-insights-from-monitoring-with-a-sensor-network">

docs/pos/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@ The role of these nodes is crucial as they act as a bridge between the Ethereum
3636

3737
## Upcoming developments
3838

39-
Originally launched as Matic Network in June 2020, Polygon PoS has undergone numerous upgrades since its inception. Initially designed to scale Ethereum through a sidechain, a new proposal on the Polygon forum suggests upgrading Polygon PoS into a zero-knowledge (ZK)-based validium on Ethereum. Polygon PoS will soon adopt the execution environment of Polygon zkEVM along with a dedicated data availability layer. This new architecture would be inherently interoperable with a broader network of ZK-powered Ethereum L2s via the [AggLayer](../innovation-design/agglayer/overview.md).
39+
Originally launched as Matic Network in June 2020, Polygon PoS has undergone numerous upgrades since its inception. Initially designed to scale Ethereum through a sidechain, a new proposal on the Polygon forum suggests upgrading Polygon PoS into a zero-knowledge (ZK)-based validium on Ethereum. Polygon PoS will soon adopt the execution environment of Polygon zkEVM along with a dedicated data availability layer. This new architecture would be inherently interoperable with a broader network of ZK-powered Ethereum L2s via the [AggLayer](../agglayer/overview.md).
4040

4141
Polygon PoS will continue to be the foundational infrastructure for a wide array of decentralized applications and services. More details about the overarching vision of a unified ecosystem of L2s on Ethereum can be found in [the innovation & design space](../innovation-design/index.md).

0 commit comments

Comments
 (0)