找到约 15 条结果

文章 忠诚度(loyalty)积分和社交代币

...dium.com/rallycreators...](https://medium.com/rallycreators/loyalty-points-and-social-tokens-5046d1ca993) >- 登链社区 AI 助手,为大家转译优秀英文文章,如有翻译不通的地方,还请包涵~

文章 每周以太坊进展 2021/04/11

...的 hooks](https://medium.com/ethworks/usedapp-deep-dive-into-custom-hooks-and-testing-4a59fbc1769a) * [Eth 全栈开发者完全指南](https://learnblockchain.cn/article/2383) ## 生态 * Reminder:[资产转移费用可以很容易通过封装来避免](https://www.reddit.com/r/ethereum/c...

文章 以太坊2.0中的MEV - 初步探索

...与最终确定的信息 [https://our.status.im/two-point-oh-justification-and-finalization/](https://our.status.im/two-point-oh-justification-and-finalization/) [↩](https://learnblockchain.cn/article/12056/mev-eth2#fnref-1) 2. MEV 是代表可以在区块链上提取许可以外的交易的重新...

文章 《Effective Rust》第 6 条:拥抱 newtype 模式

...个外部特性: ```rust use std::fmt; impl fmt::Display for rand::rngs::StdRng { fn fmt(&self, f: &mut fmt::Formatter) -> Result { self.0.fmt(f) } } ``` #### 注释 [^1]: 具体来说,是火星气候轨道器。 [^2]: 参见维基百科上的“火星气...

文章 智能合约安全 - 常见漏洞(第一篇)

...le/#h-01-bad-implementation-in-minter-access-control-for-rabbitholereceipt-and-rabbitholetickets-contracts 这里是访问控制出错的另一种方式: ```solidity function claimAirdrop(bytes32 calldata proof[]) { bool verified = MerkleProof.verifyCalldata(proof, merkleRoot, keccak...

文章 通过 Chainlink Proof of Reserve 来验证 BTC 质押资产

...Interface internal reservesWBTC; /** * Aggregator: WBTC reserve and WBTC supply * WBTC Address: 0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599 * Reserves Address: 0xB622b7D6d9131cF6A1230EBa91E5da58dbea6F59 */ constructor() { WBTC = IERC20(0x2260FAC5E5542a773Aa4...

文章 (十)让Move语言单元测试跑起来!

... 0)] // 测试预期失败且错误码为0 fun this_test_should_abort_and_pass_too() { abort 0 } ``` - `#[test_only]`:只在测试模式下现身 - 这是开发者的秘密武器,专为测试环境准备。标记了`#[test_only]`的模块、函数、或者变量,在测试模...

文章 为什么Breez致力于比特币

...:[Wikimedia](https://upload.wikimedia.org/wikipedia/commons/thumb/4/46/Candy_corn_cupcake_cut_in_half.jpg/1024px-Candy_corn_cupcake_cut_in_half.jpg)\] 比特币并非如此。比特币的所谓创始人中本聪在将比特币交给世界后礼貌地消失了(或者一开始就不存在)。...

文章 钱包开发中 MPC 算法实践

... 我们都知道,主流的 MPC 算法有一下几种 - GG18: Gennaro and Goldfeder, 2018 - GG20: Gennaro and Goldfeder, 2020 - DKLS: 分布式密钥生成 - DKLS19: 改进版 DKLS - CGGMP: 分布式密钥生成 - CCLST: 跨链轻量级协议 - DMZ+21: 高效密钥生成和签名 - Stins...

文章 Cairo 1.0 开源啦

... fib_inner(b, a+b, remaining - 1, arr) } ``` ### Example III: structs and ownership 下面的代码展示了Cairo 1.0中结构的使用情况。 ![[Pasted image 20221125102126.png]] > 下面这段话是为Rust观众准备的。Cairo 1.0以类似于Rust的方式管理内存。因此,...

文章 Michael.W基于Foundry精读Openzeppelin第26期——ERC1820Implementer.sol

...1, address(mei)); // register interface between ERC1820Registry and ERC1820Implementer // 1. register willing in ERC1820Implementer mei.registerInterfaceForAddress(interfaceHashERC721, account); assertEq(ERC1820_ACCEPT_MAGIC, mei.canImplementInterfaceForAddress(...

文章 Unichain – 一个为 DeFi 设计的以太坊 L2

...作性](https://blog.oplabs.co/solving-interoperability-for-the-superchain-and-beyond/) ,这将实现 Superchain L2 之间的单区块跨链消息传递。对于 Superchain 之外的链,我们正在通过 [ERC-7683](https://eips.ethereum.org/EIPS/eip-7683) 等计划改善所有链之间的互操...

文章 10.slither检测器分析之二——自杀函数检测及shift汇编函数检测

... for ir in node.irs: if isinstance(ir, Binary) and ir.type in [ BinaryType.LEFT_SHIFT, BinaryType.RIGHT_SHIFT, ]: if isinstance(ir.variable_left, Constant): info = [f,...

文章 提案:通过AI驱动的治理和沟通逐步改造以太坊魔法师社区 - 魔法师社区 / 流程改进

...oposal-gradually-transforming-ethereum-magicians-with-ai-driven-governance-and-communication/20605) >- 登链社区 AI 助手,为大家转译优秀英文文章,如有翻译不通的地方,还请包涵~

文章 Solidity开发者的Rust基础

...dUTvYrRAUvTtYnL"); // *** 在这里声明常量 *** const MEANING_OF_LIFE_AND_EXISTENCE: u64 = 42; #[program] pub mod tryrust { use super::*; pub fn initialize(ctx: Context) -> Result { msg!(&format!("终极问题的答案: {}", MEANING_OF_LIFE_AND_EXISTENCE)); // 这里的新行 ...