找到约 14 条结果

文章 深入理解 Solidity 错误 #4 - try/catch

... This is executed in case // revert was called inside getData // and a reason string was provided. } ``` ## 警告:try catch 表达式中的错误不会被捕获! 对于 `try {} catch {}`,有一个重要的问题需要注意。正如 Solidity 中蓝色部分所述: ![img](...

文章 Llama:人人触手可及的AI

...[ [here](https://ollama.com/download)\] 并运行: ``` Available Commands: serve Start ollama create Create a model from a Modelfile show Show information for a model run Run a model stop Stop a running model pull Pull a model from a re...

文章 tokio-mpmc 技术架构设计与使用指南

... = queue.clone(); // 启动一个生产者任务 let producer_handle = tokio::spawn(async move { for i in 0..10 { let msg = format!("message {}", i); println!("Producer sending: {}", msg); if let Err(e) = producer_queue.send(msg).await { ...

文章 BIP-0118:bip-anyprevout 上的 Taproot 脚本公钥类型

...bip-0118.mediawiki) 复制原始文件 下载原始文件 Outline Edit and raw actions ``` BIP: 118 Layer: Consensus (soft fork) Title: SIGHASH_ANYPREVOUT for Taproot Scripts Author: Christian Decker Anthony Towns Comments-Summary: No comments yet. Comments-URI: https://...

文章 [译]按照EIP-712规范签名完成委托和投票

> * 原文链接:https://medium.com/compound-finance/delegation-and-voting-with-eip-712-signatures-a636c9dfec5e 作者:[Adam Bavosa](/@adam.bavosa?source=post_page-----a636c9dfec5e----------------------) > * 译文出自:[登链翻译计划](https://github.com/lbc-team/Pioneer) > * 译者:...

文章 最全的以太坊开发工具指南

..., [autocomplete-solidity](https://atom.io/packages/autocomplete-solidity), and [language-solidity](https://atom.io/packages/language-solidity) 等包。 * [Vim solidity](https://github.com/tomlion/vim-solidity) - Vim 语法文件支持Solidity。 * [Visual Studio Code](https://marketplace.visualst...

文章 时间扭曲攻击

...https://blog.bitmex.com/mining-incentives-part-1-the-difficulty-adjustment-and-mining-profits/),协议会计算最近一个难度调整窗口的第一个区块和最后一个时间戳的差值。在由 2016 个区块构成的窗口中,包含了区块间 的 2015 段出块间隔(没错,就是...

文章 权益加权的服务质量:你所需要了解的一切

...ttps://www.helius.dev/blog/solana-nodes-a-primer-on-solana-rpcs-validators-and-rpc-providers#rpc-nodes)。这些节点充当用户与 Solana 的验证者之间的中介。重要的是,它们 _不应在网络中拥有任何股份_。也就是说,RPC 节点是未质押的、非投票的,因此...

文章 从网络安全到区块链安全研究者的7个建议

...ontract-security),[Bube](https://www.cyfrin.io/success-stories/curiosity-and-desire-a-journey-to-smart-contract-auditing) 和 [Nisedo](https://www.cyfrin.io/success-stories/how-i-became-a-smart-contract-auditor-a-codehawks-success-story))详细描述了他们如何从开发、学术和传统网...

文章 全栈开放性和可验证性的重要性

...大作用。还有一些人,比如[研究土地价值税](https://www.landisabigdeal.com/)或拥堵费的经济学家,试图**改善他们国家的_经济_**。 不同的人可能对每个想法有不同程度的热情。但他们都有一个共同点,那就是他们**都涉及_高带宽参...

文章 基于通用 Rollups 的预确认机制

...200MGas (>1k TPS)](https://www.paradigm.xyz/2024/03/reth-beta#how-much-gas-and-transactions-per-second-tps-can-reth-support) 的速率处理执行预确认(不包括 L1 排序和证明)。这比基于 [L2Beat 数据](https://l2beat.com/scaling/activity) 的当前需求高约 40 倍。 ## 预确...

文章 玩转Sui多签钱包1:普通公钥多签钱包 @SUI Move开发必知必会

...he initial value 3 ensures that following data will be after the flag byte and threshold bytes let i = 3; for (const { publicKey, weight } of this.publicKeys) { const bytes = publicKey.toSuiBytes(); tmp.set(bytes, i); i += bytes.length; tmp.set([weight], i++); } return no...

文章 隐私货币:第二部分

...ia](https://en.wikipedia.org/wiki/Group_(mathematics)#:~:text=Definition%20and%20illustration) 以获取群的数学定义。 事实证明,循环群对于密码学也非常有用。假设你从 Z/12Z\\mathbb{Z} / 12 \\mathbb{Z}Z/12Z 中的 000 开始,并不断地加 5。那么你会得到以...

文章 EthHub周报#109

...的10个应用案例和优点](https://blog.makerdao.com/top-10-use-cases-and-benefits-of-the-dai-stablecoin/) * [你应该想成为你自己的银行](https://medium.com/mycrypto/you-should-want-to-be-your-own-bank-8489352c2902) * [以太坊在冠状病毒大流行的全球市场冲击中的表...