找到约 13 条结果

文章 使用Cryo分析以太坊

...出了一个关于 Cryo 的精彩指南: Rust x Ethereum Day - Cryo and Data Endgame - YouTube [Rust x Ethereum Day - Cryo and Data Endgame](https://www.youtube.com/watch?v=1DFxuspPE2g) Cryo 基于 [Rust](https://www.rust-lang.org/) 编程语言构建。 在使用 Cryo 之前,你需...

文章 Solidity学习笔记(WTF:1-2)

... 运算同c++中bool:{ - `!` (逻辑非) - `&&` (逻辑与, "and" ) - `||` (逻辑或, "or" ) - `==` (等于) - `!=` (不等于)} ex: ```js // 布尔运算 bool public _bool = true ; bool public _bool1 = !_bool; //取非(_boo1为false) ...

文章 理解Substrate数据存储的底层实现Merkle Patricia Trie

...trate默认的区块生成算法是BABE或者Aura,而最终性是通过GRANDPA来决定的,在网络稳定的情况下,仅保留一定数量的最新区块是可行的。 ## 总结 本文介绍了区块链应用必不可少Merkle Tree,以及Substrate采用的Patricia Merkle Trie的不...

文章 Avalanche 的资产跨链机制

...ionChain: ExportChainsC, exportFee: BN) { // Add import fee // X and P have the same fee const importFee = avm.getTxFee() const amtFee = amt.add(importFee) // 获取当前账户的EVM地址 const hexAddr = this.getEvmAddress() // 获取当前账户的bech地址,...

文章 Uniswap V2分析

...e1); if (feeOn) kLast = uint(reserve0).mul(reserve1); // reserve0 and reserve1 are up-to-date emit Mint(msg.sender, amount0, amount1); } ``` 首先通过getReserves()获取两种代币的缓存余额(防止攻击者操控价格预言机,计算协议手续费),然后计...

文章 理解Solidity数据类型、安全与存储优化

...会[溢出或下溢](https://hackernoon.com/hack-solidity-integer-overflow-and-underflow)而不会回滚。 **易受攻击的代码:** ``` // 在 Solidity 通过掌握这些概念,你将在以太坊平台上开发出更安全、高效和健壮的智能合约。 ## 参考文献 ### 官方文...

文章 扩展DLC第二部分:DLC的免费选项问题

...b-LubmLpK2xHqF6FQ.jpeg) **论文:** [**《Discreet Log Contracts Channels and Integration in the Lightning Network》**](https://github.com/p2pderivatives/offchain-dlc-paper/blob/master/offchaindlc.pdf) **DLC扩展系列:** **DLC扩展第一部分:** [**《Off-chain Discreet Log Contracts》**](ht...

文章 什么是 “时间扭曲攻击”?

...https://bitcoin.stackexchange.com/questions/75831/what-is-time-warp-attack-and-how-does-it-work-in-general/75834#75834 作者:David A. Harding 比特币协议(共识规则)对区块头中的时间戳有两项相关的规则: 1. 节点不会接受一个时间戳超过本地时间 2 ...

文章 SUI Move合约学习与实践——极简IDO合约

...nction: 2, instruction: 42, function_name: Some(\"fund_ido\") }, 2) in command 0", > } > ``` ```bash sui client switch --address alice sui client gas --json | jq '.[] | select(.gasBalance > 20000000) | .gasCoinId' -r > output.txt GAS=$(sed -n '1p' output.txt) SPLIT_COIN=$(sed -n '2p' output...

文章 了解零知识证明历史

...知识证明领域在学术文献中首次出现是在 [Goldwasser, Micali and Rackoff](https://people.csail.mit.edu/silvio/Selected Scientific Papers/Proof Systems/The_Knowledge_Complexity_Of_Interactive_Proof_Systems.pdf?ref=blog.lambdaclass.com) 的论文中。有关起源的讨论,你可以参...

文章 以太坊隐私:通往自我主权的道路

...an-Ennis](https://x.com/post_polar_), [Tim Beiko](https://x.com/TimBeiko), and [Vitalik Buterin](https://vitalik.eth.limo/) for feedback and review._ > 将这份路线图视为一个正在进行的工作,具有许多可动的部分。其主要目标是提供一个**以隐私为首要**的以太...

文章 Foundry 备忘录

...查看以下资源: - [Foundry vs Hardhat: Differences in performance and developer experience](https://chainstack.com/foundry-hardhat-differences-performance/) - [Smart Contract Development with Foundry (Video)](https://www.youtube.com/watch?v=uelA2U9TbgM) - [Building and testing smart contrac...

文章 AI 与DeFi - 重新塑造我们所知的加密货币

!["AI and DeFi - Reshaping Crypto as we Know it - Three Sigma" banner](https://img.learnblockchain.cn/2025/03/12/65507791_image.png) ## 引言 人工智能正在以令人瞩目的速度重塑 DeFi 应用,承诺在交易、治理、安全和用户个性化等领域实现突破。本文...