Skip to content

Commit

Permalink
Merge pull request #1 from IntensiveCoLearning/main
Browse files Browse the repository at this point in the history
1.6
  • Loading branch information
CJC824 authored Jan 6, 2025
2 parents 5ce07f1 + bbce8b6 commit 5aee2a7
Show file tree
Hide file tree
Showing 14 changed files with 643 additions and 36 deletions.
23 changes: 23 additions & 0 deletions Coooder-Crypto.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
timezone: Asia/Shanghai
---

# {Coooder}

1. 自我介绍
我是 Coooder, 一直有接触 OP 相关的内容,但是没有系统性地学习过,想借助这个机会来学习一下

2. 你认为你会完成本次残酷学习吗?

## Notes

<!-- Content_START -->

### 2025.01.06

笔记内容

### 2024.07.12

<!-- Content_END -->
72 changes: 72 additions & 0 deletions LunaWang5209.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
---
timezone: Asia/Shanghai
---

> 请在上边的 timezone 添加你的当地时区,这会有助于你的打卡状态的自动化更新,如果没有添加,默认为北京时间 UTC+8 时区
> 时区请参考以下列表,请移除 # 以后的内容
timezone: Pacific/Honolulu # 夏威夷-阿留申标准时间 (UTC-10)

timezone: America/Anchorage # 阿拉斯加标准时间 (UTC-9)

timezone: America/Los_Angeles # 太平洋标准时间 (UTC-8)

timezone: America/Denver # 山地标准时间 (UTC-7)

timezone: America/Chicago # 中部标准时间 (UTC-6)

timezone: America/New_York # 东部标准时间 (UTC-5)

timezone: America/Halifax # 大西洋标准时间 (UTC-4)

timezone: America/St_Johns # 纽芬兰标准时间 (UTC-3:30)

timezone: America/Sao_Paulo # 巴西利亚时间 (UTC-3)

timezone: Atlantic/Azores # 亚速尔群岛时间 (UTC-1)

timezone: Europe/London # 格林威治标准时间 (UTC+0)

timezone: Europe/Berlin # 中欧标准时间 (UTC+1)

timezone: Europe/Helsinki # 东欧标准时间 (UTC+2)

timezone: Europe/Moscow # 莫斯科标准时间 (UTC+3)

timezone: Asia/Dubai # 海湾标准时间 (UTC+4)

timezone: Asia/Kolkata # 印度标准时间 (UTC+5:30)

timezone: Asia/Dhaka # 孟加拉国标准时间 (UTC+6)

timezone: Asia/Bangkok # 中南半岛时间 (UTC+7)

timezone: Asia/Shanghai # 中国标准时间 (UTC+8)

timezone: Asia/Tokyo # 日本标准时间 (UTC+9)

timezone: Australia/Sydney # 澳大利亚东部标准时间 (UTC+10)

timezone: Pacific/Auckland # 新西兰标准时间 (UTC+12)

---

# {古忆}

1. 自我介绍
币圈老韭菜

2. 你认为你会完成本次残酷学习吗?

## Notes

<!-- Content_START -->

### 2025.01.06

笔记内容

### 2024.07.12

<!-- Content_END -->
24 changes: 24 additions & 0 deletions Marcus-Chen98.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
timezone: Asia/Shanghai
---


---

# {Marcus-Chen}

1. 我是一个汽车行业的研究员,之前做过一段时间的投资研究工作,现在转到汽车行业做战略咨询,一直想了解web3的试解

2. 我希望每天下班后花1-2个小时,完成这次学习,也让自己养成学习知识的习惯,希望能完成

## Notes

<!-- Content_START -->

### 2025.01.06

笔记内容

### 2024.07.12

