Skip to content

Commit 2c3376f

Browse files
committed
OP System Overview
1 parent 93e21ad commit 2c3376f

File tree

2 files changed

+17
-21
lines changed

2 files changed

+17
-21
lines changed

basic/28-optimism-layer2/README-CN.md

+8-10
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,16 @@ Optimistic Rollups(OR)是一种第二层解决方案,也就是说不直接
1515

1616
Bedrock 是 Optimism 网络的下一个主要版本,计划于 2023 年第一季度发布(需经 Optimism 治理批准)。它将进一步减少 Optimism 和 L1 Ethereum (opens new window) 之间的差异。
1717

18-
### Pre-Bedrock (before Q1 2023)
18+
## Contracts
1919

20-
所有 Optimism 区块都存储在以太坊上一个特殊的智能合约中,称为 CanonicalTransactionChain(或简称 CTC)。Optimism 块保存在 CTC 内的一个仅附加列表中。这个 append-only 列表形成了 Optimism 区块链。
20+
### System Overview
2121

22-
包括 CanonicalTransactionChain 保证现有区块列表不能被新的以太坊交易修改的代码。然而,如果以太坊区块链本身被重组并且过去以太坊交易的顺序发生变化,这种保证可能会被打破。Optimism 主网被配置为能够抵抗多达 50 个以太坊区块的区块重组。如果以太坊经历了比这更大的重组,Optimism 也会重组。
22+
Optimism协议中的智能合约可以分为几个关键组件
2323

24-
当然,不经历这种重大的区块重组是以太坊的一个关键安全目标。因此,只要以太坊共识机制也是如此,乐观主义就可以抵御大型区块重组。正是通过这种关系(至少部分),Optimism 从以太坊中获得了安全属性。
25-
26-
### Bedrock (Q1 2023)
27-
28-
在 Bedrock L2 中,块使用非合约地址保存到以太坊区块链(`0xDeadDeAddeAddEAddeadDEaDDEAdDeaDDeAD0001`), 以最小化 L1 气体费用。由于这些区块在以太坊上作为交易调用数据提交,因此在“交易”包含在具有足够证明的区块中后,无法修改或审查它们。这就是 Optimism 继承以太坊的可用性和完整性保证的方式。
29-
30-
块以压缩格式写入 L1 (打开新窗口)以降低成本。这很重要,因为写入 L1 是Optimism 交易的主要成本。
24+
- **[Chain:](#chain-contracts)** 在第一层的合约,它们持有第二层交易的排序和关联的第二层状态根的承诺。
25+
- **[Verification:](#verification)** 在第一层的合约,它们实现了挑战交易结果的过程。
26+
- **[Bridge:](#bridge-contracts)** 负责在第一层和第二层之间进行消息传递的合约。
27+
- **[Predeploys:](#predeployed-contracts)** 在系统的起始状态中部署并可用的一组基本合约。这些合约类似于以太坊的预编译,但它们是用Solidity编写的,并且可以在以0x42为前缀的地址上找到。
3128

3229
## 测试步骤
3330

@@ -82,6 +79,7 @@ npx hardhat run scripts/withdraw-eth.js --network optimism
8279
## 参考文档
8380

8481
- Optimistic 官方 github: <https://github.com/ethereum-optimism/optimism-tutorial>
82+
- Optimism doc: <https://community.optimism.io/docs/protocol/protocol-2.0/>
8583
- Optimistic Rollup 合约介绍: <https://medium.com/plasma-group/ethereum-smart-contracts-in-l2-optimistic-rollup-2c1cef2ec537>
8684
- Optimism Rollup 原理解析: <https://zhuanlan.zhihu.com/p/350541979>
8785
- Optimism 跨链桥: <https://gateway.optimism.io/>

basic/28-optimism-layer2/README.md

+9-11
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,16 @@ The name "Opmistic Rollup" comes from the characteristics of the solution itself
1515

1616
Bedrock is the next major release of the Optimism network, planned for the first quarter of 2023 (subject to approval by Optimism governance). It will further reduce the differences between Optimism and L1 Ethereum.
1717

18-
### Pre-Bedrock (before Q1 2023)
18+
## Contracts
1919

20-
All Optimism blocks are stored within a special smart contract on Ethereum called the CanonicalTransactionChain (or CTC for short). Optimism blocks are held within an append-only list inside of the CTC. This append-only list forms the Optimism blockchain.
20+
### System Overview
2121

22-
The CanonicalTransactionChain includes code that guarantees that the existing list of blocks cannot be modified by new Ethereum transactions. However, this guarantee can be broken if the Ethereum blockchain itself is reorganized and the ordering of past Ethereum transactions is changed. The Optimism mainnet is configured to be robust against block reorganizations of up to 50 Ethereum blocks. If Ethereum experiences a reorg larger than this, Optimism will reorg as well.
22+
The smart contracts in the Optimism protocol can be separated into a few key components.
2323

24-
Of course, it's a key security goal of Ethereum to not experience these sort of significant block reorganizations. Optimism is therefore secure against large block reorganizations as long as the Ethereum consensus mechanism is too. It's through this relationship (in part, at least) that Optimism derives its security properties from Ethereum.
25-
26-
### Bedrock (Q1 2023)
27-
28-
In Bedrock L2 blocks are saved to the Ethereum blockchain using a non-contract address (0xDeadDeAddeAddEAddeadDEaDDEAdDeaDDeAD0001 (opens new window)), to minimize the L1 gas expense. As these blocks are submitted as transaction calldata on Ethereum, there is no way to modify or censor them after the "transaction" is included in a block that has enough attestations. This is the way that Optimism inherits the availability and integrity guarantees of Ethereum.
29-
30-
Blocks are written to L1 in a compressed format (opens new window)to reduce costs. This is important because writing to L1 is the major cost of Optimism transactions.
24+
- **[Chain:](#chain-contracts)** Contracts on layer-1, which hold the ordering of layer-2 transactions, and commitments to the associated layer-2 state roots.
25+
- **[Verification:](#verification)** Contracts on layer-1 which implement the process for challenging a transaction result.
26+
- **[Bridge:](#bridge-contracts)** Contracts which facilitate message passing between layer-1 and layer-2.
27+
- **[Predeploys:](#predeployed-contracts)** A set of essential contracts which are deployed and available in the genesis state of the system. These contracts are similar to Ethereum's precompiles, however they are written in Solidity, and can be found at addresses prefixed with 0x42.
3128

3229
## Test steps
3330

@@ -85,7 +82,8 @@ npx hardhat run scripts/withdraw-eth.js --network optimism
8582

8683
## References
8784

88-
- optimism github: <https://github.com/ethereum-optimism/optimism-tutorial>
85+
- Optimism github: <https://github.com/ethereum-optimism/optimism-tutorial>
86+
- Optimism doc: <https://community.optimism.io/docs/protocol/protocol-2.0/>
8987
- Optimistic Rollup contracts: <https://medium.com/plasma-group/-ethereum-smart-contracts-in-l2-optimistic-rollup-2c1cef2ec537>
9088
- Optimism Rollup Principle Explanation : <https://zhuanlan.zhihu.com/p/350541979>
9189
- Optimism Cross Bridge : <https://gateway.optimism.io/>

0 commit comments

Comments
 (0)