找到约 14 条结果

文章 以太坊生态中的智能合约设计模式(一)

> **Abstract—** The idea to digitally facilitate contract law and business practices through computer programs has led to the notion of smart contracts. Today’s most prominent smart contract ecosystem is Ethereum, a blockchain based distributed computing platform. Due to the inherent nature of b...

文章 Web3系列教程之新手篇---Level 6:Solidity

本文是[learnweb3](https://www.learnweb3.io/)的新手篇,包括: - [Level 0:前置基础编程知识](https://learnblockchain.cn/article/4284) - [Level 1:什么是区块链?](https://learnblockchain.cn/article/4285) - [Level 2:什么是Web3?](https://learnblockchain.cn/article/...

文章 零知识证明 - DIZK介绍

...人的角度来说,还是有点惊喜,DIZK利用分布式数据处理Apache Spark平台,实现了zk-SNARK证明系统。 DIZK论文是Howard Wu等在2018年发表。论文的下载地址如下: https://eprint.iacr.org/2018/691.pdf DIZK,Distributed Zero Knowledge,分布式的零...

文章 将 NFT 向 Layer 2 迁移,如何让它们友好地跨 Rollup?

> Vitalik Buterin 提出一种使 NFT 跨 Rollup 友好的提案,允许 NFT 迁移到整个 Layer 2 生态系统。 **原文标题:《[NFT 向 Layer2 过渡?V 神提出在 Layer2 生态转移 NFT 的跨 Rollup NFT 封装和迁移思路](https://ethresear.ch/t/cross-Rollup-nft-wrapper-and-mi...

问题 OP_HASH160 为啥验证不通过

...构造一个p2sh的交易,已知redemScript是 ```shell 522103e7b410a4a758f95661e388b4f8ec9c2de23288a69b5e714a8f3429a664f7195d210346331617bfae522037b586aa28cb965af1178b4950b96a62789e3f02bfdad86c52ae, ``` 使用go的仓库 ```go hex.EncodeToString(btcutil.Hash160(redemScript) // 返回 34...

文章 以太坊101:账户,交易和消息

...坊中,存在两种不同类型的账户:外部拥有账户(简称EOA)和合约账户。 外部拥有账户由对应的私钥控制,而合约账户则由对应的合约EVM字节码控制,这部分内容接下来会有相关介绍。 地址(提示:请勿给以下地址转...

文章 JavaScript精粹:26个关键字深度解析,编写高质量代码的秘诀!

> JavaScript关键字是一种特殊的标识符,它们在语言中有固定的含义,不能用作变量名或函数名。这些关键字是JavaScript的基础,理解它们是掌握JavaScript的关键。 今天,我们将一起探索JavaScript中的26个关键字,了解这些关键字各...

文章 快速上手 Web3:用 @solana/kit 在 Solana 上创建钱包并查询余额

# 快速上手 Web3:用 @solana/kit 在 Solana 上创建钱包并查询余额 Web3 的浪潮正在席卷全球,Solana 作为高性能区块链的代表,以其低延迟和高吞吐量成为开发者构建去中心化应用(DApp)的首选平台。本文通过一个简单实用的项目,...

文章 OpenZeppelin 7个最常使用的合约

... 0.5.x编译器编译。 ## 访问控制合约 ### 1. 使用 Ownable 进行所有者限制 OpenZeppelin 的 `Ownable `合约提供的`onlyOwner` [修饰器](https://learnblockchain.cn/docs/solidity/structure-of-a-contract.html#modifier)是用来限制某些特定合约函数的访问...

文章 Web3系列教程之进阶篇---8. IPFS实战

...候开发自己的 NFT 集合并将其元数据存储在[ IPFS ](https://learnblockchain.cn/2018/12/12/what-is-ipfs)上 ![](https://hicoldcat.oss-cn-hangzhou.aliyuncs.com/img/20220724201831.png) ## 要求 - 应该只存在 10 个 LearnWeb3 Punk NFT,并且每个都应该是唯一的。 - ...

文章 SUI Move官方示例合约实践——DeFi类:闪电贷(flash_lender)

# SUI Move官方示例合约实践——DeFi类:闪电贷(flash_lender) ## 1 合约说明 ### 1.1 示例代码 > 本文合约代码示例来自:https://github.com/MystenLabs/sui/blob/main/sui_programmability/examples/defi/sources/flash_lender.move ```rust // Copyright (c) Mysten...

文章 Solidity 如何实现质押和奖励合约

> * 原文链接: https://hackernoon.com/how-to-implement-a-stake-and-reward-contract-in-solidity > * 译文出自:[登链翻译计划](https://github.com/lbc-team/Pioneer) > * 译者:[翻译小组](https://learnblockchain.cn/people/412) 校对:[Tiny 熊](https://learnblockchain.cn/people...

文章 2024-07-28 zk-insights Weekly

## Highlights ### Exploring circle STARKs Latest blog post by VitalikButerin covers Circle STARKs: how they can be implemented, how they're pushing STARK efficiency to the limit, and what’s next (optimizing for better UX and parallelization). - - 中文翻译: ### AI achieves silver-medal stand...