找到约 11 条结果

文章 Combining GHOST and Casper以太坊2.0共识机制Gasper:part 1

...这该如何解决呢? 在2020年5月修改版的《[Combining GHOST and Casper](https://arxiv.org/pdf/2003.03052.pdf)》一文中,V神的团队给出了详细的答案及解释。 # 设计目标 Eth2.0的共识算法设计目标就是让PoS就有**一定的安全性和可用性**(certa...

文章 利用区块链技术提高政府透明度和问责制

...录 [切换](https://blockapps.net/blog/improving-government-transparency-and-accountability-with-blockchain/#) ## 区块链在增强政府透明度方面的潜力 区块链技术已成为增强政府运营透明度和问责制的强大工具。凭借其去中心化和不可篡改的账本,区...

文章 NFT在慈善事业中的未来

...在展示他们的才华和创造力的同时,支持慈善事业 [NFTs and Charitable Giving: The Impact of Blockchain in Philanthropy](https://www.linkedin.com/pulse/nfts-charitable-giving-impact-blockchain-philanthropy-lee-%E6%9D%8E%E9%97%BB%E8%8C%B3%E5%8D%9A%E5%A3%AB-apuvc?trk=public_post_main-...

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

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

文章 有趣的比特币脚本(四):哈希锁

...可以独自花费这笔资金。Policy 语句: ```hljs coffeescript or(and(pk(Bob), sha256(H)), and(after(6), pk(Alice))) ``` 编译 [1](https://www.btcstudy.org/2023/04/23/interesting-bitcoin-scripts-and-its-use-cases-part-4-hash-locks/#note1) 出来的 Miniscript 代码是: ```hljs css an...

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

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

问题 delegatecall 说的是persisting the current values for sender and value, 为什么delegatecall 之前memory中存储的东西全部清空了?

```js function() external payable{ address _impl = implementation(); assembly { let ptr := mload(0x40) calldatacopy(ptr, 0, calldatasize) let result := delegatecall(gas(), _impl, ptr, calldatasize(), 0, 0) returnd...

文章 第三讲 如何基于基本面筛选

... df = process_stock_data(stock_code) if df is not None and not df.empty: affected_rows = insert_stock_data(df, stock_code) total_inserted += affected_rows success_count += 1 print(f"✓ ({len(df)}...

文章 [Paper Reading and Code] On Proving Pairings

...y^2 = x^3 + \frac{3}{\beta} $$ where $\beta = u + 9 \in F_{p^2}$ and $u$ is the generator of $F_{p^2}$. - Largest prime factor of $|E(F_p)|$ with 255-bits: $$ r = 21888242871839275222246405745257275088548364400416034343698204186575808495617 $$ - Target (mul...

文章 【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)` 是一条指令,表示结束执行并返...