找到约 13 条结果

问题 在网上抄的代码,在部署时提示Gas estimation errored with the following message (see below). The transaction execution will likely fail. Do you want to force sending? Internal JSON-RPC error. { "code": -32000, "message": "execution reverted" }

``` /** *Submitted for verification at BscScan.com on 2021-05-22 */ pragma solidity ^0.6.12; // SPDX-License-Identifier: Unlicensed interface IERC20 { function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ functio...

文章 Michael.W基于Foundry精读Openzeppelin第57期——ReentrancyGuard.sol

...版本 [openzeppelin]:v4.8.3,[forge-std]:v1.5.6 #### 0.1 ReentrancyGuard.sol Github: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.8.3/contracts/security/ReentrancyGuard.sol ReentrancyGuard库是一个用来防御函数重入的工具库。函数被修饰器`nonRee...

文章 尝试用 Halo2 实现 Tornado Cash

>- 原文链接:https://dev.to/teddav/tornado-cash-with-halo2-62b >- 译文出自:[登链翻译计划](https://github.com/lbc-team/Pioneer) >- 译者:[翻译小组](https://learnblockchain.cn/people/412) ,校对:[Tiny 熊](https://learnblockchain.cn/people/15) >- 本文永久链接:[l...

文章 (四)Let's Move共学,浅分析一下coin库

... 首先感谢Let's Move共学,感谢HOH社区 ![8b84cc26a04f2077f2209b67997fe39.png](https://img.learnblockchain.cn/attachments/2024/11/w9gWhIi8672b136f90edc.png)\ 我会把详细的过程和注意的点都写上,适合和我一样的小白开始学习move ...

文章 零知识证明 - DIZK源代码导读

...理解了DIZK的基本原理后:[零知识证明 - DIZK介绍](https://learnblockchain.cn/article/574)。 对DIZK感兴趣的小伙伴可以看看DIZK的源代码: https://github.com/scipr-lab/dizk DIZK的更新比较少,最后一个patch也是2018年底了: ``` commit 81d72a340...

文章 Go 语言之在 Gin 框架中使用 Zap 实现高效日志管理

# Go 语言之在 Gin 框架中使用 Zap 实现高效日志管理 在现代 Web 开发中,日志管理是确保应用程序性能、稳定性和可维护性的关键因素之一。Gin 作为轻量级的 Go Web 框架,自带了简单的日志功能。然而,对于追求高性能和灵活性...

文章 2024-10-20 zk-insights Weekly

## Highlights ### The Sum-Check Protocol w/ Justin Thaler In this module, Tracy Livengood and Justin Thaler provide a comprehensive introduction to the sum-check protocol and why it is so powerful, beginning with a catch-up on polynomials (univariate, multivariate, multilinear) as well as the import...

文章 常数乘积自动化做市商:你需要了解的一切

![](https://img.learnblockchain.cn/2025/03/15/1hLafEMIeAUPJGHqZHT5Ahg.png) **自动化市场制造商 (AMM)** 在去中心化金融 (DeFi) 领域中发挥着关键作用,促进流动性提供和交易。该领域的一个关键概念是 **恒定乘积 AMM**,它支撑着流行的去中心化...

文章 SUI Move官方示例合约实践——FT类:资产金库锁(treasury_lock)

# SUI Move官方示例合约实践——FT类:资产金库锁(treasury_lock) ## 1 合约说明 ### 1.1 功能介绍 - 本合约是一个资产金库锁合约,它封装并锁定了资产的`TreasuryCap`,让白名单用户(拥有`MintCap`)在每个世代(`epoch`)都能铸造...

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

```go // Copyright 2017 The go-ethereum Authors // This file is part of the go-ethereum library. // // 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, ...

文章 [镜像] 探索椭圆曲线配对技术

# [镜像] 探索椭圆曲线配对 _这是对在[https://medium.com/@VitalikButerin/exploring-elliptic-curve-pairings-c73c1864e627](https://learnblockchain.cn/article/10972)的帖子进行的镜像._ **触发警告:数学。** 各种构造背后的关键密码学原语之一,包括确定性...

文章 starknet智能合约编写、部署和调用-基于cairo2.3.0

# 前言 OpenZeppelin、Hadhat 和 Foundry都在支持和更新starknet,这是积极信号,尽快学起来 starknet智能合约使用cairo语言编写,最近刚刚更新2.3.0 cairo编程语言类rust,建议搭配学,或者先学rust更好理解 ***rust编程语言会在未来几年快...

文章 DeFi 攻击事件学习

... | 代码 | txhash | | ------------------- | ------------------ | ------------------------------ | -------------- | ------------------------------------------------------------ | ------...