找到约 11 条结果

文章 无多签硬件钱包时,如何实现以太坊通证的多签合约?

...unction*/ /** * @dev Contract constructor sets initial owners and required number of confirmations. * @param _owners List of initial owners. * @param _required Number of required confirmations. */ constructor(address _token, address[] _owners, uint256 _required) p...

文章 理解Substrate数据存储的底层实现Merkle Patricia Trie

...trate默认的区块生成算法是BABE或者Aura,而最终性是通过GRANDPA来决定的,在网络稳定的情况下,仅保留一定数量的最新区块是可行的。 ## 总结 本文介绍了区块链应用必不可少Merkle Tree,以及Substrate采用的Patricia Merkle Trie的不...

文章 Michael.W基于Foundry精读Openzeppelin第30期——ECDSA.sol

...R = signatureCompact.r const signatureCompactVS = signatureCompact.yParityAndS const output = { eth_signed_msg_hash_from_hash: ethSignedMessageHashFromHash, eth_signed_msg_hash_from_bytes: ethSignedMessageHashFromBytes, struct_hash: structHash, typed_data_hash: typedDataHash,...

文章 全栈SVM链索引和数据分析工具

...#:~:text=In%20Buterin's%20vision%2C%20%E2%80%9Cinfo%20finance,science%2C%20and%20decision%2Dmaking.) 愿景——像 Polymarket 这样的预测市场从数据中提取价值——如果底层基础设施跟不上,那将显得空洞。 那么,当现在的数据工具还停留在过去时,我...

文章 Uniswap V2分析

...e1); if (feeOn) kLast = uint(reserve0).mul(reserve1); // reserve0 and reserve1 are up-to-date emit Mint(msg.sender, amount0, amount1); } ``` 首先通过getReserves()获取两种代币的缓存余额(防止攻击者操控价格预言机,计算协议手续费),然后计...

文章 Solidity: 引用类型的储存位置: Storage, Memory, Calldata.

...ldata-in-solidity#:\~:text=In%20summary%2C%20memory%20is%20used,accessed%20and%20modified%20by%20any) 4. [Ethereum Stack Exchange - In What Cases Would I Set a Parameter to Use Storage Instead of Memory?](https://ethereum.stackexchange.com/questions/107028/in-what-cases-would-i-set-a-parameter-to-u...

文章 重构:金钱与比特币的伦理

...容。 所以这篇文章是关于对我之前关于 [The Ethics of Money and Bitcoin](https://learnblockchain.cn/article/11115) 的文章的修改。 ## 挖矿费用正在影响比特币的可分割性 我实际上在《货币的本质》中提到过挖矿费用正在影响比特币的可分割...

文章 掌握Web3基础知识 - 从节点到网络

...nts) - [以太坊客户端](https://ethereum.org/en/developers/docs/nodes-and-clients/client-diversity/#current-client-diversity) 更多关于区块链的工作原理,请跳到**Layer1 网络部分**。 #### 节点基础设施供应商 普通用户通常被鼓励运行自己的...

文章 SQL入门到精通:玩转数据库的7大操作

... mysql> use mysql_test; Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Database changed mysql> show tables; +----------------------+ | Tables_in_mysql_test | +----------------------+ | customers |...

文章 什么是 “时间扭曲攻击”?

...https://bitcoin.stackexchange.com/questions/75831/what-is-time-warp-attack-and-how-does-it-work-in-general/75834#75834 作者:David A. Harding 比特币协议(共识规则)对区块头中的时间戳有两项相关的规则: 1. 节点不会接受一个时间戳超过本地时间 2 ...

文章 SUI Move合约学习与实践——极简IDO合约

...nction: 2, instruction: 42, function_name: Some(\"fund_ido\") }, 2) in command 0", > } > ``` ```bash sui client switch --address alice sui client gas --json | jq '.[] | select(.gasBalance > 20000000) | .gasCoinId' -r > output.txt GAS=$(sed -n '1p' output.txt) SPLIT_COIN=$(sed -n '2p' output...