找到约 12 条结果

文章 Mapping 数据结构 | 用 Rust 写智能合约(二)

... will be trapped in an runtime-error for attempting /// to visit uninitialized storage. /// Constructor that initializes the `my number map` Hashmap pub fn new(&mut self) { self.my_number_map.initialize(); } // Get the value for a give...

文章 DeFi 借贷:清算与抵押

... ![抵押品因素和安全边际](https://img.learnblockchain.cn/2025/02/26/935a00_96e58f3957104b33aa23d85222288c25~mv2.gif) ## 贷款与价值比(LTV) 贷款与价值比(LTV)是**_当前_**贷款价值与抵押品价值的百分比。例如,所需的抵押品因素可能为 80%,但...

文章 Starknet Dojo 入门:安装、编译、部署与交互

...jo ```bash # asdf plugin-add dojo asdf plugin add dojo https://github.com/dojoengine/asdf-dojo # Install the latest version of Dojo asdf install dojo latest # check installed version asdf list dojo ``` ![dojo_asdf.png](https://img.learnblockchain.cn/attachments/2025/01/DTMzGmua677531...

文章 构建安全 Noir 电路的开发者指南

...PrinciplesofZero-KnowledgeSys) - [Noir 电路中常见的安全漏洞](#CommonSecurityVulns) [1. 约束中的逻辑错误](#LogicalErrors) [2. 有限域中的算术陷阱](#ArithmeticPitfalls) [3. 意图与实现不匹配](#IntentvsImplementation) [4. 隐私泄露](#PrivacyLeaks) -...

文章 Layer2 Calldata Gas优化

... ## 作者 本文由Rati Montreewat([Linkedin](https://www.linkedin.com/in/rati-montreewat/),[Twitter](https://twitter.com/RATi_MOn))撰写,他是一位区块链工程师,也是L2 calldata优化工具[Solid Grinder](https://github.com/Ratimon/solid-grinder)的作者,并且是RareSki...

文章 Cairo 1.0 幕后:探索 Sierra

...1BkeJ2JAg.png) ## 介绍 在[本系列的第一篇博文](https://medium.com/nethermind-eth/under-the-hood-of-cairo-1-0-exploring-sierra-7f32808421f5)中,我们介绍了 Sierra,这是一种中间语言,旨在通过确保部署在 Starknet 上的所有代码在运行时不会产生错误,...

文章 Solidity编码规范汇总篇

...了 6 个小节,在 B 站的合集地址为: https://space.bilibili.com/60539794/channel/collectiondetail?sid=3780183 为了方便一些更习惯看文章的同学,这两天我又整理出了文字版本,以下就是该 Solidity 编码规范汇总篇。 ## 为什么需要编码规...

文章 CashioApp攻击 - 漏洞是什么以及X-Ray如何检测它

... 稳定币(CASH)协议最近在一次 [攻击](https://explorer.solana.com/tx/4fgL8D6QXKH1q3Gt9GPzeRDpTgq4cE5hxf1hNDUWrJVUe4qDJ1xmUZE7KJWDANT99jD8UvwNeBb1imvujz3Pz2K5) 中损失了 5000 万美元。攻击者几乎可以免费铸造 2,000,000,000 CASH 代币。根本原因是 Cashio 的 [brrr 智...

文章 Gas:目前将稳定币支付规模扩大10倍,在不久的将来扩大50倍

...作。我们的工作基于ConsenSys研究员 [John Adler](https://twitter.com/jadler0) 的研究和努力,他在几个月前提出了这一技术作为可行的扩展解决方案 [几个月前](https://ethresear.ch/t/minimal-viable-merged-consensus/5617)。他描述了一种以太坊的可扩展...

用户 déjà vu

开发

用户 Surréal?

用户 Zhōu Jǐnchéng