找到约 12 条结果

文章 Bitcoin Script

...d from the input part of the transaction, thereby improving the efficiency and scalability of the transaction. The locking script only contains the public key hash, while the unlocking script (witness) contains the signature and the public key. Lock script: OP_0 OP_PUSHBYTES_20 `` Unlock scrip...

文章 Dacade平台SUI Move挑战者合约实践——去中心化市场DApp(Sui Move Marketplace DApp)

...品所有者 ```rust // single listing which contains listed item and its price in COIN // attach actual item as dynamic object field, so we dont define any item field here struct Listing has key, store { id: UID, ask: u64, owner: address } ``` #...

问题 Error! Unable to generate Contract ByteCode and ABI (Expected library(ies) but one or more was not provided)

BSC # Verify & Publish Contract Source Code ![1.png](https://img.learnblockchain.cn/attachments/2021/05/gWwKd77s60b52fb7ad4a5.png) 试过很多次都不行,怎么办法!?

问题 请问 Operator == not compatible with types string memory and literal_string 报错该怎么解决呢?

![image.png](https://img.learnblockchain.cn/attachments/2022/03/sHkq00Ao6243d5f1d4e5c.png) ![image.png](https://img.learnblockchain.cn/attachments/2022/03/vsdAiukZ6243d60a15757.png) 如图,我想判断一个string变量是否等于 "red",出现了这个报错,我想大概是直接写"red...

文章 Gas优化学习笔记2

... 再新增一个函数 ``` function fn_add(uint value) costGas('fn_and') public view returns(bool){ return lowGas(value) && highGas(value); } ``` fn_and:对两个函数进行and运算 fn_and, 入参=20 ``` CALL [call]from: 0x5B38Da6a701c568545dCfcB03FcB875f56be...

文章 BIP352:静默支付的现在和未来

...2 [\[5\]](https://www.btcstudy.org/2025/03/28/bip-352-silent-payments-now-and-future/#note5),并基于 BIP352 的规范展望静默支付的采用方式。 ## [](https://www.btcstudy.org/2025/03/28/bip-352-silent-payments-now-and-future/#%E9%9D%99%E9%BB%98%E6%94%AF%E4%BB%98%E7%9A%84%E5%9F%BA%E...

文章 初探Celestia's Data Availability Layer

...o/YBlog/blob/master/excellent_article/Having a safe CEX: proof of solvency and beyond.md)查看. 文章链接: [地址](https://docs.celestia.org/concepts/how-celestia-works/data-availability-layer) Celestia的数据可用性层(DA)是一个被传的神乎其神的技术, 同时被寄以厚望...

文章 以太坊私链部署erc20_usdt代币

.../** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */ contract Ownable { address public owner; /** * @dev The Ownable constructor sets the o...

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

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