<!-- Content_END -->
98 changes: 64 additions & 34 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,40 +142,51 @@ OP 中文力量:https://vote.optimism.io/delegates/optimismcn.eth
<!-- START_COMMIT_TABLE -->
| Name | 1.06 | 1.07 | 1.08 | 1.09 | 1.10 | 1.11 | 1.12 | 1.13 | 1.14 | 1.15 | 1.16 | 1.17 | 1.18 | 1.19 | 1.20 | 1.21 | 1.22 | 1.23 | 1.24 | 1.25 | 1.26 |
| ------------- | ---- | ---- | ---- | ---- | ---- | ---- | ---- | ---- | ---- | ---- | ---- | ---- | ---- | ---- | ---- | ---- | ---- | ---- | ---- | ---- | ---- |
| HeliosLz | | | | | | | | | | | | | | | | | | | | | |
| A3438 | | | | | | | | | | | | | | | | | | | | | |
| MagicalBridge | | | | | | | | | | | | | | | | | | | | | |
| verygud-0 | | | | | | | | | | | | | | | | | | | | | |
| MRzzz-cyber | | | | | | | | | | | | | | | | | | | | | |
| punkcanyang | | | | | | | | | | | | | | | | | | | | | |
| brucexu-eth | | | | | | | | | | | | | | | | | | | | | |
| qiaopengjun5162 | | | | | | | | | | | | | | | | | | | | | |
| StarryDesert | | | | | | | | | | | | | | | | | | | | | |
| debugzhao | | | | | | | | | | | | | | | | | | | | | |
| JacksonStack | | | | | | | | | | | | | | | | | | | | | |
| jjeejj | | | | | | | | | | | | | | | | | | | | | |
| luffythink | | | | | | | | | | | | | | | | | | | | | |
| iossocket | | | | | | | | | | | | | | | | | | | | | |
| cherry-yl-sh | | | | | | | | | | | | | | | | | | | | | |
| Dfbb7879 | | | | | | | | | | | | | | | | | | | | | |
| DasNarrenschiff | | | | | | | | | | | | | | | | | | | | | |
| ChinesePaladin61 | | | | | | | | | | | | | | | | | | | | | |
| sonedigo | | | | | | | | | | | | | | | | | | | | | |
| wyeeeh | | | | | | | | | | | | | | | | | | | | | |
| gpteth | | | | | | | | | | | | | | | | | | | | | |
| bxmyzzbc | | | | | | | | | | | | | | | | | | | | | |
| Zhangdajiang | | | | | | | | | | | | | | | | | | | | | |
| Alexliwenhao | | | | | | | | | | | | | | | | | | | | | |
| stualan | | | | | | | | | | | | | | | | | | | | | |
| CHENFANGC | | | | | | | | | | | | | | | | | | | | | |
| zhengjunhe | | | | | | | | | | | | | | | | | | | | | |
| goudanxiaokui | | | | | | | | | | | | | | | | | | | | | |
| 8280998 | | | | | | | | | | | | | | | | | | | | | |
| snaildarter | | | | | | | | | | | | | | | | | | | | | |
| William-02-02 | | | | | | | | | | | | | | | | | | | | | |
| pillowtalk-Qy | | | | | | | | | | | | | | | | | | | | | |
| wuyanhui | | | | | | | | | | | | | | | | | | | | | |
| btcnice | | | | | | | | | | | | | | | | | | | | | |
| HeliosLz | | | | | | | | | | | | | | | | | | | | | |
| A3438 | | | | | | | | | | | | | | | | | | | | | |
| MagicalBridge | | | | | | | | | | | | | | | | | | | | | |
| verygud-0 | | | | | | | | | | | | | | | | | | | | | |
| MRzzz-cyber | | | | | | | | | | | | | | | | | | | | | |
| punkcanyang | | | | | | | | | | | | | | | | | | | | | |
| brucexu-eth | ✅ | | | | | | | | | | | | | | | | | | | | |
| qiaopengjun5162 | | | | | | | | | | | | | | | | | | | | | |
| StarryDesert | | | | | | | | | | | | | | | | | | | | | |
| debugzhao | | | | | | | | | | | | | | | | | | | | | |
| JacksonStack | | | | | | | | | | | | | | | | | | | | | |
| jjeejj | | | | | | | | | | | | | | | | | | | | | |
| luffythink | | | | | | | | | | | | | | | | | | | | | |
| iossocket | | | | | | | | | | | | | | | | | | | | | |
| cherry-yl-sh | | | | | | | | | | | | | | | | | | | | | |
| Dfbb7879 | | | | | | | | | | | | | | | | | | | | | |
| DasNarrenschiff | | | | | | | | | | | | | | | | | | | | | |
| ChinesePaladin61 | | | | | | | | | | | | | | | | | | | | | |
| sonedigo | | | | | | | | | | | | | | | | | | | | | |
| wyeeeh | | | | | | | | | | | | | | | | | | | | | |
| gpteth | | | | | | | | | | | | | | | | | | | | | |
| bxmyzzbc | | | | | | | | | | | | | | | | | | | | | |
| Zhangdajiang | | | | | | | | | | | | | | | | | | | | | |
| Alexliwenhao | | | | | | | | | | | | | | | | | | | | | |
| stualan | | | | | | | | | | | | | | | | | | | | | |
| CHENFANGC | | | | | | | | | | | | | | | | | | | | | |
| zhengjunhe | | | | | | | | | | | | | | | | | | | | | |
| goudanxiaokui | | | | | | | | | | | | | | | | | | | | | |
| 8280998 | | | | | | | | | | | | | | | | | | | | | |
| snaildarter | | | | | | | | | | | | | | | | | | | | | |
| William-02-02 | | | | | | | | | | | | | | | | | | | | | |
| pillowtalk-Qy | | | | | | | | | | | | | | | | | | | | | |
| wuyanhui | | | | | | | | | | | | | | | | | | | | | |
| btcnice | | | | | | | | | | | | | | | | | | | | | |
| amandakelake | ✅ | | | | | | | | | | | | | | | | | | | | |
| chendafu2573 | | | | | | | | | | | | | | | | | | | | | |
| CJC824 | | | | | | | | | | | | | | | | | | | | | |
| yiwen4 | | | | | | | | | | | | | | | | | | | | | |
| chenziyu-bxy | | | | | | | | | | | | | | | | | | | | | |
| LunaWang5209 | | | | | | | | | | | | | | | | | | | | | |
| partypill | | | | | | | | | | | | | | | | | | | | | |
| jiubate888 | | | | | | | | | | | | | | | | | | | | | |
| Coooder-Crypto | | | | | | | | | | | | | | | | | | | | | |
| yoow4536 | | | | | | | | | | | | | | | | | | | | | |
| Marcus-Chen98 | | | | | | | | | | | | | | | | | | | | | |
<!-- END_COMMIT_TABLE -->
Expand All @@ -188,6 +199,25 @@ OP 中文力量:https://vote.optimism.io/delegates/optimismcn.eth
<!-- STATISTICALDATA_START -->
Expand Down
70 changes: 70 additions & 0 deletions amandakelake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
---
timezone: Asia/Shanghai
---

