找到约 15 条结果

文章 Casper CBC,简化版!简明概述... | 作者:Aditya Asgaonkar | Medium

## Casper CBC,简化版! ### 正确性构造(Correct-By-Construction)Casper 共识机制简化概述 ## 引言 如果你一直在关注 Casper 的研究,那么你可能听说过在 devcon4 上发布的 [**Casper CBC 草案论文**](https://github.com/cbc-casper/cbc-casper-paper/blob/mas...

文章 一种基于区块链的泛用型数据隐私保护的安全多方计算协议

...tment linked schnorr protocol for multi-party computation, BPLSM). Through constructing the structure of the protocol and carrying out formal proof calculations, it is confirmed that the protocol can be integrated into the blockchain network to merge different private messages for efficient signing ...

文章 Rollup节点规范

...reum-optimism/optimism/blob/master/specs/proposals.md#l2-output-commitment-construction)。 [SSZ]: https://github.com/ethereum/consensus-specs/blob/dev/ssz/simple-serialize.md #### 输出方法 API 这里的输入和返回类型由[引擎 API 规范][engine-structures]定义。 [engine-structure...

文章 Taproot Assets:协议、闪电网络兼容性

...分支包含的都是空的叶子,可以用 nil 哈希值来代表。 ![constructing-a-sparse-merkle-tree](https://img.learnblockchain.cn/2025/07/13/constructing-a-sparse-merkle-tree.png) \- 构造一棵稀疏默克尔树 - 举个例子,我们可以使用一种虚构的哈希函数 sha002 来...

文章 如何创建一个 ZK 智能合约

..., "circuits/quadratic.wasm", "circuits/quadratic.zkey"); // Construct the raw calldata to be sent to the verifier contract const rawcalldata = await snarkjs.groth16.exportSolidityCallData(proof, publicSignals); jsonCalldata = JSON.parse("["+rawcalldata+"]") }) ...

问题 bsc链上的erc20合约,要求只有一点买卖的时候2%兑换成bnb发送到营销钱包,现在的问题是添加流动性会一直报错Fail with error 'TransferHelper::transferFrom: transferFrom failed'

...ansferred(address indexed previousOwner, address indexed newOwner); constructor () { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } function owner() public view returns (address) { retur...

文章 Chainlink--CCIP--NFT 讲解

...Lane Manager(通道管理) ```js class LaneManager { constructor() { this.lanes = new Map(); this.limits = new Map(); } // 检查通道状态 async checkLane(sourceChain, destChain) { const lane = this.getLane(sou...

文章 揭秘 0xGasless:利用Gas 抽象和账户抽象实现的 AI 增强型 Web3 策略

... Agent Raptor->>Bundler: Creates optimized route (e.g., Uniswap v3) & constructs UserOperation Bundler->>Paymaster: Requests gas sponsorship for the UserOperation Paymaster->>Paymaster: Validates sponsorship logic (e.g., budget, whitelist, RAG approval) Paymaster-->>Bundler: Retu...

文章 Substrate 抛硬币游戏(二):编写测试和UI

...nction的第一个参数是`Origin`枚举类型吗?在实现代码中,`construct_runtime!`宏通过调用`impl_outer_origin!`自动为我们添加了Origin的定义。但是在测试代码中,我们需要自己调用`impl_outer_origin!`帮我们生成runtime所依赖的`Origin`类型,宏解...

文章 optimism sequencer背后的魔法(三):libp2p在op-stack中的使用

...ay(), // host will start and listen to network directly after construction from config. libp2p.ListenAddrs(listenAddr), libp2p.ConnectionGater(connGtr), libp2p.ConnectionManager(connMngr), //libp2p.ResourceManager(nil), // TODO use res...

文章 每周以太坊进展2022/11/26

... halo2 Rust crate[构建 ZK SNARK 电路](https://jtriley.substack.com/p/constructing-zk-snark-circuits)的指南 ## 安全 * [形式化验证 WETH 合约](https://www.zellic.io/blog/formal-verification-weth),用 Z3 Theorem Prover 证明 Wrapped ETH 智能合约的安全性 --- ...

文章 zkSync Era部署合约代币最全教程,安装本地环境

...,官方出的解决方案是使用 hardhat 插件。 2.合约中的 constructor 需要传参进去,不能直接写入 3.官方的 python sdk 也是不能使用的状态。 4.测试链需要有一定数量的测试ETH,可在bisell.site币售购买 系统环境:ubuntu 22.04 ### ...

文章 Aave中的AToken

...er contract to implement initializer functions. To use it, replace * the constructor with a function that has the `initializer` modifier. * @dev WARNING: Unlike constructors, initializer functions must be manually * invoked. This applies both to deploying an Initializable contract, as well *...

问题 contractTokenBalance >= swapTokensAtAmount ,每次达到这个条件的时候,就无法转账和卖出了,只能买,不知道哪个逻辑出错了,求解!!!

...ipTransferred(address indexed previousOwner, address indexed newOwner); constructor () { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } function owner() public view returns (address) { return _owner; } modifier...

文章 Rollup节点规范

...2 输出根](https://learnblockchain.cn/article/17399#l2-output-commitment-construction)。 [SSZ]: https://github.com/ethereum/consensus-specs/blob/dev/ssz/simple-serialize.md #### 输出方法 API 此处的输入和返回类型由 [engine API specs][engine-structures] 定义。 [engine-structur...