找到约 15 条结果

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

...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 ...

文章 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...

问题 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...

文章 代理和可升级性——UUPS 代理 (EIP-1822)

...t MyToken is Owned, ERC20DataLayout, Proxiable, LibraryLock { function constructor1(uint256 _initialSupply) public { totalSupply = _initialSupply; tokens[msg.sender] = _initialSupply; initialize(); setOwner(msg.sender); } function updateCode(address newCod...

文章 密码学 - SM2曲线 - Asecuritysite

...Y_keygen_init(kctx); OSSL_PARAM params[3]; params[0] = OSSL_PARAM_construct_utf8_string(OSSL_PKEY_PARAM_GROUP_NAME, curve_name, 0); params[1] = OSSL_PARAM_construct_end(); EVP_PKEY_CTX_set_params(kctx, params); EVP_PKEY_generate(kctx, &pkey); printf("Curve Parameters:\n")...

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

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

文章 揭秘 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...

文章 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...

文章 Mechan-stein:一种新型以太坊区块构建框架

...305258047)。这些想法也在 [此文档](https://efdn.notion.site/Block-construction-session-bd611621250f45948eff05fcf6a34067?pvs=4) 中探讨,该文档启发了 [此演讲](https://github.com/michaelneuder/talks/blob/main/misc2024/sbc.pdf)。_ ⋅ **摘要:** _我们概述了以太坊区...

文章 每周以太坊进展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 *...

文章 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...

问题 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...

文章 rfc/obpp-05.mediawiki,来自 master · OpenBitcoinPrivacyProject/rfc

...公钥。 - Payment code identifier: The script element used by senders to construct notification scripts and by recipient to locate their notifications SHALL consist of the first 32 bytes of `c = HMAC-SHA512(c, v)` where c is the chain code and v is the one byte version of the sender's payment code...