跳到正文
原文
Ethereum Research 论坛· dlebee·· 25 天前AI 评分32

以太坊存储优化重放保护:从 hash => bool 到打包标志位,协议能否提供更好方案?

Storage-optimized replay protection: from hash => bool to packed flag lanes, and can the protocol offer better?

AI 导读

以太坊研究论坛提出用打包标志位替代 mapping(bytes32 => bool) 存储重放保护标志,将 32 个标志的约 707,200 gas 降至约 177,100 gas,每会话约 44,300 gas,节省约 75%。

来源:Ethereum Research 论坛 · ethresear.ch