找到约 13 条结果

文章 深入探索范围:更深入地了解 Bulletproofs

... $a_R$ ``` n = 8 # 位数 print(f"We will be proving that v is between 0 and {pow(2, n)}\n") ## (2^0, 2^1, 2^2, ..., 2^(n-1)) vec_2n = vector([Fr(2 ^ i) for i in range(n)]) ## (1, 1, 1, ..., 1) vec_1n = vector([Fr(1)] * n) v = Fr(random.randint(0, pow(2, n))) print("v =", v) v_bin = bin(v)[2:]....

文章 Reach 主题专栏 | while & parallelReduce

...。 ## 范例 index.rsh ```javascript // 改编自教程2.7-Play and Play Again // 这个方案是Alice和Bob都随机出一个数,比大小,类似于石头剪刀布 'reach 0.1'; const [ isOutcome, A_WINS, DRAW, B_WINS ] = makeEnum(3); // 修改胜者条件及返回值 const win...

文章 EigenLayer AllocationManager:分配管理器

...a) * [Operator Sets](#operator-sets) * [分配和 Slashing](#allocations-and-slashing) * [配置](#config) ### 参数化 * `ALLOCATION_CONFIGURATION_DELAY`:分配生效前的区块延迟。 * 主网: `126000 blocks` (17.5 天)。 * 测试网: `75 blocks` (15 分钟)。 * `DEALL...

文章 比特币多签指南

...文章](https://www.btcstudy.org/2021/10/18/what-is-multi-signature-wallet-and-recommend-choices/),然后再进入下文的实践部分。 ### 选定多签规则(m-n) 在开始创建多签钱包之前,首先需要选择适合您的多签规则(m-n):即多签钱包的私钥总数(...

文章 以太七日谈 • 2021/11/16

... 请看这里的介绍:[https://ethereum.org/en/developers/docs/nodes-and-clients/](https://ethereum.org/en/developers/docs/nodes-and-clients/) 你应该做全节点与全节点的比较,而不是全节点与存档节点的比较。 比特币全节点并不索引历史的 UTXO 快照—...

问题 部署合约时出现SafeERC20: approve from non-zero to non-zero allowance,求解

... // We recommend this pattern to be able to use async/await everywhere // and properly handle errors. main() .then(() => process.exit(0)) .catch(error => { console.error(error); process.exit(1); }); ```

文章 我们现在在哪里?Giveth DApp的状态如何?

...4)[更新](https://medium.com/giveth/0x4-whats-dappening-milestones-proofs-and-faster-service-94bf926b9597),但距我们编写的关于平台能够实现什么的[概述](https://medium.com/giveth/what-is-the-future-of-giving-d50446b0a0e4)已经快一年了(!)。我们带来好消息:我...

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

... ```solidity contract ERC20 { // internally called by transfer() and transferFrom() // balance and approval checks happen in the caller function _transfer(address from, address to, uint256 amount) internal returns (bool) { fee = amount * 100 / 99; balanceOf[fr...

文章 对Buterin的《权益证明设计哲学》的批判|作者:Tuur Demeester|Medium

...头货币](http://www.npr.org/sections/money/2011/02/15/131934618/the-island-of-stone-money)作为例子。 首先,我认为来自雅浦的石头货币并不是社会共识有效性的好例子。我们几乎没有有关在石头货币系统下进行或防止欺诈的数量的信息。此外,...

文章 BIP 324:增强比特币节点安全性的信息传输协议

...tcoin peers against man-in-the-middle attacks using an action called a “handshake” to share keys more privately.](https://img.learnblockchain.cn/2025/07/15/n-peers.jpg) _Jonas Schnelli 提议的 BIP 324 旨在利用 “握手”操作增强密钥分享的隐私性,从而保护比特币节点...

文章 解构模块化区块链

...供了便利和更低的成本。 Source: https://medium.com/@tintin.land2021/modular-blockchain-will-bring-the-future-of-web3-users-f4901bf07e03 https://medium.com/altlayer/deconstructing-the-impact-and-opportunity-of-modular-execution-layers-bab8adbce083 关于 ChinaDeFi - ChinaDeFi.com 是...

文章 以太坊 2.0 会议摘要 #40

...(Comparing discovery advertisement features by efficiency: ENRattributes and topic advertisement)。文章起了一个高大上的名字,但里面的内容也很有干货。同时他们也在将网络侧的代理程序升级到Age的Discv5的代码。他说他是一个Pi的规范里面的传...

文章 加密货币中的代币经济学:2024年全面 Staking 收益率比较

...cs-in-2024-analyzing-the-impact-of-high-vs-low-interest-rates-on-investors-and-strategies),美联储最近将利率降至 4.25-4.5%,这增强了 staking 相对于传统投资的吸引力。 **实际收益考虑因素** \\* [通货膨胀的影响](https://learnblockchain.cn/article/16330/): ...