Education
Imagine a world where you can prove you're over 18 without showing your ID, or verify your identity without revealing personal details.
This is the power of Zero-Knowledge Proofs (ZKPs), a technology revolutionising both the traditional web and the emerging decentralised web (We3).
Let's dig into ZKPs, how they work, and why they are needed in web3.
It’s pretty impressive that Zero Knowledge Proofs (ZKPs) were first introduced nearly four decades ago! In 1985, Shafi Goldwasser, Silvio Micali, and Charles Rackoff published their groundbreaking paper, “The Knowledge Complexity of Interactive Proof Systems,” laying the foundation for this revolutionary technology.
The OG definition of a ZK proof aged well and we still use it today:
A zero-knowledge proof is a method by which one party (the prover) can prove to another party (the verifier) that something is true, without revealing any information apart from the fact that this specific statement is true.
Let’s use an analogy to demonstrate this:
Imagine Jason has the world's best chocolate cake recipe and wants to sell it to Marta. Marta needs to verify that Jason truly has the recipe, but if Jason shows it to her, she’ll see the secret recipe and all its ingredients.
A ZKP allows Jason to prove he has the recipe without revealing the actual details to Marta, ensuring the deal goes through without Jason losing his secret.
At a high level, a zero-knowledge proof works by having the verifier ask the prover to perform tasks that can only be done correctly if the prover knows the secret information. If the prover is just guessing, they will likely fail the verifier's test eventually.
The three fundamental characteristics that define a ZKP include:
To ensure accuracy, the challenge and response steps can be repeated several times, providing a high level of confidence in the proof's authenticity
There are multiple types of zero-knowledge proofs but we’re going to look at the most popular ZKPs in blockchain: ZK-SNARKs and ZK-STARKs (they even sound similar!)
A Zero-Knowledge Succinct Non-Interactive Argument of Knowledge (ZK-SNARK) is a type of zero-knowledge proof where the prover and verifier don’t need to interact.
The proofs are concise because they are short and easy to verify. ZK-SNARKs typically use elliptic curve cryptography and require a trusted setting to generate the parameters. They are one of the most widely used zero-knowledge proof types in the crypto world.
STARK stands for “scalable transparent argument of knowledge”. STARK-based proofs require minimal interaction between the prover and the verifier, making them much faster than SNARKs.
While STARKs are more scalable than SNARKs, they require more gas fees.
Various use cases explain why we need zero-knowledge proofs. Let’s take a look at some of the most important.
As we move towards a more decentralised web, where data ownership and privacy are paramount, ZKPs provide a way to verify transactions and interactions without compromising on privacy.
But why should you care about ZKPs? Well, in a world where data breaches are common and privacy concerns are high, ZKPs offer a solution that's both secure and user-friendly. They're not just for tech enthusiasts or early adopters; they're for everyone who values their privacy and security online.
It's evident that ZKPs are the key to a future where privacy reigns supreme, and digital interactions are secure, efficient, and transparent. The promise of ZKPs is not just a vision—it's an imminent reality that will transform our digital world.
SubQuery Network is innovating web3 infrastructure with tools that empower builders to decentralise the future. Our fast, flexible, and open data indexer supercharges dApps on over 200 networks, enabling a user-focused web3 world. Soon, our Data Node will provide breakthroughs in the RPC industry, and deliver decentralisation without compromise. We pioneer the web3 revolution for visionaries and forward-thinkers. We’re not just a company — we’re a movement driving an inclusive and decentralised web3 era. Let’s shape the future of web3, together.
Linktree | Website | Discord | Telegram | Twitter | Blog | Medium | LinkedIn | YouTube