What is Zero-Knowledge Proofs?

medium发布于2022-08-01更新于2022-08-01

文章摘要

If you have been around crypto long enough, you should by now have seen the word ZK plenty of times. But what really is it? Let us demystify it for you today.

If you have been around crypto long enough, you should by now have seen the word ZK plenty of times. But what really is it? Let us demystify it for you today.

ZKP — Zero Knowledge Proof

The most common interpretation of ZK is Zero Knowledge Proof. It is a cryptography concept where the Prover needs to convince the Verifier that he knows the answer to a question without revealing the actual answer.

Hmmm…. How is that possible?

Let us give you an ELI5 example.

Where is Wally?

Verifier is stuck in the following “Where is Wally” puzzle and seeks the Prover for help.

Source: https://www.independent.co.uk/arts-entertainment/books/news/where-s-the-brains-behind-wally-6261459.html

The Prover was able to find Wally but asked the Verifier for an incentive before revealing the answer. The Verifier does not want to give away the incentive now since he is not sure if the Prover is lying or not. So, the Prover decides to use a ZKP technique to show the Verifier he knows the answer without pointing out where Wally is to the Verifier.

The Prover asks the Verifier to turn around. He then takes a large piece of black cardboard with a small hole in the middle, which only shows Wally. Then he asks the Verifier to turn back.

From this, Verifier did not get Wally’s actual location, yet is now convinced the Prover has found Wally. Note, that the black cardboard must be so big that not even the approximate location of Wally can be estimated. Interesting technique, right?

If that wasn’t enough, let us give you another ELI13 example.

Sudoku

Imagine the Verifier has the following Sudoku and is unable to complete it:

But the Prover was able to work out the answer but does not want to share the exact solution with the Verifier (before he is paid at least):

Again, the Prover thought of a clever ZKP method to demonstrate to the Verifier he knows the answer without revealing the actual answer.

The Prover sets up the following automated function:

Step 1: The function comes up with a random mapping table, e.g.

1 -> 3

2 -> 4

3 -> 1

4 -> 2

Step 2: The function replaces the Prover’s Sudoku answer with the newly mapped number, e.g:

Step 3: The Verifier will ask to be shown a random row or column, e.g. row 2, then 4, 3, 1, 2 will be shown to the Verifier.

The Verifier sees the select subset meets the rule of Sudoku, hence it is likely the Prover did have the answer. He can request to repeat this randomized process enough times so he is fully convinced the Prover wasn’t bluffing him.

It is important during every repeat that a random new mapping table is used, so the Verifier cannot gain the full solution by requesting rows 1, 2, 3, and 4 and do the reverse mapping himself. Also, the process needs to be automated (just like how Smart Contracts are), so the Verifier can trust the process.

From these examples, we can see ZKP requires an intermediate process to mask the exact solution, which may not give 100% confidence to the Verifier immediately, but the probability can be increased as the process repeats.

Also, ZKP does not have a single solution for all cases; hence design and implementation of the proof in real life can be challenging.

As zero-knowledge is a deep topic, in the next blog we will dive into ZK’s usage in Ethereum. For example, scaling solutions utilize ZK to use only the most recent snapshots to produce new blocks on Layer 1 without having to store the whole history of the blockchain.

你可能也喜欢

产品发布:市场指南针

Glassnode推出全新工具“市场指南针”,旨在解决用户面对海量数据时难以抉择的问题。该工具通过七个维度综合分析市场:其中四个前瞻性维度(宏观环境、资金流动、投资者行为、链上基本面)汇合成一个从“风险规避”到“风险偏好”的主综合评分;另外三个独立维度(周期位置、衍生品、跨资产轮动)则描述当前市场状态。 目前主评分为14(满分100),处于“风险规避”区间,显示市场仍处熊市阶段。比特币价格约64,400美元,月内下跌16%。具体来看: * **宏观**:评分23,主要受美元走强拖累。 * **资金流动**:评分31,稳定币供应增长转负,市场“弹药”略有减少。 * **投资者行为**:评分35,长期持有者占比创新高,显示筹码正流向坚定持有者。 * **链上基本面**:评分38,网络活动有初步回暖迹象,但尚未全面复苏。 * **周期位置**:评分18,处于“投降”阶段,但现价仍高于平均成本。 * **衍生品**:评分43,杠杆率较低,市场仓位谨慎且对冲充分。 * **跨资产轮动**:评分70,显示资金相对青睐山寨币,但各板块普跌,实为“跌得少”的相对优势。 总体而言,市场处于低位盘整阶段,内部结构正在修复,但由美元主导的宏观约束尚未解除,明确的趋势反转仍需等待美元指数回落至其200日均线以下。该工具每日更新数据,每周提供分析摘要。

