找到约 14 条结果

文章 ChatGPT Solidity 智能合约

... contract owner address public owner; // Events for token purchase and refund event TokenPurchase(address indexed purchaser, uint256 amount); event TokenRefund(address indexed refundee, uint256 amount); // Mapping from user address to their token balance mapping(address => uint...

文章 以太坊的Gas费用降低和Maker的最终目标

...eblockcrypto.com/post/149186/heres-a-full-draft-of-senator-cynthia-lummis-landmark-crypto-bill) - Decrypt:维塔利克在对美国国会的加密怀疑信上沉思 [链接](https://decrypt.co/101913/ethereum-founder-vitalik-buterin-muses-on-crypto-skeptic-letter-to-washington) ### 思考与...

文章 Prio3:私有、稳健且可扩展的聚合统计与SNIP计算

...cl_prio3_count)\]: ```go package main import ( "fmt" "crypto/rand" "os" "io" "strconv" "github.com/cloudflare/circl/vdaf/prio3/count" ) func fromReader[T any](r io.Reader) (z T) { switch zz := any(&z).(type) { case *count.Nonce: _, _ = r.Read(zz[:]) case *count....

文章 每周以太坊进展 2020-02-02

...态执行环境和延迟区块纳入](https://ethresear.ch/t/stateless-ees-and-delayed-block-inclusion/6839) ## **开发者材料** * Solidity [v0.6.2](https://github.com/ethereum/solidity/releases/tag/v0.6.2):CREATE2,以及继承自 inheritances 的接口 * [Solidity v0.6.x中的 Try/cat...

文章 【以太坊源码go-ethereum阅读】accounts.go

... // // The go-ethereum library is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // The go-ethere...

文章 以太坊智能合约安全建议和最佳实践

...loom-network/how-to-secure-your-smart-contracts-6-solidity-vulnerabilities-and-how-to-avoid-them-part-2-730db0aa4834 1. 链接中的第 4 点:使用合约地址调用 selfdestruct,会将以太币发送到该地址,而无需调用合约 fallback 函数,因此永远不要基于余额做出...

文章 Eth2进展更新(截至2020/10/31)

...行优化和开发,目标也在不断地变化。 * [Proper Proposers and Skipped Slots: A Ranking and Segmentation Study of Validator Behavior](https://crypto.omnianalytics.io/2020/10/20/what-makes-a-top-tier-validator) (对验证者行为的排名和分类研究) * [Eth2 Medalla – a data d...

文章 如何在Polygon zkEVM上创建和部署智能合约 - Quicknode

...m/signup?utm_source=internal&utm_campaign=guides&utm_content=how-to-create-and-deploy-smart-contract-on-polygon-zkevm)获取访问权限) **你将要做的事情** - 了解 Polygon zkEVM - 在 Remix.IDE 上创建并部署一个 Coin Flip 智能合约 - 与已部署的智能合约进行交互 ##...

文章 Rust 实战:构建实用的 CLI 工具 HTTPie

...] name = "httpie" version = "0.1.0" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] anyhow = "1.0.71" # 错误处理 clap = { version = "4.3.9", features = ["derive"] } c...

文章 Electra:发行曲线调整提案 - EIPs / EIPs核心

...g-economics-a-case-for-targeting/18751)的文章。 * * * **非常感谢 Anders、Barnabé、Francesco、Mike 和 Dom 的反馈和讨论。** 评论 ≠ 支持。此帖表达了作者的观点,审阅者可能不同意。 这里展示的工作基于 Anders 提出的发行曲线,链接如下...

文章 使用Solidity和Hardhat构建的时间锁定收益金库

...拟代币遵循 [ERC-20 标准](https://ethereum.org/en/developers/docs/standards/tokens/erc-20/),并且包括所有权控制,因此我们可以在开发期间铸造和管理供应。 这是代码: ``` // SPDX-License-Identifier: MIT pragma solidity ^0.8.28; import "@openzeppelin/contracts/...

文章 SharkTeam:美国众议院FIT21法案解读

...6 票反对的结果正式通过 FIT21 加密法案(Financial Innovation and Technology for the 21st Century Act)。美国总统拜登宣布,他不会否决该法案,并呼吁国会就“数字资产全面、平衡的监管框架”进行合作。 FIT21旨在为区块链项目在美国的...

文章 sui coin 的一些概念和实践

... 关联的 ```cpp /// A coin of type `T` worth `value`. Transferable and storable public struct Coin has key, store { id: UID, balance: Balance, } /// Each Coin type T created through `create_currency` function will have a /// unique instance of CoinMetadata that stores the met...

文章 比特币和闪电节点端口转发常见问题

...Pierre Rochard_ > > _来源: [https://pierre-rochard.medium.com/bitcoin-and-lightning-nodes-port-forwarding-faq-f92ca5c50d5d](https://pierre-rochard.medium.com/bitcoin-and-lightning-nodes-port-forwarding-faq-f92ca5c50d5d)_ 我经常听到人们表示对端口转发(port forwarding)的疑问...