找到约 15 条结果

文章 《Effective Rust》第 7 条:对于复杂的类型,使用构造器

...名*不*需要消费 `self`,因此必须如下所示: ```rust /// Construct a fully built [`Details`] object. /// 生成一个构造完毕的 [`Details`] 对象。 pub fn build(&self) -> Details { // ... } ``` 这个可重复调用的 `build()` 的实现必须在每次被调用...

文章 如何使用 NFTScan NFT API 在 Starknet 网络上开发 Web3 应用

...ddress = "0x0727a63f78ee3f1bd18f78009067411ab369c31d" token_id = "1" # Construct API request URL url = f"{api_endpoint}/{contract_address}/{token_id}" # Make an HTTP GET request response = requests.get(url) # Check if the request was successful if response.status_code == 200: # Get...

文章 《现代管理》eonDAO:一种基于区块链治理哲学的去中心化组织的自组织治理实验

...a typical blockchain decentralized autonomous organization is designed and constructed. Through the careful design of the core rules design, extension mechanism and consensus mechanism and decision-making mechanism to improve organizational management efficiency, reduce organizational management cos...

文章 (十七)学习笔记:Sui 网络中的赞助交易以及gas station使用场景介绍

...indBytes = await tx.build({ provider, onlyTransactionKind: true }); // construct a sponsored transaction from the kind bytes const sponsoredtx = Transaction.fromKind(kindBytes); // you can now set the sponsored transaction data that is required sponsoredtx.setSender(sender); sponsoredtx.s...

文章 零知识证明 - zkEVM源代码分析(EVM Circuit)

...束(减法也转化为加法) ``` let add_words = AddWordsGadget::construct(cb, [a.clone(), b.clone()], c.clone()); ``` 3/ 确定是加法还是减法操作,查看opcode是ADD还是SUB ``` let is_sub = PairSelectGadget::construct( cb, opcode.expr(), OpcodeId::SUB.expr(), ...

文章 ERC20相关业务的合约开发与合约安全

...t is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decr...

文章 如何使用 NFTScan NFT API 在 Viction 网络上开发 Web3 应用

...ons" contract_address = "0xebfd99e37c70bc95a27b2558563bd377cdb8b27d" # Construct API request URL url = f"{api_endpoint}/{contract_address}" # Make an HTTP GET request response = requests.get(url) # Check if the request was successful if response.status_code == 200: # Get the return...

文章 如何使用 NFTScan NFT API 在 Fantom 网络上开发 Web3 应用

...ons" contract_address = "0x8313f3551c4d3984ffbadfb42f780d0c8763ce94" # Construct the API request URL url = f"{api_endpoint}/{contract_address}" # Make an HTTP GET request response = requests.get(url) # Check if the request was successful if response.status_code == 200: # Get the re...

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

文章 Can the Issue of Invoice Reimbursement in China be Solved Completely through the Integration of Blockchain and IoT Technology?

...and technical framework, the non-inductive invoice reimbursement system is constructed to reduce the overall reimbursement costs and promoting the improvement of the taxation system in China. Keywords Blockchain, No reimbursement, Invoice, The Internet of Things, Taxation system. 1. INTRODU...

文章 Merkle化和哈希根树 - 深入探讨以太坊中的SSZ Merkle化

...unking):** 将序列化数据分成32字节块。 - **树构建(Tree Construction):** 将块配对,并哈希每对以形成下一层的树。重复此步骤,直到只剩下一个哈希:Merkle根。 - **填充(Padding):** 如果块的数量不是2的幂,则添加额外的零...

文章 如何使用 NFTScan NFT API 在 Gnosis 网络上开发 Web3 应用

...m_value" } # Enter your NFTScan API key api_key = "YOUR_API_KEY" # Construct the request headers headers = { "Accept": "application/json", "Authorization": f"Api-Key {api_key}" } # Send the GET request response = requests.get(base_url + endpoint, headers=headers, params=param...

文章 如何使用 NFTScan NFT API 在 PlatON 网络上开发 Web3 应用

.../own" account_address = "lat1cghxn3j8j4h7sxw0rey9jzc9388tp7aede4870" # Construct API request URL url = f"{api_endpoint}/{account_address}" # Make an HTTP GET request response = requests.get(url) # Check if the request was successful if response.status_code == 200: # Get the returne...

文章 Polkadot Xcm -- 从基础到实践(实现跨链转账)

...e runtime by composing the FRAME pallets that were previously configured. construct_runtime!( pub enum Runtime where Block = Block, NodeBlock = opaque::Block, UncheckedExtrinsic = UncheckedExtrinsic, { // ...... Tokens: orml_tokens::{Pallet, Storage, Event, Config}, XTokens:...

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

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