> 请在上边的 timezone 添加你的当地时区,这会有助于你的打卡状态的自动化更新,如果没有添加,默认为北京时间 UTC+8 时区
> 时区请参考以下列表,请移除 # 以后的内容
timezone: Asia/Shanghai

---

# amandakelake

1. 自我介绍

大家好,我是LGC,对OP比较感兴趣,希望通过这次共学,理解和认识 Optimism 的生态和相关信息知识,加深对 layer2 的理解

2. 你认为你会完成本次残酷学习吗?

会的!

## Notes

<!-- Content_START -->

### 2025.01.06

#### Layer2

##### layer2基础概念
[What is layer 2?](https://ethereum.org/zh/layer-2/learn/)
区块链有三个理想属性:decentralized、secure、scalable (三元悖论)

==The main goal of scalability is to increase transaction speed (faster finality), and transaction throughput (high transactions per second), without sacrificing decentralization or security==

以太坊当前面临的问题:低吞吐量(每秒15~30笔交易)、高gas费用、用户体验差。Layer2 的目标是通过将交易从主链转移到 Layer2 网络来解决这些问题

[What is layer 2?](https://ethereum.org/zh/layer-2/learn/)
https://vitalik.eth.limo/general/2021/01/05/rollup.html Vitalik 详细解释了 Rollup 技术,包括 Optimistic Rollup 和 ZK-Rollup 的区别

##### L2技术类型

* rollup
* Optimistic rollups:乐观汇总,使用欺诈证明
* ZK rollups:使用有效性证明
* state channels (状态通道)
* plasma

#### **OP Stack Overview**

[Vision - Optimism Official Blog](https://optimism.io/vision)
[Getting started with the OP Stack](https://docs.optimism.io/stack/getting-started)

The OP Stack is development stack thats powers Optimism,as Optimism evolves,so will the OP Stack.

Optimism Bedrock is the current iteration of the OP Stack.

The OP Stack of today was built to support [the Optimism Superchain](https://docs.optimism.io/superchain/superchain-explainer) (a proposed network of L2s)

##### OP Rollup
[OP Rollup 扩容方案](https://docs.optimism.io/stack/rollup/overview)

* 区块存储:L2 区块保存到以太坊区块链中的一个非合约地址中`0xff00000000000000000000000000000000000010`,借此来降低L1 gas费用
* 区块是EIP-4844 blob 提交,无法修改或审查,这就是 OP Mainnet 继承以太坊的可用性和完整性保证的方式
* 区块生产:由`sequencer`单一管理
* **Fault proofs** (故障证明):challenge window持续7天

### 2024.07.12

<!-- Content_END -->
80 changes: 79 additions & 1 deletion brucexu-eth.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,85 @@ timezone: Pacific/Auckland

### 2025.01.06

笔记内容
#### Layer2 扩容方案: https://docs.optimism.io/stack/rollup/overview

TODO OP Stack Specification https://specs.optimism.io/

TODO Bedrock 是什么?

目前 OP 的 L2 Blocks 存放在 https://etherscan.io/address/0xff00000000000000000000000000000000000010 这个地址的 blob 上面。提交之后,就无法被改变或者审查,这就是 L2 继承以太坊可用性和完整性的方式。

保存数据的时候,保存的是压缩过的数据,所以可以节约 gas,现在保存到 blob 上面,gas 更低了。

TODO 看一下数据压缩规则以及原始数据 https://specs.optimism.io/protocol/derivation.html#batch-submission-wire-format

---

OP Gas fee 的运转流程 https://docs.optimism.io/stack/transactions/fees:

- EVM 等效,类似以太坊的运行方式,但是有一些不同
- 实际 gas = L2 执行 gas + L1 数据保存费用
- L2 执行 gas 的计算规则以太坊一样,所以执行的 gas 一样,也使用 EIP-1559 设置 base fee 等。但是 gas 的价格是非常低的
- OP 进行了一些小参数调整,所以有更短的区块时间
- The eth_maxPriorityFeePerGas RPC method can be used to estimate a priority fee that will get your transaction included quickly.
- 商业模式就是赚 gas fee 的利差,自己的成本低,然后收取一定的 gas,把 L1 的 gas 成本扣掉就可以盈利了。所以交易和使用量就是最关键的指标和数据
-

L1 Data 的 gas fee 计算规则

![alt text](brucexu-eth_assets/image.png)

Sequencer Fee Vault 收集和保存 OP sequencer 的 gas fee,然后用于支付 data 到 L1 的 gas fee。被 predeployed 到 0x4200000000000000000000000000000000000011 这个地址

https://optimistic.etherscan.io/address/0x4200000000000000000000000000000000000011

基本的商业模式:

- 构建一个更中心化高效的以太坊区块链,收取较低的 Gas fee,不追求去中心化的安全性
- 通过把数据定期同步保存到 L1 实现数据可用性和安全性,通过一些校验机制确保区块安全
- 实际成本在把数据同步到 L1 的 gas 消耗,所以赚取上面 gas 的利差,通过一些脚本实现自动化的数据搬运等

实现了更快更便宜的交易,同时一定程度的保证了安全性。

OP uses a simple party, sequencer to:

- Provide tx confirmation and state updates
- build L2 blocks
- submit L2 blocks to L1

In OP, generate a block every 2 seconds.

TODO OP 上面的交易通过 sequencer 来生成和决策,那么如何避免 sequencer 的作恶或者审查?下面这个叙述没看懂:Transactions submitted on L1 (called deposits) are included in the chain in the appropriate L2 block. Every L2 block is identified by the "epoch" (the L1 block to which it corresponds, which typically has happened a few minutes before the L2 block) and its serial number within that epoch. The first block of the epoch includes all the deposits that happened in the L1 block to which it corresponds. If the sequencer attempts to ignore a legitimate L1 transaction, it ends up with a state that is inconsistent with the verifiers, same as if the sequencer tried to fake the state by other means. This provides OP Mainnet with L1 Ethereum level censorship resistance. You can read more about this mechanism in the protocol specifications.

OP 的中心化程度和 OP 基金会比较高。

TODO OP 目前有多少节点?

TODO OP Sequencer 在哪里运行?如果被攻击了怎么办?是一个单点风险吗?

TODO OP 宣称可以 send arbitrary messages between smart contracts on L2 and L1,这样可以 transfer ETH 和 ERC20 等。跨链和 deposit 是怎么做到的?阅读 https://docs.optimism.io/builders/app-developers/bridging/standard-bridge 然后实际跨链进行分析。

TODO 包括了原生的跨链流程,还有一些 L2 的跨链服务的研究,例如 obiter 等。L2 -> L1 的技术文档 https://specs.optimism.io/protocol/withdrawals.html

Fault proofs 故障证明(之前叫 fraud proofs 欺诈证明)

state commitments 先提交到 L1,然后等待一段时间让大家做出挑战,没有挑战就是 final,然后就可以接受 withdrawal proofs 了,进行正式的交易。

TODO 这里 PGNode or ETHPanda 可以做一个 challenger 托管一个校验节点。

It's important to note that a successful challenge does not roll back OP Mainnet itself, only the published commitments about the state of the chain. The ordering of transactions and the state of OP Mainnet is unchanged by a fault proof challenge.

TODO 如果不回滚 OP 的数据,那么这个 state commitment 是谁来提交的?有错误信息之后怎么处理?

TODO research EIP-1559

Reading

- https://docs.optimism.io/stack/transactions/deposit-flow
- https://docs.optimism.io/stack/transactions/withdrawal-flow
- https://docs.optimism.io/stack/transactions/transaction-flow
- https://docs.optimism.io/builders/chain-operators/self-hosted
- https://docs.optimism.io/builders/chain-operators/tutorials/create-l2-rollup

### 2024.07.12

Expand Down
Binary file added brucexu-eth_assets/image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 5aee2a7

Please sign in to comment.