找到约 15 条结果

文章 UniSwap-V2合约的数据解析入门

... //这里有两种计价模型, // given an input amount of an asset and pair reserves, returns the maximum output amount of the other asset // 你有amountIn个token-x 计算出能兑换amountOut个token-y function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) internal pure r...

文章 以太坊无状态系列 #3:Verkle 树验证

... ## 1. 引入 Verkle 树的原因 Vitalik 在“[A state expiry and statelessness roadmap](https://notes.ethereum.org/@vbuterin/verkle_and_state_expiry_proposal)”中提出了实现无状态性的两种方法: * **状态到期** * **弱无状态** 状态到期和弱无状态...

文章 AI生存威胁:一位康复中的生物自恋者的反思

...去中心化自治组织(DAOs)](https://medium.com/@trentmc0/ai-daos-and-three-paths-to-get-there-cfa0a4cc37b8#.7u3nx1kbe)来去中心化人工智能。这也意味着,除非我们希望现代世界关闭,否则我们无法切断电源。 这些高级人工智能系统将会有复杂的...

文章 使用OpenZeppelin编写可升级的智能合约

...ction-to-smart-contracts.html?highlight=delegatecall#delegatecall-callcode-and-libraries))。 当升级合约时,我们所做的是: 1. 部署一个新的 `实现合约` 2. 在 `ProxyAdmin合约 `中升级,将所有对代理的调用重定向到新的实现合约。 Hardhat/Truffle...

文章 Solidity定点库中的问题——Certora漏洞披露

...2023 年 4 月) - [Midas Capital](https://neptunemutual.com/blog/understanding-midas-capital-exploit/) 漏洞(2023 年 6 月) 另请参阅 [ERC-4626](https://eips.ethereum.org/EIPS/eip-4626)(Tokenized Vaults)中关于“安全考虑”的部分,该部分建议在计算 vault shares 时...

文章 使用wolfCrypt实现ECIES椭圆曲线和对称密钥

... byte[] decrypted = new byte[bufferSize]; /* Random context (随机上下文) */ rng = wolfcrypt.RandomNew(); /* Create keys (创建密钥) */ AlicePublicKey = wolfcrypt.EccMakeKey(keySize, rng); AlicePrivat...

文章 如何用 Solidity 创建一个“Hello World”智能合约

...能合约 在活动栏中,点击“部署和运行事务”(Deploy and run transactions)按钮。 因为我们现在只创建了一个智能合约,侧边栏里 “CONTRACT”(合约) 下拉菜单会自动选择该合约。 单击“部署”按钮。 ## 与智能合约交互 ...

文章 剖析非同质化代币ERC721-全面解析ERC721标准

...ich this NFT represents. Consider making any images at a width between 320 and 1080 pixels and aspect ratio between 1.91:1 and 4:5 inclusive.", } } } ``` tokenURI通常是被web3调用,以便在应用层做相应的查询和展示。 ## 可选实现接口:ERC721Enumerable ...

文章 理解以太坊的Layer 2扩容解决方案:状态通道、Plasma 和 Truebit | 作者:Josh Stark | L4 博客 | Medium

...近发布了项目进展的更新[在这里](https://blog.omisego.network/construction-of-a-plasma-chain-0x1-614f6ebd1612)。 ### **III. Truebit** [Truebit](http://truebit.io/) 是一种帮助以太坊进行 _重_ 或 _复杂_ 计算的技术。这使得它不同于状态通道和 Plasma,这两...

文章 从理论到代码理解Lasso和Jolt

...高 [可验证计算](https://people.cs.georgetown.edu/jthaler/ProofsArgsAndZK.pdf) 的效率和可用性,以实现无信任的分布式系统的承诺,并解决当前 web3 中的一个关键障碍:帮助区块链扩展。尽管提出了许多理论应用,但它们在实践中受限于现有...

文章 SNICKER:一种非交互式比特币混币方案

...dum_ > > _来源: [https://bitcoinmagazine.com/culture/snicker-how-alice-and-bob-can-mix-bitcoin-with-no-interaction](https://bitcoinmagazine.com/culture/snicker-how-alice-and-bob-can-mix-bitcoin-with-no-interaction)_ ![SNICKER, a draft BIP, could allow for bitcoin mixing without any synchronizat...

文章 Namada模块化隐私框架技术深度解析

...方计算 (MPC)](https://www.wipro.com/blockchain/synergizing-blockchain-and-multi-party-computation-to-reimagine-transactions/) 作为运行 [Namada 可信设置 (TS)](https://specs.namada.net/masp/trusted-setup.html) 的一种手段,这项技术类似于 Zcash 之前使用的框架。 ## Namada...

文章 filecoin技术架构分析五:filecoin源码分析之协议层心跳协议

...egating information about nodes in a log aggregator // to support alerting and devnet visualization. type Heartbeat struct { // Head represents the heaviest tipset the nodes is mining on Head string // Height represents the current height of the Tipset Height uint64 // Nickname is the nickname ...

问题 starknet cairo 测试报错 [ERROR] Failed to build test artifacts with Scarb: `scarb` exited with error

...ame = "counter" version = "0.1.0" edition = "2023_01" # See more keys and their definitions at https://docs.swmansion.com/scarb/docs/reference/manifest.html [dependencies] starknet = ">=2.6.3" [dev-dependencies] snforge_std = { git = "https://github.com/foundry-rs/starknet-foundry.git",...

文章 快速开发Solana Action并通过创建Blink在X接收SOL捐赠

...-next npm WARN deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. npm WARN deprecated @humanwhocodes/config-array...