找到约 15 条结果

文章 深入探讨 Go 语言中的自定义 Zap 日志

# 深入探讨 Go 语言中的自定义 Zap 日志 [zap 日志](https://github.com/uber-go/zap): zap 包提供快速、结构化、分级的日志记录。 ## 一、日志写入文件 - `zap.NewProduction`、`zap.NewDevelopment` 是预设配置好的。 - `zap.New` 可自定义配置 ...

文章 探索以太坊合约委托调用(DelegateCall)

> * 原文:https://medium.com/coinmonks/delegatecall-calling-another-contract-function-in-solidity-b579f804178c , 作者:[zerofruit](https://zerofruit.medium.com) > * 译文出自:[登链翻译计划](https://github.com/lbc-team/Pioneer) > * 译者:[翻译小组](https://learnblockchain....

文章 (八)Move语言的函数

...出的映射。其基本结构如下: ```move public fun function_name(param1: Type1, param2: Type2): ReturnType { // 函数体 } ``` - `public`:访问修饰符,决定函数是否可被外部调用。 - 参数:每个参数都需要显式声明类型,Move 不支持隐式类...

文章 CTFProtocol-2022 题解

***由简入难*** ### The Lost Kitty #### 1. question > Lucas is a scientist who lives with his cat in a big house that has 2^256 rooms. His cat likes to play hide and seek and jumps to a random room whenever it hears a door opening in another one. Can you find Lucas' cat? Set the variable...

文章 Remix v0.40.0 更新日志

![image.png](https://img.learnblockchain.cn/attachments/2024/01/ykCWTkqm65a7280882f47.png) # 重要消息 * 全新的 Vyper 编译器,支持最新版本! * 支持 Circom v2.1.6 * 新增 Uniswap v4 模板 # Remix 全新的 Vyper 编译器 Remix 与 ApeWorX 合作推出了全新的 Vyp...

文章 解读Stable++:RGB++ Layer首个稳定币协议正式启航

... ![](https://img.learnblockchain.cn/attachments/2024/09/k1IGLno566d70631a3ac5.jpg) **(CDP点对池借贷示意图)** **而DAI的价格锚定机制依赖于“Keeper”。** 我们可以简单地把DAI的总数视为恒定的,且由两部分组成:MakerDAO资金池中的DAI、...

文章 Paradigm CTF-LOCKBOX

# Paradigm CTF-LOCKBOX 这是Paradigm CTF的一道题,整体来说难度不算特别大,与之前的STATIC CALL难度相似。:laughing:这道题考察的知识点比较多,涉及到ABI编码,EIP-712等。可以看作是一个编码相关的大集合题目。 同样本文的参考连...

文章 姚期智 - 姚氏百万富翁

![](https://img.learnblockchain.cn/2025/04/27/1lhCXsqP8lSK_J2qNIW2QJA.png) ## 姚期智 当我读到更多关于姚期智的信息时,我不得不笑了…… > “他要求他们使用 LaTeX 编写练习,这是一种专门为撰写论文而设计的软件包。” 我之所以笑,...

文章 SharkTeam:AzukiDAO攻击事件分析

7月3日,AzukiDAO遭到攻击,攻击者获利约6.9万美元。 ![image.png](https://img.learnblockchain.cn/attachments/2023/07/G6zez5ul64a68bd74e62f.png) SharkTeam对此事件第一时间进行了技术分析,并总结了安全防范手段,希望后续项目可以引以为戒,共...

文章 排错:compiled against a different Node version

... ```txt Error: The module '.../node_modules/better-sqlite3/build/Release/better_sqlite3.node' was compiled against a different Node.js version using NODE_MODULE_VERSION 83. This version of Node.js requires NODE_MODULE_VERSION 93. Please try re-compiling or re-installing the module (f...

文章 Web3系列教程之入门篇---8. Dapp白名单

...的白名单,所以在这里你要为`Crypto Devs`创建一个白名单dapp ![](https://hicoldcat.oss-cn-hangzhou.aliyuncs.com/img/20220710135551.png) ## 要求 - 白名单访问应该免费提供给想要进入的前10个用户。 - 应该有一个网站,人们可以去那里进入白...

文章 调用,预编译和编译器到底是怎么工作的

--- title: A call, a precompile and a compiler walk into a bar(调用,预编译和编译器到底是怎么工作的) author URL: "" original URL: https://blog.theredguild.org/a-call-a-precompile-and-a-compiler-walk-into-a-bar/ translator: "张云帆" reviewer: "" --- 写于2024...

文章 突破区块链不可能三角(终)——分片(下)

...,因为自上而下的思路是: ![](https://pic1.zhimg.com/80/v2-04a3ce764a4dbc6b35659399a8bb9fa8_720w.jpg)自上而下的思路是沿袭自传统中心化系统的:原本,这个系统是xx宝,现在这个系统是某条链,有了分片之后,这个系统是某个分片的链,而...

文章 盲签名与匿名集

> *作者:Cashu Developer* > > *来源:* ![buckets-of-cashu-nuts](https://www.btcstudy.org/images/buckets-of-blind-signatures/buckets-of-cashu-nuts.jpg) \- Cashu 坚果全家桶 - Chaumian ecash 的一个标志性的特征是其钱币的取款(发行)与存款(赎回)是...

问题 通过前端向IPFS添加内容时出现ipfs.add is not a function

这是项目中与ipfs相关的代码 ``` var ipfs = require('ipfs-http-client'); function saveImageOnIpfs(reader) { return new Promise((resolve, reject)=> { let buffer = Buffer.from(reader.result); ipfs.add(buffer).then(res=> { console.log("res: ", res); resolve(res[0].hash...