Skip to content

Commit 787f2bd

Browse files
authored
Merge pull request 0xPolygon#659 from 0xPolygon/empieichO-docs-review
zkEVM - edit main-overview doc
2 parents c6bf341 + 7a9e8ba commit 787f2bd

File tree

3 files changed

+64
-42
lines changed

3 files changed

+64
-42
lines changed

docs/zkEVM/architecture/index.md

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,7 @@ The smart contract, therefore, makes two calls:
9797

9898
Although the current protocol design allows for several sequencers and aggregators, to prioritize security and given the early stage of protocol development, only one sequencer and one aggregator are currently operational.
9999

100-
These are henceforth referred to as the _trusted sequencer_ and the _trusted aggregator_.
101-
102-
<!-- ### Tokenomics -->
100+
These are henceforth referred to as the _trusted sequencer_ and the _trusted aggregator_.
103101

104102
## zkNode
105103

@@ -232,35 +230,3 @@ To do so, users need to deposit Ether to L2 through the [Polygon Portal](https:/
232230
The above process is a summarized version of how transactions are processed in Polygon zkEVM.
233231

234232
Take a look at the complete description in the [transaction life cycle](protocol/transaction-life-cycle/submit-transaction.md) document.
235-
236-
## Design characteristics
237-
238-
The Polygon zkEVM network is secure, efficient, and comes with verifiable block data.
239-
240-
Development efforts aim at permissionless-ness, that is, allowing anyone with the zkEVM software to participate in the network. For instance, the consensus algorithm could give anyone the opportunity to be an aggregator.
241-
242-
Data availability is most crucial for decentralization, where every user has sufficient data needed to rebuild the full state of a rollup. As a rollup, Polygon zkEVM posts all transaction data and validity proof on Ethereum.
243-
244-
The aim is to ensure that there is no censorship and that no one party can control the network. For this reason, mechanisms such as [force batches](protocol/malfunction-resistance/sequencer-resistance.md) and [force verification](protocol/malfunction-resistance/aggregator-resistance.md) have been activated.
245-
246-
Polygon zkEVM was designed with security in mind. As an L2 solution, it inherits its security from Ethereum.
247-
248-
Smart contracts are deployed to ensure that everyone who executes state changes does so appropriately, creates a proof that attests to the validity of a state change, and makes validity proofs available on-chain for verification.
249-
250-
## Efficiency and overall strategy
251-
252-
Efficiency is key to network performance. Polygon zkEVM uses several implementation strategies to maximize efficiency. A few are listed below:
253-
254-
1. The first strategy is to deploy the consensus contract, which incentivizes the aggregator to participate in the proof generation process.
255-
256-
2. The second strategy is to carry out all computations off-chain while keeping only the necessary data and zk-proofs on-chain.
257-
258-
3. The bridge smart contract's implementation is made efficient by only using Merkle roots of exit trees.
259-
260-
4. Utilization of specialized cryptographic primitives within the zkProver in order to speed up computations and minimize proof sizes, as seen in:
261-
262-
- Running a special zero-knowledge assembly language (zkASM) for interpretation of bytecode.
263-
264-
- Using zero-knowledge tools such as zk-STARKs for proving purposes; these proofs are very fast though they are big in size.
265-
266-
- Instead of publishing the sizeable zk-STARK proofs as validity proofs, a zk-SNARK is used to attest to the correctness of the zk-STARK proofs. These zk-SNARKs are, in turn, published as the validity proofs to state changes. This helps in reducing the gas costs from 5M to 350K.

docs/zkEVM/index.md

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,27 @@ hide:
2020

2121
<div class="grid-container">
2222
<div class="grid-item">
23-
<a href="./get-started/setup-nodes/local-node">
23+
<a href="./overview">
2424
<div class="product-list-item-header">
25-
<div class="feature-card-heading">zkEVM local node</div>
25+
<div class="feature-card-heading">Polygon zkEVM overview</div>
2626
</div>
27-
<p class="feature-paragraph">Get started by setting up a local zkEVM node.</p>
27+
<p class="feature-paragraph">Take a global view of the Polygon zkEVM network.</p>
2828
</a>
2929
</div>
3030
<div class="grid-item">
31-
<a href="./get-started/setup-nodes/deploy-zkevm/intro">
31+
<a href="./get-started/quick-start">
3232
<div class="product-list-item-header">
33-
<div class="feature-card-heading">Deploy zkEVM</div>
33+
<div class="feature-card-heading">Connect wallet</div>
3434
</div>
35-
<p class="feature-paragraph">Get started by deploying zkEVM.</p>
35+
<p class="feature-paragraph">Connect your wallet to zkEVM mainnet or testnet.</p>
36+
</a>
37+
</div>
38+
<div class="grid-item">
39+
<a href="./get-started/setup-nodes/local-node">
40+
<div class="product-list-item-header">
41+
<div class="feature-card-heading">zkEVM local node</div>
42+
</div>
43+
<p class="feature-paragraph">Get started by setting up a local zkEVM node.</p>
3644
</a>
3745
</div>
3846
<div class="grid-item">
@@ -43,6 +51,13 @@ hide:
4351
<p class="feature-paragraph">Discover the key differences between zkEVM and EVM.</p>
4452
</a>
4553
</div>
54+
<div class="grid-item">
55+
<a href="./get-started/setup-nodes/deploy-zkevm/intro">
56+
<div class="product-list-item-header">
57+
<div class="feature-card-heading">Deploy zkEVM</div>
58+
</div>
59+
<p class="feature-paragraph">Get started by deploying zkEVM.</p>
60+
</a>
61+
</div>
4662
</div>
4763
</div>
48-

docs/zkEVM/overview.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@ Polygon zkEVM is to Ethereum a Layer 2 network and a scalability solution utiliz
22

33
Polygon zkEVM supports a majority of Ethereum EIPs, precompiles, and opcodes. Developers benefit from the seamless deployment of smart contracts, developer tools, and wallets that already work on Ethereum, but in an environment with significantly lower costs.
44

5+
Connect to the fully-audited Polygon zkEVM mainnet or its testnet (Cardona testnet) using the details in the table below.
6+
7+
| Network | RPC URL | ChainID | Block explorer URL | Gas token |
8+
| ------- | ------------------------------- | ---------------- | ---------------- | ----- |
9+
| Polygon zkEVM | `https://zkevm-rpc.com` | `1101` | `https://zkevm.polygonscan.com/` | **ETH** |
10+
| Cardona zkEVM testnet | `https://rpc.cardona.zkevm-rpc.com` | `2442` | `https://cardona-zkevm.polygonscan.com/` | **ETH** |
11+
512
## Protocol development highlights
613

714
The Polygon zkEVM testnet launched with a complete ZK proving system and full transaction data availability in October 2022. The proving system uses a combination of eSTARK proofs and FRI, that are then compressed using FFLONK SNARKs to create the final ZK proof.
@@ -24,3 +31,37 @@ The activation of the 10-day timelock for upgrading zkEVM's smart contracts on E
2431

2532
In the event of an emergency that puts user funds at risk, the network's [Security Council](https://etherscan.io/address/0x37c58Dfa7BF0A165C5AAEdDf3e2EdB475ac6Dcb6) may remove the 10-day timelock. In such an emergency, the network state stops advancing and bridge functionality is paused. The Security Council is an eight-participant multisig. This is a Gnosis Safe with a 6/8 threshold. Learn more about [zkEVM upgradability](https://docs.polygon.technology/zkEVM/architecture/protocol/upgradability/).
2633

34+
## Design characteristics
35+
36+
Polygon zkEVM was designed with security in mind. As an L2 solution, it inherits its security from Ethereum.
37+
38+
Smart contracts are deployed to ensure that everyone who executes state changes does so appropriately, creates a proof that attests to the validity of each state change, and makes validity proofs available on-chain for verification.
39+
40+
Development efforts aim at permissionless-ness, that is, allowing anyone with the zkEVM software to participate in the network.
41+
42+
For instance, the network allows anyone to circumvent any transaction-censorship by triggering the [force batches](./architecture/protocol/malfunction-resistance/sequencer-resistance.md) mechanism, or to avoid denial of validity-proving by activating the [force verification](./architecture/protocol/malfunction-resistance/aggregator-resistance.md) feature.
43+
44+
The ultimate aim is to ensure that there is no censorship and that no one party can control the network.
45+
46+
Since data availability is most crucial for decentralization, Polygon zkEVM posts all transaction data and validity proofs on Ethereum. This means every Polygon zkEVM user has sufficient data needed to rebuild the full state of a rollup.
47+
48+
## Efficiency and overall strategy
49+
50+
As a scalability solution, efficiency is key to Polygon zkEVM.
51+
52+
The network therefore utilizes several implementation strategies to maximize efficiency.
53+
54+
A few of these strategies are listed below:
55+
56+
1. Deployment of the consensus contract, which incentivizes the aggregator for participating in the proof generation process.
57+
2. Carry out all computations off-chain while keeping only the necessary data and ZK-proofs on-chain.
58+
3. Implementation of the bridge smart contract is made efficient by using only Merkle roots of exit trees.
59+
4. Utilization of specialized cryptographic primitives within the proving component, [zkProver](https://docs.polygon.technology/zkEVM/architecture/zkprover/), to speed up computations and minimize proof sizes. This is seen in:
60+
* Running a special zero-knowledge assembly language ([zkASM](./spec/zkasm/index.md)) for interpretation of bytecode.
61+
* Using zero-knowledge technology such as zk-STARKs for proving purposes; these proofs are very fast though they are big in size.
62+
* Instead of publishing the sizeable zk-STARK proofs as validity proofs, a zk-SNARK is used to attest to the correctness of the zk-STARK proofs.
63+
* Publishing zk-SNARKs as the validity proofs to state changes.
64+
65+
These help in reducing gas costs from 5M to 350K (wei).
66+
67+
The Polygon zkEVM network is therefore secure, efficient, comes with verifiable block data, and cost-effective.

0 commit comments

Comments
 (0)