Skip to content

Commit b782ec4

Browse files
committed
add stage description
1 parent 17de257 commit b782ec4

1 file changed

Lines changed: 52 additions & 2 deletions

File tree

BEPs/BEP-431.md

Lines changed: 52 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ This proposal introduces a Zero Knowledge (ZK) fault proof system for opBNB, uti
1414

1515
## 2. Abstract
1616

17-
The current fault proof system for Optimism-based chains like opBNB involves a complex, time-consuming, and potentially expensive process. This proposal outlines a ZK-based approach that significantly improves upon the existing system. By using custom circuits for block execution and derivation, along with a specialized fault proof circuit, this system can reduce the challenge period from 7 days to approximately 12 hours while also minimizing gas costs and mitigating censorship risks.
17+
The current fault proof system for Optimism-based chains like opBNB involves a complex, time-consuming, and potentially expensive process. This proposal outlines a ZK-based approach that significantly improves upon the existing system. By using custom circuits for block execution and derivation, along with a specialized fault proof circuit, this system can reduce the challenge period from several days to approximately 12 hours while also minimizing gas costs and mitigating censorship risks.
1818

1919
## 3. Status
2020

@@ -36,7 +36,7 @@ Additionally, implementing a ZK fault proof system is a crucial step towards ach
3636

3737
### 5.1 Background
3838

39-
In the last year, Optimism initiated a Foundation Mission Request to develop the Op Stack Zero Knowledge Proof (ZKP) for verifying the correctness of its fault proof program. This initiative aims to reduce the challenge period for Optimism from 7 days to 12 hours and avoid complicated interactive challenge procedures.
39+
In the last year, Optimism initiated a Foundation Mission Request to develop the Op Stack Zero Knowledge Proof (ZKP) for verifying the correctness of its fault proof program. This initiative aims to reduce the challenge period for Optimism from several days to approximately 12 hours and avoid complicated interactive challenge procedures.
4040

4141
![ZK Fault Proof for opBNB Approaches](./assets/BEP-431/zk-fault-proof-opbnb-approach.jpg)
4242

@@ -151,6 +151,56 @@ The challenger:
151151
2. Third-party audits of the entire system, including circuits, contracts, and off-chain components.
152152
3. Phased implementation, starting with a limited scope and gradually expanding responsibilities.
153153

154+
### 5.11 Towards Stage 2 Rollup
155+
156+
The implementation of the ZK Fault Proof System is a significant step towards achieving Stage 2 rollup status for opBNB. Let's review the [stages](https://medium.com/l2beat/introducing-stages-a-framework-to-evaluate-rollups-maturity-d290bb22befe) as defined by L2Beat and assess opBNB's current status and path forward.
157+
158+
#### L2Beat Rollup Stages
159+
160+
- Stage 0 - Full Training Wheels
161+
- The project calls itself a rollup.
162+
- L2 state roots are posted on L1.
163+
- The project provides Data Availability (DA) on L1.
164+
- Software capable of reconstructing the rollup's state source is available.
165+
- Stage 1 - Limited Training Wheels
166+
- The project uses a proper proof system.
167+
- There are at least 5 external actors that can submit a fraud proof.
168+
- Users can exit without the operator's coordination.
169+
- Users have at least 7 days to exit in case of unwanted upgrades (Security Council and governance excluded).
170+
- The Security Council is properly set up.
171+
- Stage 2 - No Training Wheels
172+
- The fraud proof system is permissionless.
173+
- Users have at least 30 days to exit in case of unwanted upgrades.
174+
- The Security Council is restricted to act only due to errors detected on chain.
175+
176+
#### Current Status of opBNB
177+
178+
opBNB is currently at **Stage 0**, with the following characteristics:
179+
- Operated by a centralized sequencer.
180+
- Uses an optimistic rollup model with a 7-day challenge period.
181+
- Has a Security Council(admin, whitelisted challengers) with significant powers over the network.
182+
- Source-available software for state reconstruction from L1 data.
183+
184+
#### What opBNB Needs for Stage 1 and Stage 2
185+
186+
1. Stage 1
187+
a. The project uses a proper proof system.
188+
b. There are at least 5 external actors that can submit a fraud proof.
189+
c. Users have at least 7 days to exit in case of unwanted upgrades (Security Council and governance excluded).
190+
2. Stage 2
191+
a. The fraud proof system is permissionless.
192+
b. Users have at least 30 days to exit in case of unwanted upgrades.
193+
c. The Security Council is restricted to act only due to errors detected on chain.
194+
195+
196+
#### How ZK Fault Proof System Helps and associated actions
197+
198+
- As a fraud proof mechanism, the ZK Fault Proof System enables any participant to submit proofs and contest invalid state transitions. We plan to gradually extend the ability to submit fraud proofs to external parties following the system's implementation. This process will begin with whitelisted community members and eventually open up to all users, addressing points 1.a, 1.b, and 2.a mentioned earlier.
199+
- The ZK Fault Proof System's implementation will include a pre-submitted op-geth image on L1, representing opBNB's execution logic. We propose introducing a time-delay mechanism for image upgrades (e.g., 7 or 30 days). This approach allows users who disagree with a new version to withdraw their deposits before the upgrade takes effect, satisfying requirements 1.c and 2.b.
200+
- These modifications will allow us to significantly reduce the operator's administrative powers and limit the Security Council's authority to addressing on-chain errors only. This change fulfills requirement 2.c.
201+
202+
By implementing the ZK Fault Proof System and executing these additional actions, opBNB will make substantial progress towards achieving Stage 2 rollup status. This advancement will significantly enhance the network's security, decentralization, and overall user experience. The process involves a gradual transition through Stage 1, systematically removing the "training wheels" to ultimately reach the fully decentralized and secure Stage 2 status.
203+
154204
## 6. Rationale
155205

156206
The custom circuit approach offers superior performance compared to generic VM solutions, providing:

0 commit comments

Comments
 (0)