insights.glassnode1小时前

产品发布:市场指南针

insights.glassnode1小时前

英伟达CPU压境,中国RISC-V迎战:半导体深观察之四

英伟达即将向中国客户提供其首款专为AI设计的独立CPU Vera,基于Arm架构,单颗售价超2万美元。这凸显了中国在AI算力需求激增下,对CPU架构自主可控的迫切性。文章指出,除了x86和Arm,RISC-V正成为中国突破“不可能三角”(繁荣、可控、自主)的关键赛道。 RISC-V因其开源、模块化特性,被视为实现自主可控且有机会繁荣的路径。当前,中国已成为全球RISC-V发展的热点,受AI算力需求、出口管制压力、开源降本以及政策支持等多重因素推动。国内多家厂商的高性能RISC-V核心在SPEC定点跑分上已触及或超过15分的行业门槛,并实现了3GHz以上的主频,拿到了进入高性能计算俱乐部的“入场券”。 产业焦点已从单核性能转向完整的“计算子系统”,包括自研一致性片上网络(NoC)和满足数据中心要求的全栈RAS能力。已有厂商交付了40核、严格兼容RVA23国际标准的服务器处理器,体现了对生态统一性的重视。在视频编解码、加解密等特定负载上,部分国产RISC-V处理器已接近甚至超越x86/Arm同代产品。 挑战同样严峻。生态碎片化、EDA工具链不完善、验证复杂度高、单核能效追趕、以及先进工艺制约等都是必须啃下的“硬骨头”。业界清醒认识到,在数据中心领域超越成熟架构的周期将比预期更长。 结论是,面对英伟达Vera的敲门,中国自研CPU并非只有跟随Arm一条路。RISC-V赛道已在中国推开大门,并在高性能计算领域取得了实质性进展。虽然前路漫长,充满工程挑战,但它为中国提供了在下一轮算力革命中掌握主动权的可能性。

marsbit2小时前

英伟达CPU压境,中国RISC-V迎战:半导体深观察之四

marsbit2小时前

Stratosphere、Pudgy Penguins与Streamex于2026年ETHConf及纽约科技周期间举办创始人圆桌VIP晚宴

2026年6月9日,在ETHConf 2026和纽约科技周期间,Stratosphere、Pudgy Penguins和Streamex在纽约市联合举办了一场私密的“创始人桌”VIP晚宴,汇聚了数字资产、科技、人工智能、传统金融和机构资本领域的众多领导者。 此次仅限受邀者参加的晚宴,旨在将精选的创始人、运营商、基金、高管及机构领袖聚集一堂,在私密环境中促进自然交流。出席嘉宾包括来自花旗、BitMine、BitGo、未来资产证券(美国)、Experian、Pyth Network、Space and Time、MegaETH、B3、Stable、Antler、Delphi Digital、Fun、Linera、Vanta Trading、Streamex、PolyData、Horizen Labs、World Foundation、Zipcode、OpenLedger、Onyx、Definitive、Notalone Ventures等机构的代表。 晚宴由Stratosphere主办,Pudgy Penguins和Streamex联合举办。Stratosphere贡献了其广泛的创始人、运营商、投资者和机构网络;Pudgy Penguins带来了数字资产领域强大的消费品牌和社区;Streamex则聚焦于代币化黄金和大宗商品市场,引入了机构及现实世界资产的视角。 Stratosphere首席执行官哈桑·谢赫表示:“我对数字资产的下一阶段,尤其是商品代币化感到乐观。这类晚宴让我们能将基金、机构和创始人聚集在同一房间,探讨市场走向。”该“创始人桌”系列活动计划在全年主要全球会议期间持续举办,致力于在私密、以关系驱动的场合中连接创始人、资本、机构和领先品牌。 Stratosphere是一家服务于科技和金融行业领导者的生态合作伙伴与增长咨询公司。

TheNewsCrypto4小时前

Stratosphere、Pudgy Penguins与Streamex于2026年ETHConf及纽约科技周期间举办创始人圆桌VIP晚宴

TheNewsCrypto4小时前

交易

现货
合约
活动图片