π Practical Guide to ZKP: Learn Real Usecase of ZKP with Plonky2
It's for those who have heard of ZKP but never known the real usecase. Before We Start Zero-Knowledge Proof (ZKP) is a technology that proves the truth of a statement without revealing the underlyi...

Source: DEV Community
It's for those who have heard of ZKP but never known the real usecase. Before We Start Zero-Knowledge Proof (ZKP) is a technology that proves the truth of a statement without revealing the underlying information. A common example is proving you know a password without showing it. This article will use the Rust's fast recursive SNARK framework Plonky2 to build 3 ZKP circuits step by step. By the end of this article, you will understand the following: How ZKP Circuits Work β Constraints, Witness, Public Inputs Hash Chain Proof β Proving the order of data processing State Transition Proof β Proving the update of Merkle tree π§© Core Model: Circuit, Prover, Verifier Let's understand the core 3 models of ZKP: Entity What Example Circuit π Define mathematical constraints Template of Exam Questions β Define how the answer looks like Prover π§βπ» Generate proof with secret inputs Student who solves the exam Verifier β
Verify validity of proof with public inputs Grader who checks the answer wit