找到约 14 条结果

文章 访问控制 - OpenZeppelin文档

...tract deployer the default admin role: it will be able // to grant and revoke any roles // 授予合约部署者默认的管理角色:它将能够授予和撤销任何角色 _grantRole(DEFAULT_ADMIN_ROLE, msg.sender); } function mint(address to, uint256 amount) pub...

文章 深入理解Rust中的内存管理:栈、堆与静态内存详解

...use graphics::math::{add, mul_scalar, Vec2d}; use piston_window::*; use rand::prelude::*; use std::alloc::{GlobalAlloc, Layout, System}; use std::time::Instant; use std::cell::Cell; #[global_allocator] static ALLOCATOR: ReportingAllocator = ReportingAllocator; struct ReportingAllocator...

文章 以太坊侧链与Layer 2:有什么区别?

...he Right RaaS Partner\\ \\ Explore the industry’s leading RaaS providers and factors to consider when choosing a RaaS.](https://www.alchemy.com/overviews/compare-raas-providers) [![Featured content card overlay](https://img.learnblockchain.cn/2025/04/16/card-overlay.svg)\\ \\ Layer 2\\ \\ What is ...

文章 Solidity调用图:构建、遍历和分析代码

...我们探讨几个练习。 #### 练习 1 ```javascript contract Grandparent { function myFunc() public virtual {} } contract Parent1 is Grandparent { function p1() public { myFunc(); } } contract Parent2 is Grandparent { function p2() public { my...

文章 NFT生态系统的快速概述

... 一个购买和销售《神之未封》、Cryptovoxels和Crypto Space Commander NFT的市场。 **艺术市场** - [SuperRare](https://superrare.co/) \- 最古老和最 dominant 的NFT艺术市场之一。艺术家必须申请才能开始在SuperRare上销售,并且有很长的等待名单...

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

...rials.gitbook.io/zokyo-tutorials/tutorial-16-zero-knowledge-zk/definitions-and-essentials/incremental-merkle-tree?ref=ghost-2077.arvensis.systems)的 Merkle 树结构中存储与存款相关的信息。增量 Merkle 树表现得像一个常规的 Merkle 树([Verkle Trees For The Rest Of Us](https:...

文章 如何创建和使用ERC-721代币?

...son { "name": "Buzz", "description": "Paper collage, using salvaged and original watercolour papers", "image": "https://ipfs.infura.io/ipfs/QmWc6YHE815F8kExchG9kd2uSsv7ZF1iQNn23bt5iKC6K3/image" } ``` ### 3. 枚举(可选) 另一个额外的可选接口是枚举, 它包含了...

文章 以太坊:签名与验证

...um ``` //... const SignVerifyArtifact = require('./contracts/SignAndVerifyExample') const SignVerify = contract(SignVerifyArtifact) SignVerify.setProvider(provider) //... SignVerify .deployed() .then(instance => { let fixed_msg = `\\x19Ethereum Signed Message:\\n${msg....

文章 彻底读懂零知识证明及其实现方法:解析zk-SNARK

...metic-programs-from-zero-to-hero-f6d558cea649 3. Maksym Petkus;《Why and How zk-SNARK Works: Definitive Explanation》,https://arxiv.org/pdf/1906.07221.pdf; 中文版本:[从零开始学习 zk-SNARK(一)——多项式的性质与证明](https://learnblockchain.cn/article/287),...

文章 如何从零开始搭建一个Truffle框架的DAPP应用

...wnloading... Unpacking... Setting up... Unbox successful. Sweet! Commands: Compile: truffle compile Migrate: truffle migrate Test contracts: truffle test Run dev server: npm run dev duncanwang@ubuntu:~/work/name-age$ ``` ### 3.2 创建智能合约代码 ...

文章 MyBatis-Plus快速入门指南:零基础学习也能轻松上手

..., 20, 'test2@baomidou.com'), (3, 'Tom', 28, 'test3@baomidou.com'), (4, 'Sandy', 21, 'test4@baomidou.com'), (5, 'Billie', 24, 'test5@baomidou.com'); ``` **3. 创建SpringBoot工程** 1)初始化工程 2)导入依赖 ``` org.springframework.boot spring-b...

文章 Web3开发智能合约安全检查清单

...用和[可组合性](https://future.com/how-composability-unlocks-crypto-and-everything-else/)!请务必在代码库中记录你的合约依赖项及其版本,并尽可能减少你的代码足迹;例如,导入大型项目的特定子模块,而不是所有内容。了解你的风险敞口...

文章 关于激进市场

...](https://cointelegraph.com/news/marketplace-aims-to-resell-personal-data-and-create-passive-income-stream-for-users) [个人](https://datum.org/) [数据](https://blog.enigma.co/the-enigma-data-marketplace-is-live-84a269ec17fb)。 第二,区块链可能作为书中所述一些解决方案的技...

文章 利用共享安全性实现安全的跨链互操作性:拉格朗日状态委员会及其他

...单](https://github.com/ethereum/research/wiki/A-note-on-data-availability-and-erasure-coding?ref=ghost-2077.arvensis.systems)和[纠删码](https://github.com/ethereum/research/wiki/A-note-on-data-availability-and-erasure-coding?ref=ghost-2077.arvensis.systems)。在所有情况下,密码学的...