找到约 11 条结果

文章 如何使用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 ```...

文章 以太坊 Casper 101简而言之,Casper 将实现权益证明… | 作者:jon choi | Medium

...s://ethereumfoundation.org/devcon2/wp-content/uploads/2016/10/A-Correct-by-Construction-Asynchronous-Casper-Protocol.pdf)和[视频](https://www.youtube.com/watch?v=4LhC-jDaI00)由Vlad Zamfir。2016年10月。 - 2016.12.06 [Casper的历史:第一章](https://blog.ethereum.org/2016/12/06/history-ca...

文章 【Solidity Yul Assembly】2.4 | Return, Require and Keccak256

## return ``` solidity function return2and4() external pure returns (uint256, uint256) { assembly{ mstore(0x00, 2) mstore(0x20, 4) return(0x00, 0x40) } // returns 2 4 } ``` 在 `assembly` 里,`return(p, s)` 是一条指令,表示结束执行并返...

文章 拥塞控制和EIP1559

...少的纳入保证。[1](https://barnabe.substack.com/p/congestion-control-and-eip1559#footnote-1-32554815) 通过 eip1559,引入了一个 _basefee_ 来动态定价系统所承受的 _拥塞_,为每个区块设置一个最低入场费用,在大多数情况下,这也是“正确”的费用...

文章 sui-move进阶:dynamic_field

... ) { let object_addr = object.to_address(); let hash = hash_type_and_key(object_addr, name); assert!(!has_child_object(object_addr, hash), EFieldAlreadyExists); let field = Field { id: object::new_uid_from_hash(hash), name, value, }; add_child...

文章 零知识证明学习资料汇总

...nowledgeprotocolstoyourchildren * **「推荐文章三」[Cryptographic and Physical Zero-Knowledge Proof Systems for Solutions of Sudoku Puzzles](http://www.wisdom.weizmann.ac.il/~naor/PAPERS/sudoku.pdf)** 推荐值:❤️❤️❤️ 难度值:⭐️⭐️⭐️ 如何在...

文章 探索零知识证明系列4 - 亚瑟王的「随机」挑战

...,这个角色有一个非常学术的名字:「随机预言机」(Random Oracle)[6]。 可是这里为何用 Hash?实际上当 Alice 要产生公共随机数时,需要一个叫做「随机预言机」的玩意儿,这是什么? 开脑洞时间到! 我们设想在「现实...

文章 SUI CLI最全命令详解3——Keytool之密钥对类 @SUI Move开发必知必会

... sui keytool -h Sui keystore tool Usage: sui keytool [OPTIONS] Commands: update-alias Update an old alias to a new one. If a new alias is not provided, a random one will be generated convert Convert private key in Hex or Base...