找到约 12 条结果

文章 解码以太坊智能合约数据

...: """ utility function to convert byte codes into human readable and json serializable data structures """ output = dict() for k in arg: if isinstance(arg[k], (bytes, bytearray)): output[k] = to_hex(arg[k]) elif isinstance(arg[k], (list)) and len(arg[k]) > 0: ...

文章 写给比特币人的 Chia Lisp 编程语言介绍

...port 签名和 CAT 技巧](https://delvingbitcoin.org/t/lamport-signatures-and-other-cat-tricks/236)”,有 20 个步骤,每一步都涉及一个 8 层的默克尔树,每一次都要单独说明默克尔树,而不是用两个循环解决问题 —— 如果有循环,那么 160 个步骤应...

文章 深度解析:Solana DAO 与治理 - 2024年7月

...载圆圈](https://blog.syndica.io/content/files/2024/09/Deep-Dive---DAOs-and-Governance-July-2024.pdf "Download") * * * * * * **注意:以下是此帖子的文字版本,供视力障碍读者阅读。** [Syndica](https://syndica.io/?ref=blog.syndica.io) 深度剖析:Solana DAO和治理 - 2...

文章 使用Selenium和Metamask 与 Dapp 自动化交互

... 原文:https://dev.to/ltmenezes/automated-dapps-scrapping-with-selenium-and-metamask-2ae9 作者:Leonardo Teixeira Menezes > * 译文出自:[登链翻译计划](https://github.com/lbc-team/Pioneer) > * 译者:[翻译小组](https://learnblockchain.cn/people/1381) > * 校对:[Tiny 熊](...

文章 Go 并发编程实战:从互斥锁到 Goroutine 的优雅之道

...// VisitLink tracks that the page with the given URL has // been visited, and returns the updated link count. func (v *Visited) VisitLink(url string) int { v.mu.Lokc() defer v.mu.Unlock() count := v.visited[url] count++ v.visited[url] = count return count } func main() { ...

文章 理解Solana上的主网、开发网和测试网

...文链接: [coinsbench.com/understan...](https://coinsbench.com/understanding-mainnet-devnet-and-testnet-on-solana-34d8de0999d2) >- 登链社区 AI 助手,为大家转译优秀英文文章,如有翻译不通的地方,还请包涵~

文章 掌握 Solidity 中的访问控制

...control-in-agentnftv2addvalidator-enables-unauthorized-validator-injection-and-causes-reward-accounting-inconsistencies-code4rena-virtuals-protocol-virtuals-protocol-git) [**智能合约漏洞数据集 - Cyfrin Solodit** ](https://solodit.cyfrin.io/issues/missing-access-control-on-critical-feecon...

文章 如何使用QuickNode进行非托管交易

...s://support.blockchain.com/hc/en-us/articles/4417082520724-What-are-public-and-private-keys-and-how-do-they-work)。非托管钱包可以通过两种方法创建和访问。使用私钥(一串字母数字字符)或使用 [助记词](https://coinmarketcap.com/academy/glossary/mnemonic-phrase),...

问题 uniswap里的案例合约ExampleSwapToPrice里computeProfitMaximizingTrade函数的输入truePriceTokenA,truePriceTokenB如何获取或计算,它们和交易对的实时价格有什么关系

...ctory_; router = router_; } // computes the direction and magnitude of the profit-maximizing trade function computeProfitMaximizingTrade( uint256 truePriceTokenA, uint256 truePriceTokenB, uint256 reserveA, uint256 reserveB ) pure pub...

文章 验证者证明:一种用于以太坊 DHT 的简单匿名凭证方案 - 密码学

...(https://twitter.com/asn_d6), [Mary Maller](https://www.marymaller.com/), [Andrija Novakovic](https://github.com/akinovak), [Suphanat Chunhapanya](https://github.com/ppopth)** ### 简介 以太坊的路线图包含一种名为[数据可用性采样 (DAS)](https://ethereum.org/en/developers/docs/da...

文章 [译]Solidity 0.7.0 新变化

...dity.readthedocs.io/en/latest/types.html?highlight=ascii# String -literals-and-type)将抛出解析器错误。 * 需要表达ASCII以外的字符串变量现在应该显式键入`unicode`字符串。它们用`unicode`前缀来标识(例如:`unicode`)。 (例如. `unicode"Text, including emoj...

文章 Vyper - 编译器 - 调查结果报告

... not atyp.compare_type(btyp): return False if return_type and not return_type.compare_type(other_return_type): # type: ignore return False if self.mutability > other.mutability: return False return True ``` 如果我们看一下 mutability 枚举,我们...