找到约 14 条结果

文章 Ethernaut 题库闯关 #14 — Gatekeeper Two

.../blog.openzeppelin.com/deconstructing-a-solidity-contract-part-ii-creation-vs-runtime-6b9d60ecb44c/) 由于这个原因,要通过gateTwo,我们只需要从`Exploiter`智能合约的`constructor`中调用`enter`即可 ## gateThree:类型转换、向下转换和位操作 这里主要...

文章 DID中地址聚合器的实现 | Move dApp 极速入门(八)

...dr_aggr.max_id + 1;      //获取区块高度   let height = Block::get_current_block_number();   let msg = Utils::u64_to_vec_u8(height);   let now = Timestamp::now_seconds();          //记录创建时间、height作为addr_info的msg   let addr_info = Addr...

文章 第13章:去中心化预测市场

.../PressRoom/PressReleases/8478-22) 7. 2024 年美国大选:预测市场 vs 传统民调 [https://www.economist.com/finance-and-economics/2024/11/06/prediction-markets-vs-polls](https://www.economist.com/finance-and-economics/2024/11/06/prediction-markets-vs-polls)

文章 区块链预言机:其重要性、类型与漏洞

...等等。 ### 智能合约中对预言机的需求 [![](https://img.learnblockchain.cn/2025/12/08/19896050_image.jpg)](https://img.learnblockchain.cn/2025/12/08/19896050_image.jpg) 智能合约本质上是隔离且具有确定性的;它们无法在没有中介的情况下访问或检索来自...

文章 二进制启动BSC主网快照数据

... t=2021-07-22T09:25:02+0800 lvl=info msg="Loaded most recent local full block" number=9,154,718 hash=0xea2f92e829a44069fef71d345fcacf404bb2df44dd14dea45deb0e84682fdfcd td=18,241,589 age=1w8h25m 加载最新的fast区块 t=2021-07-22T09:25:02+0800 lvl=info msg="Loaded most recent local fast block"...

文章 Gains Network某些分叉中的问题

... t.openPrice, t.openPrice, block.number, _executionFee ) ); aggregator.executions().setOpenLimitOrderType(msg.sender, t.pairIndex, index, _type); //... ``` 这可以通过将 `t.openPrice` 设...

文章 以太坊 - PEPC-Boost-V0 - Bchain

## PEPC-Boost V0 ### 目录 1. [摘要](https://learnblockchain.cn/article/19450?both#Abstract) 2. [术语表](https://learnblockchain.cn/article/19450?both#Glossary) 3. [介绍](https://learnblockchain.cn/article/19450?both#Introduction) 4. [系统架构](https://learnblockchain.cn/article/19450?...

文章 ZK Mesh:2025年12月回顾

... Justin Drake - [后量子签名聚合:一种折叠方法](https://learnblockchain.cn/article/22883) \| Thomas Coratger、Srinath Setty - [ZK Secret Santa](https://learnblockchain.cn/article/22882) \| Arvolear - [2026 年私人投票状况](https://pse.dev/articles/state-of-private-voting-2026/...

文章 Solodit Checklist详解:Griefing攻击

... 清单,以帮助开发人员构建安全的 [智能合约](https://learnblockchain.cn/tags/smart-contract),并指导安全研究人员通过理解攻击者的心态来识别漏洞。 之前,我们探讨了 [抢跑攻击](https://learnblockchain.cn/article/14124),了解恶意行为者如何...

文章 运行你自己的节点的优缺点

...硬件和软件配置的相同粒度选择。 ![运行你自己的节点 vs. 使用节点提供商](https://img.learnblockchain.cn/2025/05/14/99035034_image.jpeg)运行你自己的节点 vs. 使用节点提供商 ## **运行你自己的节点有哪些权衡?** 与使用 RPC 节点提供商相...

文章 Yieldoor 协议 Gas 优化

...as(); ``` - 通过运行 `forge snapshot --fork-url ETH_RPC_URL --fork-block-number 20956198` 获取初始的 “测试函数快照”,生成一个新的文件 `.gas-snapshot`,记录所有单元测试和整体的 gas 成本(上述第二个选项) - [通过运行 `forge test --gas-snap...

文章 什么时候会发生重入攻击

...味着它在检查接收地址是否是一个 [智能合约](https://learnblockchain.cn/article/11242),然后尝试调用 `onERC721Received` 函数。`transferFrom` 和 `_mint` 函数不这样做,因此你不用担心重入攻击。 这并不意味着你不应该使用 `safeTransferFrom` 或 ...

文章 区块链三大基石技术之二-哈希

... 版本号(version) 前一个区块的哈希(previous block hash) 默克尔根(merkle root) 时间戳(time) 难度目标(bits) 随机数(nonce) - **序列化区块头** 将区块头的各个字段按照特定顺序进行序列化,...

文章 Move共学-TASK6用Sui SDK和Navi SDK完成一个自定义的PTB模块

...## 2.2 PTB 概念介绍 在 Sui 区块链中,Programmable Transaction Block (PTB) 是一种允许用户创建和执行自定义交易逻辑的机制。这种机制使得开发者能够在单个交易中组合多个操作,从而实现更复杂的业务逻辑。PTB 为去中心化应用(dApps...