找到约 15 条结果

问题 aptos 如何调用其他合约模块?

... ```js script { use std::debug; use 0x190d44266241744264b964a37b8f09863167a12d3e70cda39376cfb4e3561e12::scripts; const ONE: u64 = 1; fun debug_script(x:u64 , y:bool ,addr:address) { let sum = x + ONE; debug::print(&sum); debug::print(&y); ...

问题 钱包A调用合约B,合约B调用C,如何安全的在C合约内做来源权限判断?

钱包A调用合约B,合约B调用C,如何安全的在C合约内做来源权限判断? 1,是C msg.sender授权给B合约 ,B 设置msg.sender为A,但是可能有其他钱包操作B的风险? 2,C直接判断源头来源是A,这样会有其他风险么?

问题 Zokrates零知识如何证明

求助Zokrates相关问题,小白不懂,有没有大佬? ## 代码 我有以下代码,这个代码主要用来判断输入的a是否大于b,如果a大于b则输出1,否则输出0 ```zok def main(private field a, private field b) -> field { return if a > b { 1 }...

问题 contract.methods.balanceOf is not a function

contract.methods.balanceOf is not a function contract.methods.name is not a function ... 一直不能用里面所有的函数 ![image.png](https://img.learnblockchain.cn/attachments/2024/04/D41UGWlk660e27822e93e.png) 出现错误 ![image.png](https://img.learnblockchain.cn/attachments/...

文章 Solidity与EVM:汇编(YUL)中的位移与掩码操作

...开发者/研究者,请直接跳到文章第2点! ![](https://img.learnblockchain.cn/2025/02/20/40778523_image.jpg) 照片由 [Markus Spiske](https://unsplash.com/@markusspiske?utm_source=medium&utm_medium=referral) 在 [Unsplash](https://unsplash.com/?utm_source=medium&utm_medium=referral) ...

文章 比特币交易过程

...)只能用对应的公钥解密(一般叫做验签)。 当用户A向用户B发起一笔交易,A会做如下几个事情: 1. 将交易数据TX和B的公钥做一个哈希计算,得到哈希值V `V=hash(TX+B.publickey)` 2. A用私钥对V进行签名 `sig=signature(V+A.privatekey)`...

文章 Windows搭建以太坊私有链

...及初始化区块的配置文件。 下载地址 链接:[https://pan.baidu.com/s/1htSgiUC](https://link.zhihu.com/?target=https%3A//pan.baidu.com/s/1htSgiUC) 密码:ph8o windows搭建以太坊的私有区块链 一、下载和安装: 1、下载 ​ 2、安装:比如安装...

文章 Solidity 调用其他合约

...的。 让我们来看一个简单的示例。 ```solidity contract ExampleContract { function askTheMeaningOfLife(address source) public returns (uint256) { (bool ok, bytes memory result) = source.call( abi.encodeWithSignature("meaningOf...

文章 比特币 - Schnorr魔法 - T-Bast

## Schnorr 的魔法 比特币在 Taproot 更新中增加了对 Schnorr 签名的支持,该更新在区块 709 632 处激活。 在本文中,我们将深入探讨它的工作原理以及它解锁的一些高级方案。 ### 目录 * [Schnorr 签名](#schnorr-signatures) * [Schnorr 签名的...

文章 在Safe{Wallet}上推出风险评估

![](https://img.learnblockchain.cn/2025/09/04/11030922_image.png) 使用新的 Safe{Wallet} 交易风险扫描器重新定义安全性 Safe 我们的博客上线了!在[Safe博客](http://safe.global/blog)上阅读这篇文章。 我们很高兴为你带来一个关于你的交易安全性的...

文章 使用Solidity中的库(Libraries)实现代码重用:深入分析与实践

...我们要聊一个在Solidity开发中超级实用的话题——库(Libraries)。如果你写过智能合约,肯定遇到过代码重复的问题,比如同一个数学计算逻辑在多个合约里反复出现,或者一堆工具函数占满了合约代码。Solidity的库就是为解决...

文章 现代DeFi 借贷协议 :Curve LlamaLend 是如何构建的

![](https://img.learnblockchain.cn/2025/03/09/Blog-mixbytes-1.jpg) ## 介绍 这系列文章中的下一个借贷协议是 Curve LlamaLend。这是一个非常有趣的借贷协议,围绕 CrvUSD 稳定币构建,并使用其核心组件:一个 AMM。CrvUSD 的特点包括一个引人入...

文章 2024-08-11 zk-insights Weekly

## Highlights ### SBC'24 Live Presentations A live stream for the Science of Blockchain Conference (SBC) 2024 presentations taking place August 7-9 at Columbia University - ### 0xPARC: Programmable Cryptography (Part 1) Cryptography is undergoing a generational transition, from special-purpos...

文章 2021年头部区块链开发框架总结

原文链接:[https://medium.com/better-programming/the-top-blockchain-developer-frameworks-for-2021-89afa5e7bd04](https://medium.com/better-programming/the-top-blockchain-developer-frameworks-for-2021-89afa5e7bd04) 原文标题:_The Top Blockchain Developer Frameworks for 2021_ _原文作者...

文章 本周加密货币市场回顾(06/15/25)

...的情况下。 ![](https://img.learnblockchain.cn/2025/06/25/1ebcefe5-d0a3-4fa2-93c4-a0ac25db9486_1920x1080.png) ## **BTC 市场** * * * ### **Bitcoin 市场的现状** - 本周比特币略有下降,下跌 0.71%,目前价格为 105,556 美元。 - BTC 占比增加了 0.21%,现在占加...