找到约 15 条结果

文章 揭露并修复Aleo中的一个通胀漏洞 - ZKSECURITY

..._fields() { Ok(fields) => { // Construct the (future) output index as a field element. let index = Field::from_u16(index as u16); // Construct the preimage as `(function ID || output || tcm || index)`. ...

文章 【zkMIPS系列】Poseidon hash设计流程 & 代码

... # 1. 海绵结构 Poseidon哈希函数采用下面的海绵结构(Sponge Construction)来进行设计,其中P是Posedion每轮的置换函数,$I$是初始状态。假设初始状为$I$为全$0$向量,有一个消息$m=m_1||m_2||m_3||m_4$,输出为$h=h_1||h_2$,且每个$m_i$和$h_i$都...

文章 用Substrate框架实现一个简单的游戏应用

... 最后,我们需要在运行时构造函数中包含demo模块: ``` construct_runtime!( pub enum Runtime with Log(InternalLog: DigestItem) where Block = Block, NodeBlock = opaque::Block, UncheckedExtrinsic = UncheckedExtrinsic { System: system::{default, Log(ChangesT...

文章 二层网络 Optimism 智能合约要点解析

... uint32 _l2Gas, bytes memory _data ) internal { // Construct calldata for finalizeDeposit call bytes memory message = abi.encodeWithSelector( IL2ERC20Bridge.finalizeDeposit.selector, address(0), Lib_PredeployAddresses.OVM_ETH, ...

文章 黑科技区块链如何来建设“智慧城市”

...智慧城市解决方案,如图2-1-1所示。 The new smart city is constructed with the focus mainly on big data and block chain technology, and the multi-dimensional smart city solution is formed by means of combining “one center, four platforms, multi-application, unified chain”, as show...

文章 加密货币中的代币经济学:关于代币化房地产,你需要了解什么

... [研究表明](https://www.ey.com/en_ch/insights/real-estate-hospitality-construction/tokenization-from-illiquid-to-liquid-real-estate-ownership),代币化解决了房地产投资的传统流动性不足问题。全球房地产市场的价值约为 302 万亿瑞士法郎,通过代币化可以...

文章 STARK 证明系统时序图

... PhaseAnyone with access to the binary file and thepublic parameters can reconstruct the Image ID. Note over P: Execute the binary toconstruct the Main Execution Trace. Note over P: Compute Low DegreeExtension to construct theExtended Main Execution Trace. Note over P: Merklize Extended Mai...

文章 Substrate 总览(3) - 入门参考

...strate根目录上,执行 ``` cargo run -- --dev -d .sub --block-construction-execution=NativeElseWasm --other-execution=NativeElseWasm ``` 即可和`new-S`一样运行起以Alice为私钥启动的单验证者节点。 这里提一下,在这个版本的substrate里面存在一...

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

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

文章 创建一个基于链上实时数据的动态SVG NFT

...ore individual stream addresses so they can be referenced post-mint constructor() ERC721("BuidlGuidl Tabard", "BGT") {} function mintItem(address streamAddress) public { // Minimal check that wallet is the recipient of a Stream // Someone could deploy a decoy stream t...

文章 solana序列数据

...operties and imbues them // to the object instance class Assignable { constructor(properties) { Object.keys(properties).map((key) => { return (this[key] = properties[key]); }); } } // Our instruction payload vocabulary class Payload extends Assignable {} // Borsh nee...

文章 《智能电网》基于充电桩的分布式能源解决方案

...nd analyzes the specific application of blockchain in electric energy, and constructs a new intelligent product. This paper starts from the perspective of blockchain-based charging piles, and carries out specific development of its product design, power transmission process and value generation meth...

文章 Substrate代码导读:node-template

...类型; * 为runtime的实现各个功能模块的接口,runtime由`construct_runtime`宏生成, ``` impl template::Trait for Runtime { type Event = Event; } ``` * `construct_runtime`宏根据名称(如`TemplateModule`)和所用的模块内的组件(如`templa...

文章 sui-move基础(三):letsmove-task2

...mation about the transaction currently being executed. /// This cannot be constructed by a transaction--it is a privileged object created by /// the VM and passed in to the entrypoint of the transaction as `&mut TxContext`. public struct TxContext has drop { /// The address of the user that ...

文章 In-Depth Analysis of the TON ADNL Protocol: Building Secure and Efficient P2P Communication Network

...novative neighbor table mechanism, enables nodes within the TON network to construct an efficient and resilient network topology. This topology is not static; it is a living, breathing entity that adapts to the ebb and flow of network traffic, node availability, and changes in the network's overall ...