找到约 14 条结果

文章 在 Solidity 智能合约中调用 Chainlink 预言机获取外部数据及生成随机数

...Remix`来部署 ![image.png](https://img.learnblockchain.cn/attachments/2023/12/kbQ5CqFN65829ee3a2943.png) 首先在`MetaMask`钱包中添加`Sepolia`网络,然后在`Remix`部署界面选择使用`MetaMask`钱包部署,最后点击`Deploy`按钮部署。 ![image.png](https://img.learnb...

文章 如何审计Solana智能合约 第四部分:Anchor框架

...GELOG.md)中找到它们的列表。 ![](https://img.learnblockchain.cn/2025/03/30/8ca5dcf0001f893fa7c37_1Zws5ID0ZeUpX6DgYszGXSA.png) 图 1. [#\[program\] 宏在 basic-2 中的应用](https://github.com/project-serum/anchor/blob/master/examples/tutorial/basic-2/programs/basic-2/src/lib.rs#L5) ...

文章 将你的想法转化为 Solana 程序(智能合约)

![灯泡和电路板](https://img.learnblockchain.cn/2025/03/12/34312878_image.jpg) 让我们设计一个 Solana 程序。Solana 生态系统提供了大量关于理解 [Solana 编程模型](https://learnblockchain.cn/article/7391) 和创建小型演示程序的文章,这些对初学者...

文章 EIP-6110:修复信标链技术债务

...动。例如,如果买方用 DAI 付一杯咖啡,我们可以在 DAI ERC-20 代币合约上调用 `eth_getLogs` 来确认买方的付款,然后再处理订单。 日志有一个主题和数据字段:日志主题是描述事件内部工作原理的 32 字节字;EVM(以太坊虚拟机)...

文章 可执行信标链

...: ```Powershell class ExecutableData(Container): coinbase: bytes20 # Eth1 address that collects txs fees state_root: bytes32 gas_limit: uint64 gas_used: uint64 transactions: [Transaction, MAX_TRANSACTIONS] receipts_root: bytes32 logs_bloom: ByteList[LOGS_BLO...

文章 零知识证明 - 说说Nova

...可以帮助理解Nova算法: 1. Nova论文:https://eprint.iacr.org/2021/370.pdf 2. Nova潜在攻击和相应修正:https://eprint.iacr.org/2023/969.pdf 2. Nova潜在攻击的理解总结:https://www.zksecurity.xyz/blog/posts/nova-attack/ 本文是上述...

文章 管理 Defi 财库的新思维模式

...u & monetsupply ![image.png](https://img.learnblockchain.cn/attachments/2021/11/yZbgaSEG618e45577d753.png) COMP 的流动性挖矿在 2020 年夏季开启了 Defi 牛市,这使得很多 Defi 协议变成收入快速增长的怪物。你会认为这使它们处于非常舒适的财务状...

文章 [Reach教程翻译] 2.8 玩家交互、自主运行游戏

...o create an account? (only possible on devnet)`, 18 yesno 19 ); 20 if (createAcc) { 21 acc = await stdlib.newTestAccount(stdlib.parseCurrency(1000)); 22 } else { 23 const secret = await ask( 24 `What is your account secret?`, 25 (x => x) 26 ); 27 ...

文章 Solidity 0.8.26 发布

>- 原文链接:https://soliditylang.org/blog/2024/05/21/solidity-0.8.26-release-announcement >- 译者:[AI翻译官](https://learnblockchain.cn/people/19584) >- 本文永久链接:[learnblockchain.cn/article…](https://learnblockchain.cn/article/8173) 我们(Solidity Team)很高...

文章 Next.js手把手系列:01、初始篇 | Next.js CLI

...了。(想学习 TypeScript 的同学可以看官方文档) ![Xnip2024-07-13_17-18-58.png](https://img.learnblockchain.cn/attachments/2024/07/ubi8w8CQ669276f4d8495.png) 完成选择之后,`create-next-app` 会自动创建项目文件并安装依赖,创建安装完的项目目录和...

文章 创建有用的方法来监控和可视化门户网络的健康状况

...提高了用户满意度,而不是像今天某些页面那样需要8到20秒的加载时间 - 主页不再是空白的,而是充满了有见地的图表,可以快速了解网络的性能/健康状况。(目前计划的图表可以在规范部分中看到。) - 添加测试以防止bug再...

文章 《Effective Rust》第 5 条:理解类型转换

...277]: the trait bound `u16: From` is not satisfied --> src/main.rs:136:20 | 136 | let y: u16 = x.into(); | ^^^^ the trait `From` is not implemented for `u16` | = help: the following other types implement trait `From`: ...

文章 Fast HotStuff 理解和思考

...。如下图。 ![image.png](https://img.learnblockchain.cn/attachments/2024/07/rGO80Ev1669e35a0e20e2.png) 新提案 View4 本应该从 View3 之后出块,但恶意节点可以选择从 View1 (最新 Locked 视图)之后出块而且能顺利通过验证。这种攻击行为不会对系...

文章 Arcium:Solana的隐私2.0

...m 的开发者框架。 ![Arcium 架构](https://img.learnblockchain.cn/2025/03/14/73144315_image.png) ### Arcis Arcis是一个以Rust为中心的框架,用于在Arcium网络上开发安全的多方计算(MPC)电路,从而在加密数据上实现隐私保护计算。Arcis提供强...