找到约 15 条结果

文章 GitHub - RareSkills/零知识谜题

.../zero-knowledge-puzzles#rust) Circom compiler requires rust . For MacOs and Linux users, ``` curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh ``` ### Circom compiler [](https://github.com/RareSkills/zero-knowledge-puzzles#circom-compiler) Clone the circom repository ...

文章 Uniswap V4 兑换功能解析:深入闪电会计与执行代码

...swap V4](https://www.cyfrin.io/blog/uniswap-v4-vs-v3-architectural-changes-and-technical-innovations-with-code-examples),以更好地理解其兑换执行。为了加深我的理解,我分析了驱动兑换的代码,专注于在 V4 中引入的新“闪电会计”模型:如何使用瞬时...

文章 Proof Of Space算法解析

...ed values computed from previous table ys: Vec, /// Left and right entry positions in a previous table encoded into bits positions: Vec, /// Metadata corresponding to each entry metadatas: Vec, }, } ``` Y,X是u32类型,Position也是u32类型...

文章 Web3 新体验:Blink 一键解锁 Monad 未来

...-next npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. npm warn deprecated @humanwhocodes/config-array...

文章 详解 Starknet

...线是 [STARK curve](https://docs.starknet.io/documentation/architecture_and_concepts/Cryptography/stark-curve/)。Starknet 的智能合约编程语言是 [Cairo](https://docs.cairo-lang.org/index.html) 。 #### 1.1. 安装 Command Line(starkli) [starkli](https://github.com/xJonathanLEI/st...

文章 全球案例研究:公共部门的区块链倡议

...一项案例研究](https://consensys.io/blockchain-use-cases/government-and-the-public-sector),格鲁吉亚共和国国家公共登记局于 2016 年实施了世界上第一个基于区块链的土地登记系统,从而加快了登记流程并提供了安全透明的所有权证明。 ## 房...

文章 与独裁者共处:变形密码学

.../robust-anamorphic-encryption/blob/main/elgamal.py)}:\ \ ```python import random from Crypto.Cipher import AES from Crypto.Random import get_random_bytes class PublicParams: def __init__(self, p, q, g): self.p = p self.q = q self.g = g class AnamParams: def __init__...

文章 如何应对 npm 依赖供应链攻击的风险

...png) [最新的 npm 泄露事件](https://www.aikido.dev/blog/npm-debug-and-chalk-packages-compromised)表明,依赖供应链深处的一个微小变化如何重写用户所见、签名和发送的内容。 ## 一个警钟 在 **2025 年 9 月 8 日**,攻击者通过网络钓鱼攻击...

文章 node.js 爬取合约事件

... let intrologSelectIndexSql = 'select * from introlog where rewordIndex=? and intro=?' let updateSelectIndexSql = 'update introlog set haveTake=? where rewordIndex=? and intro=?' class EthModel { constructor () { this.initWeb3() } async initWeb3 () { this.abi = JSON.parse((fs.r...

文章 Web3系列教程之入门篇---6. Solidity高级指南

...atch?v=ILY3fIbwjk0) ## 索引 - Mappings - Enums - Structs - View and Pure Functions - Function Modifiers - Events - Constructors - Inheritance - Transferring ETH - Calling external contracts - Import statements - Solidity Libraries ## Mappings Soliity 中的映射与其他编...

文章 零知识证明 Learn by Coding:libsnark 入门篇

...文。如以下最著名的数篇: - [GGPR13] Quadratic span programs and succinct NIZKs without PCPs , Rosario Gennaro, Craig Gentry, Bryan Parno, Mariana Raykova, EUROCRYPT 2013 - [PGHR13] Pinocchio: Nearly Practical Verifiable Computation , Bryan Parno, Craig Gentry, Jon Howell, Mariana Ray...

文章 每周以太坊进展 2020/10/18

...ps.ethereum.org/EIPS/eip-3045):Adds `baseFee` to `eth_getUncleByBlockHashAndIndex` * [EIP3046](https://eips.ethereum.org/EIPS/eip-3046):Adds `baseFee` to `eth_getUncleByBlockNumberAndIndex` * [ERC3000](https://github.com/izqui/EIPs/blob/649e23b5a50c7eb1c7c2a10d4fe98a0b6954c0bb/EIPS/eip-3000.md...

文章 接入Chainlink价格数据开发DeFi流动性挖矿dApp实例

...dApp内支持的[ERC20通证](https://www.investopedia.com/news/what-erc20-and-what-does-it-mean-ethereum/),并自动向流动性提供方发放治理型通证作为奖励。本文中的流动性挖矿通证是一个简单的ERC20智能合约,不存在投票功能,因此除了本示例以外...

文章 科普: 零知识证明, SNARK与STARK 及使用场景

...S)](https://ethereum.org/en/developers/docs/scaling/zk-rollups/#zk-rollups-and-ethereum)来实现的,这是一个公共参数,双方都用来创建/验证证明。 但是,创建CRS有一个缺点:必须有人来做这件事!这就引入了安全风险!这引入了安全风险,...

文章 智能合约开发者的Chainlink使用秘籍

...hainlink可以为你接入任何[API](https://docs.chain.link/docs/request-and-receive-data)。无论是体育比赛结果、天气预报、航班时间或任何其他的数据,Chainlink可以将你的智能合约接入任何所需的API接口,并将合约结果输出到任何链下系统。现...