(编者注:Week in Ethereum 是 Evan 的个人作品。他既传达事实,也会加入自己的引申。翻译这些信息不代表我们认可他的立场,也不代表我们(有能力并且已经)核实所有的事实并把他的观点分离开来。)
主网
- Bonsai Tries 扁平存储模式,将 Besu 客户端的归档节点体积降低到 1 TB 以下
<https://consensys.net/blog/news/bonsai-tries-a-big-update-for-small-state-storage-in-hyperledger-besu>
- Piper Merriam 的 Aperture 接口网络进展:两个客户端正在开发一个提供状态的网络
<https://snakecharmers.ethereum.org/aperture-vol-1/>
EIP
- EIP4345:推迟难度炸弹到 2022 年 5 月
<https://eips.ethereum.org/EIPS/eip-4345>
权益证明
- Altair 升级公告:在 10 月 27 日之前升级你的 staking 客户端。致命 Bug 的赏金高达 10 万美元
<https://blog.ethereum.org/2021/10/05/altair-announcement/>
- 开发者网络开始出块 [1] ;见共识监控器 [2]
[1]: <https://twitter.com/benjaminion_xyz/status/1446516207159582743>
[2]: <http://mergenet.consensus-monitor.stokes.io/>
- Teku/Lighthouse 客户端和 Geth/Besu 客户端在完成 Altair 升级和 PoW 关闭之后保持同步的视频
<https://www.symphonious.net/2021/10/08/ethereum-merge-local-testnet-demo/>
- 互操作性的每日进展
<https://twitter.com/sigp_io/status/1446521008702246913>
- 最新的 What’s New in Eth2:收集反思,考虑如何创建长期存在的多客户端测试网,用于 PoW 关闭的研究
<https://hackmd.io/@benjaminion/eth2_news/https%3A%2F%2Fhackmd.io%2F%40benjaminion%2Fwnie2_211008>
- Consensus specs v1.1.2:修复了 Altair 和 PoW 关闭的测试生成器
<https://github.com/ethereum/consensus-specs/releases/tag/v1.1.2>
- MergeMock:用于测试的模拟执行引擎和共识节点
<https://github.com/protolambda/mergemock>
- Merge-fuzz:测试引擎 API 的框架
<https://twitter.com/vdWijden/status/1446461842977591297>
- 共识客户端切换指南清单
<https://www.reddit.com/r/ethstaker/comments/pxx0oz/ethstaker_comprehensive_list_of_client_switching/>
- 为修复漏洞,Rocket Pool(质押池)启动推迟
<https://twitter.com/Rocket_Pool/status/1445536222881857545>
Layer 2
- StarkNet alpha 计划在 11 月在主网推出:准入型部署,在 alpha 和 beta 版本间没有后向兼容保证
<https://medium.com/starkware/starknet-alpha-is-coming-to-mainnet-b825829eaf32>
- Etherscan 推出的 Arbitrum 测试网浏览器
<https://testnet.arbiscan.io/>
- 有效性证明的成本摊销:zkRollup 交易越多,单交易成本越低
<https://polynya.medium.com/the-dynamics-around-validity-proof-amortization-519e9ae291c1>
- 无需公开交易历史数据的 zkRollup,可支持隐私合约执行并精简 calldata
<https://ethresear.ch/t/a-zkrollup-with-no-transaction-history-data-to-enable-private-smart-contract-execution-with-calldata-efficiency/10961>
开发者材料
- CREATE3:部署合约的库,地址是确定性的,依赖于 salt 而非代码,减少了 6 万的 gas 消耗量
<https://github.com/0xsequence/create3>
- SSTORE2 合约存储方式,在大于 64 字节的项上,比原生的方法要更便宜;对 SLOAD 最多可便宜 17 倍,对 SSTORE 最多可便宜 3 倍
<https://twitter.com/Agusx1211/status/1446187302389170183>
- ERC3652PureProxy:基于纯粹代理工厂的 CREATE2,在构造器中执行 delegate call
<https://github.com/1inch/ERC3652/blob/feature/pure-proxy-factory/contracts/ERC3652PureProxy.sol>
- Fisher-Yates Shuffle:链上随机打乱数据
<https://twitter.com/cleanunicorn/status/1445691819098992648>
- noble-hashes:SHA2、SHA3、RIPEMD、BLAKE2、HMAC、HKDF、PBKDF2 和 Scrypt 的快速、安全、最小化的 Javascript 实现
<https://github.com/paulmillr/noble-hashes>
- prb-math.js:PRBMath Solidity 库的 JavaScript 实现,用于测试
<https://www.npmjs.com/package/prb-math.js>
- eth-sdk:使用地址,为一个合约创建一个类型安全的 SDK
<https://github.com/dethcrypto/eth-sdk>
- 在使用 onlyOwner 修改器时,Solidity 的 存储项内动态数组会覆盖掉合约存储项
<https://twitter.com/ylv_io/status/1445104519239643157>
- Vyper v0.3.0:重构传统后端
<https://github.com/vyperlang/vyper/releases/tag/v0.3.0>
- mev-inspect-py:发现矿工支付、代币转账、互换和套利
<https://github.com/flashbots/mev-inspect-py>
安全性
- 有风险的 COMP 增加到约 49 万个,drip 函数已经发送了积压的约 20 万 COMP给审计器,社区一直在归还 COMP
<https://twitter.com/rleshner/status/1444691278986457095>
- Staking pool 的漏洞 [1] 影响了 Lido 和 Rocket Pool,存款交易可以被抢跑,使得用户资金处在风险之中。由 StakeWise [2] 公开;2019 年末在 Eth Research 论坛 [3] 上已有讨论
[1]: <https://blog.lido.fi/vulnerability-response-update/>
[2]: <https://twitter.com/stakewise_io/status/1445475001696620550>
[3]: <https://ethresear.ch/t/deposit-contract-exploit/6528>
应用
- Etherscan:桥的状态可视化
<https://medium.com/etherscan-blog/ethereum-bridges-four-months-on-10ee36f889ae>