找到约 11 条结果

文章 以太坊2.0的未来蓝图及挑战

...s](https://eips.ethereum.org/) > > 参考: [Two-way bridges between eth1 and eth2](https://ethresear.ch/t/two-way-bridges-between-eth1-and-eth2/6286) > > 参考: [Ethereum 2.0 (Serenity) Phases](https://docs.ethhub.io/ethereum-roadmap/ethereum-2.0/eth-2.0-phases/#phase-2-state-execution) > ...

文章 solidity 内联汇编

...| 如果 x == 0 为 1,否则为 0 | | and(x, y) | | F | x 和 y 的按位与 | | or(x, y) | | F | x 和 y 的按位或 ...

文章 Ethernaut 题库闯关 #10 — Re-entrancy(重入)

...e: msg.value}(address(this)); // withdraw 1 way and trigger the re-entrancy exploit victim.withdraw(initialDonation); // because the victim contract underflowed our balance // we are now able to drain the whole balance of the co...

文章 Sui安装 VsCode环境配置 MacOS

...,在 $\mathit{Mac\ OS}$ 环境下,它们包括: - $\mathit {Rust\ and\ Cargo}$ - $\mathit{Homebrew}$ - $\mathit{cURL}$ - $\mathit{CMake}$ - $\mathit{libpq}$ - $\mathit{Git\ CLI}$ 之前,我们已经顺利配置了 $\mathit{Homebrew}$,借助这一款利器,可以仅用一行命...

文章 如何使用 Traceye 运行托管 subgraph

...的 workspace(应该是默认 workspace)的信息。**Deployment Command** 按钮说明了托管 subgraph 的步骤(我们稍后会介绍)。 subgraph 的 **Query URL** 部分提供了用于查询托管 subgraph 的 URL,还可以通过交互式 playground (通过 **Open** 按钮) 与之...

文章 Solidity进阶之gas优化

...//github.com/ethereum/solidity/blob/develop/libevmasm/RuleList.h),比如`AND(X, X)`就可以改为直接在栈上放置一个`X`。 ### Storage优化 #### 减少Slot的数量 在合约中对Storage的读写永远是gas消耗的大头,Storage优化的思路之一就是尽可能减少slot...

文章 一段Solidity汇编代码逻辑整理

...s)) mstore(add(ptr,0xc4),r) mstoreladd(ptr,0xe4),and(vs,SIGNATURE_S_MASK) mstore(add(ptr,0x104),0x120) mstoreladd(ptr,0x143),INCH TAG WITH LENGTH PREFIX) } ``` 这段 Solidity 汇编代码的逻辑如下: 首先,声明了一个名...

文章 solidity面试题(五)

... | | 0x13 | SGT | 3 | | 0x14 | EQ | 3 | | 0x15 | ISZERO | 3 | | 0x16 | AND | 3 | | 0x17 | OR | 3 | | 0x18 | XOR | 3 | | 0x19 | NOT | 3 | | 0x1a | BYTE | 3 | | 0x20 | SHA3 | 30 | | 0x30 | ADDRESS | 2 | | 0x31 | BALANCE | 400 | | 0x32 | ORIGIN | 2 | | 0x33 | CALLER | 2 | | 0x34 | CALLVAL...

文章 扩展DLC 第四部分:在闪电网络中集成DLC通道

...JpPcJ4_y2aoIayQ.jpeg) **_论文:_** [**_Discreet Log Contracts Channels and Integration in the Lightning Network_**](https://github.com/p2pderivatives/offchain-dlc-paper/blob/master/offchaindlc.pdf) **_扩展 DLC 系列:_** **_扩展 DLC 第 1 部分:_** [**_链下 Discreet Log Contracts_**]...

文章 EIP-4844: Rollups的量身定制

... ## 参考资料 1. [Cyfrin Blog: What is EIP-4844? Proto-Danksharding and Blob Transactions Explained](https://learnblockchain.cn/article/13807) 2. [LearnBlockChain: EIP-4844 提案解析](https://learnblockchain.cn/article/7586) 3. [EIP-4844 官网](https://www.eip4844.com/) 4. [Vitalik But...