找到约 15 条结果

文章 探索去中心化稳定币:机制与脆弱性

...言机。 最后,以[Mirror Protocol](https://hacken.io/industry-news-and-insights/manipulations-with-price-oracles-mirror-protocol-exploit/)为例,该协议将$UST(Luna稳定币)的值硬编码为$1,当UST贬值超过90%时遭受攻击! 相关报告问题: - [WATCHPUG - 价格应...

文章 Uniswap v2 路由器代码解析

...数会首先将 Ether 包装成 ETH。 ![uniswap add liquidity with eth and weth](https://img.learnblockchain.cn/2025/02/26/935a00_a817986edc7e440497a0fbd4032024fc~mv2.jpg) ## 移除流动性 移除流动性调用 burn,但使用参数 `amountAMin` 和 `amountBMin`(红色高亮)作为...

文章 使用Foundry 确保智能合约的可靠性:技术指南

...Timestamps[msg.sender] = block.timestamp; } // Unstake and return ETH to the user function unstake() external { require(stakes[msg.sender] > 0, "No stake to withdraw"); uint256 stakeAmount = stakes[msg.sender]; stakes[msg.sender] = 0; ...

文章 Solana内部解析 第1部分:什么是本地链上程序及其重要性?

...ec3.dev/blog/solana-internals-part-1-what-are-the-native-on-chain-programs-and-why-do-they-matter) >- 登链社区 AI 助手,为大家转译优秀英文文章,如有翻译不通的地方,还请包涵~

文章 NFT 必知必会

...是经常被过分夸大,还被用作一种 “[FUD(Fear, Uncertainty and Doubt,害怕、不确定和怀疑)](https://coinmarketcap.com/alexandria/glossary/fud#:%7E:text=An%20acronym%20that%20stands%20for,negative%2C%20misleading%20or%20false%20information.)”话术来吓跑想要进入区...

文章 掌握递归长度前缀(RLP)序列化 - 以太坊执行层的综合指南

...太坊RLP文档](https://ethereum.org/vi/developers/docs/data-structures-and-encoding/rlp/) - [Mark Odayan的以太坊RLP编码综合指南](https://learnblockchain.cn/article/12600) - [Elixir中的以太坊RLP序列化](https://www.badykov.com/elixir/rlp/) - [以太坊背后的秘密第3部分(RL...

文章 哪个Optimism节点最好?公共、私有或自托管

...he Right RaaS Partner\\ \\ Explore the industry’s leading RaaS providers and factors to consider when choosing a RaaS.](https://www.alchemy.com/overviews/compare-raas-providers) [![Featured content card overlay](https://img.learnblockchain.cn/2025/05/14/card-overlay.svg)\\ \\ Layer 2\\ \\ What is ...

文章 零知识证明 - zkEVM源代码分析(State Circuit)

... const STACK_ADDRESS_MAX: usize, const ROWS_MAX: usize, > { /// randomness used in linear combination pub randomness: F, /// witness for rw map pub rw_map: RwMap, } ``` StateCircuit的configure逻辑由Config的configure函数实现。 ``` fn configure(meta: &mut Constrai...

文章 14个最佳加密货币API和区块链API供开发者使用

...//docs.bitquery.io/docs/examples/dextrades/token-trades-apis/#getting-ohlc-and-distinct-buyssells) - 智能合约调用和事件API - 交易转移API 轻松探索ETH、BSC和Arbitrum上的交易追踪。每个合约页面上的追踪选项卡允许你查看完整的追踪树,展示交易中...

文章 共识机制原理(二)—— 分布式系统

...一个非常著名的结果 * 该定理的论文是由 Fischer, Lynch and Patterson 三位作者于 1985 年发表,之后该论文毫无疑问得获得了 Dijkstra 奖 * FLP 给出了一个的结论:**在异步通信场景,即使只有一个进程失败,也没有任何算法能保证...

文章 隔离见证的代价与风险

...p://diyhpl.us/wiki/transcripts/scalingbitcoin/hong-kong/segregated-witness-and-its-impact-on-scalability/) - [SF Bitcoin Devs](https://www.youtube.com/watch?v=NOYNZB5BCHM) - [Scaling Bitcoin Milan](http://diyhpl.us/wiki/transcripts/scalingbitcoin/milan/segwit-lessons-learned/) - [BIP141](https...

文章 第 5 课:在智能合约中实现拍卖功能

...ready the current contract // we just change its state and start the auction if tmg_owner == exec::program_id() { self.tamagotchi_id = *tamagotchi_id; self.status = Status::InProcess; ...

文章 Solidity 编译器是什么?

...头分别指向 ABI 和字节码。ABI 以 JSON 格式表示。 ![The ABI and Bytecode are available.](https://img.learnblockchain.cn/2025/07/08/82368705_image.jpg)ABI 和字节码可用。 ## **如何安装 Solidity 编译器** 在 [学习 Solidity](https://learnblockchain.cn/article/12874) 时...

文章 Filecoin 二阶段测试(1) - 小试牛刀

.../img.learnblockchain.cn/2020/07/01_/898989087.png) ## window SDR, SDR AND NSE 这里简单介绍一下 `window SDR`,`SDR` 以及 `NSE`,了解过的同学请略过。 ### window SDR 一阶段测试启用的 `Sector` 复制证明算法。window SDR 算法中的 window,就是每...

文章 人话讲解solidity合约的存储原理

...ss than 31 bytes"; string public text2 = "I am greater than 31 bytes, and the storage space I occupy has exceeded the maximum value that can be stored in a single storage slot"; function getSlotIndex() public pure returns (uint256) { return uint256(keccak256(abi.encode(1))); ...