找到约 15 条结果

文章 理解以太坊: Go-Ethereum 源码剖析(1): Account and State

...nt transaction execution fakeStorage Storage // Fake storage which constructed by caller for debugging purpose. // Cache flags. // When an object is marked suicided it will be delete from the trie // during the "update" phase of the state transition. dirtyCode bool // t...

文章 OpenBuild Starknet Bootcamp任务3:Starknet Foundry合约测试代码错误修复及部署和交互测试

...ress, #[key] new_owner: ContractAddress, } #[constructor] fn constructor(ref self: ContractState, initial_owner: ContractAddress) { self.owner.write(initial_owner); self.data.write(1); // Any variable of the storage that is not initialized ...

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

文章 Rust编程语言学习之高级特性

...)] pub fn hello_macro_derive(input: TokenStream) -> TokenStream { // Construct a representation of Rust code as a syntax tree // that we can manipulate let ast = syn::parse(input).unwrap(); // Build the trait implementation impl_hello_macro(&ast) } fn impl_hello_macro...

文章 基于哈希证明系统的区块链两方椭圆曲线签名

...1]](javascript:;) [14]LAI Qiqi, YANG Bo, YU Yong, et al.A Survey on the Construction of Hash Proof Systems Based on Lattices Journal of Cryptologic Research, 2017,4(5):474-484. [[本文引用: 1]](javascript:;) 来齐齐, 杨波, 禹勇, 等.基于格的哈希证明系统的构造综述 ...

文章 从EVM 角度看合约创建与部署

> * 原文链接: https://blog.smlxl.io/evm-contract-construction-93c98cc4ca96 > * 译文出自:[登链翻译计划](https://github.com/lbc-team/Pioneer) > * 译者:[翻译小组](https://learnblockchain.cn/people/412) 校对:[Tiny 熊](https://learnblockchain.cn/people/15) > * 本文永...

文章 Libra 白皮书中英文对照版

...lability of the protocol and implementation. * The Libra Association will construct well-documented APIs and libraries to enable users to interact with the Libra Blockchain. * The Libra Association will create a framework for the collaborative development of the technology behind the Libra Blockcha...

文章 如何使用Create2工厂创建合约并验证(Base Remix)?

...Create2 ```solidity // initializationCode = creationCode + abi.encode(constructor.parameter) function safeCreate2( bytes32 salt, bytes calldata initializationCode ) external payable containsCaller(salt) returns (address deploymentAddress) {} ``` ## 2. Demo contract ```...

文章 以太坊第2层扩容方案:状态通道(State Channels)、Plasma 和 Truebit

...分布式交易的实现,他们在 [这里](https://blog.omisego.network/construction-of-a-plasma-chain-0x1-614f6ebd1612) 发布了最近更新进展信息。 #### [](https://github.com/xitu/gold-miner/blob/master/TODO/making-sense-of-ethereums-layer-2-scaling-solutions-state-channels-plasma-an...

文章 [译]如何利用OpenZeppelin编写可升级的智能合约

... private _cap = 1000000000000000000; ERC20Capped public token; constructor(uint8 cap) public { _cap = cap; token = new ERC20Capped(_cap); } } ``` ### 限制1:没有构造函数 由于基于代理的可升级性的要求,因此在可升级合同...

文章 Move 高阶语法 | 共学课优秀笔记

...以资源的形式储存在 account 账户下面 **How to use?** - construct a capability resource and `move_to` the receiptor. - 定义一个 Capability 的 type,比如 ownerCapability 表示是一个 module 的拥有者,把这个资源对象发送给其他人,别人有了这个资源...

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

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

文章 尝试用 Halo2 实现 Tornado Cash

... )?; Ok((left, right)) }, )?; let chip = HashChip::construct(config); let hash_result_cell = chip.hash(layouter.namespace(|| "hasher"), left, right)?; ``` 最重要的部分是最后一行 ``` layouter.constrain_instance(hash_result_cell.cell(), config.instance, 0) ...

文章 从 Lamport 签名中获得脚本状态

...(bit set)的不同数字相加,我们就可以按位构造(bitwise-construct)以及按位解构(bitwise-deconstruct)一个数字。 凭借这一洞见,Rubin 以如下方法检查了一个编码成一系列哈希原像的 Lamport 签名: 1. 对每一个原像,计算其哈希...

文章 区块链时代的拜占庭将军们(上)

...的[论文](https://www.microsoft.com/en-us/research/uploads/prod/2016/12/Constructing-Digital-Signatures-from-a-One-Way-Function.pdf)。 对于拜占庭将军问题,他提出的解决方案就是加入签名,而且,他在论文中提出了加入签名之后解决拜占庭将军问题的算...