Skip to main content
Zero-Knowledge Proof (ZK Proof): What It Is and How It Works

Zero-Knowledge Proof (ZK Proof): What It Is and How It Works

Zero-knowledge proofs let crypto users and networks prove a claim without handing over the data behind it, though a valid proof still leaves its inputs, circuit, and setup to trust.

Topic
DeFi
Level
Beginner
Reading time
10 min
Last updated

Overview

Introduction

Zcash keeps shielded payments encrypted on its blockchain, and every node can still confirm that they follow the network's rules. Starknet and ZKsync bundle off-chain transactions and prove them to Ethereum with compact proofs that cost far less to check than replaying the work. Both depend on the same idea from a 1985 paper, the zero-knowledge (ZK) proof.

The ZK label has since spread to privacy wallets, identity tools, and token names, often with no word on what the proof checks or what it leaves in public view. A proof covers one precisely defined statement, so the label on its own says little about what a product hides or how safe it is.

What Is a Zero-Knowledge Proof?

A zero-knowledge proof convinces a verifier that a statement is true while revealing nothing beyond that fact. The party making the claim is the prover, and the party checking it is the verifier. In crypto, the prover can be a user, a wallet, an app, or a rollup, and the statement can cover a transaction, an identity claim, a reserve record, or a whole batch of computation.

Shafi Goldwasser, Silvio Micali, and Charles Rackoff introduced the idea in their 1985 paper “The Knowledge Complexity of Interactive Proof Systems.” Ethereum.org calls that paper's definition the one widely used today and lists the properties a zero-knowledge protocol must satisfy.

  • Completeness. If the statement is true and both sides follow the protocol, the verifier accepts the proof.
  • Soundness. If the statement is false, a lying prover can't convince the verifier, except with a tiny probability.
  • Zero-knowledge. The verifier learns that the statement is true and nothing else, so it can't work out the hidden input from the proof.

Soundness guards the verifier against a prover who is lying, and zero-knowledge guards the prover against a verifier who wants the secret. Completeness keeps the system usable, since a true claim always gets through.

How a Zero-Knowledge Proof Works

A zero-knowledge proof turns private information into something a verifier can check against a public claim. The terms below describe who holds what, with each term on the left and its job on the right.

Prover

Builds the proof from the witness and the statement

Verifier

Checks the proof, then accepts or rejects it

Witness

Hidden input, such as a secret, a credential, or a computation trace

Statement

Public claim being tested

Early protocols worked as a conversation. The prover commits to an answer derived from the witness, the verifier replies with a random challenge, and the prover responds. A prover without the witness can sometimes guess a challenge correctly, so the verifier repeats the exchange until a lucky streak becomes too unlikely to believe.

That back-and-forth needs both parties online, and the result convinces only the verifier who took part. Manuel Blum, Paul Feldman, and Silvio Micali later proposed non-interactive proofs, in which the prover sends a single message built with public parameters both sides share. Anyone with those parameters can check the proof afterward, which is the form blockchains use.

The verifier may see public inputs, such as an address, a balance range, a group membership, or a rollup's state root, while the witness stays with the prover. The roles stay the same from one use to the next, and what changes is which inputs stay private and which go public. A smart contract can check a proof on-chain, a rollup can post a validity proof for a batch, and an app can confirm that a credential meets a rule without ever collecting it.

A Simple Zero-Knowledge Proof Example

In an age check, you prove you're over 18 without showing your birth date, address, document number, or name. The statement is “this person is old enough,” the witness is the signed credential that proves it, and the verifier walks away with a pass or a fail and no copy of the document.

A wallet can do the same thing on-chain, proving that its owner belongs to an approved group or holds a valid credential before joining a vote or a claim. A password check follows the same pattern.

  • The prover knows the password
  • The verifier wants proof that the prover knows it
  • The proof passes without the password ever being sent
  • A copied or replayed proof fails if someone submits it later

Blocking that replay takes engineering beyond the proof itself, and so do well-defined inputs and a way to stop a proof from being reused in the wrong context. Many products with the ZK label never say which of those controls they have.

Soundness gets its own illustration in a story Jean-Jacques Quisquater and colleagues presented at the CRYPTO '89 conference. A researcher shows a TV reporter that he knows the magic words that open a door joining two dead-end passages in a cave, without saying the words. He walks down one passage out of sight, the reporter flips a coin at the fork and calls out a side, and the researcher has to come out on that side.

Someone who doesn't know the words can only pass when the coin happens to call the passage they already chose, so each test halves a pretender's chance of success. Twenty passes in a row leave odds of 1 in 1,048,576, and the 40 scenes in the story bring them to about 1 in 1.1 trillion. Even so, a recording of those 40 wins proves nothing to anyone else, since a lookalike without the words could film until he had 40 lucky takes and cut the misses.

One way to make a proof non-interactive swaps the reporter's coin for a hash of the prover's first messages. Anyone can check the result later, though a cheater can also try again in private as often as they like, so these designs ask for far more challenges than a live demonstration would. Their security also assumes the hash behaves like a random function, and the proof systems blockchains use today likewise rest their soundness on cryptographic assumptions.

Guessing passes one round of the cave test half the time, 20 in a row 1 time in 1,048,576

In the cave test, a prover who knows the secret word always passes, while a guesser passes a round only when the verifier's coin calls the passage already chosen. Repeating the round shrinks a guesser's odds to 1 in 2 to the power n.

Each round halves a guesser's chance, so 20 rounds leave 1 in 1,048,576. A non-interactive proof lets anyone check it, though cheaters can retry in private.

A teaching protocol, not a deployed system. SNARKs and STARKs rest soundness on cryptographic assumptions, so the coin odds do not describe them. The figure of 80 challenges comes from one set of course notes as an example. The shortest bars use a 2 px floor so they stay visible.

Zero-Knowledge Proofs in Blockchain and Crypto

Bitcoin and Ethereum are public ledgers. Anyone can follow a transaction from wallet to wallet, and the record stays there for good. A ZK proof changes that picture only for the part of a system it's applied to, and crypto uses it for two separate jobs.

Privacy. The proof hides selected details of a transaction, such as the sender, the receiver, or the amount. The transaction still lands on-chain, and the network checks it against the rules without seeing the shielded fields.

Scaling. The proof shows that a batch of transactions was executed correctly, so the main chain can accept the result without replaying every step. The transaction data can stay fully public, because the proof is about correctness and cost.

Many ZK-rollups, zkEVMs (zero-knowledge Ethereum Virtual Machines), and other layer 2 networks belong to the second group. Ethereum.org states that using validity proofs for scaling doesn't, by itself, make a rollup's transactions confidential. So the first question for any ZK product is which of the two jobs it does. A team that can't answer in one sentence has told you something too.

ZK-SNARKs, ZK-STARKs, and Validity Proofs

Two proof families appear across crypto's ZK networks. A SNARK is a succinct non-interactive argument of knowledge, and a STARK is a scalable transparent argument of knowledge. Both can keep the witness private, and both make checking a computation far cheaper than repeating it.

Each family or label is on the left below, with its main properties on the right.

ZK-SNARK

Small proofs, and many designs need a trusted setup

ZK-STARK

No trusted setup, with larger proofs that cost more to verify

Validity proof

Any proof that a state transition or computation is correct

A trusted setup creates the public parameters, called the common reference string (CRS), that SNARK provers and verifiers share. Whoever holds the secret randomness behind those parameters can build false proofs that still pass. To shrink that risk, projects hold multi-party computation (MPC) ceremonies in which many people add randomness, and ethereum.org notes that the SNARK stays computationally sound as long as at least one participant destroys their share.

Not every SNARK needs one. Zcash generated its first two sets of parameters, for Sprout and Sapling, through multi-party ceremonies. Its Orchard pool, live since Network Upgrade 5 (NU5) in May 2022, uses the Halo 2 proving system, which removes the trusted setup. Zcash's own explainer puts a succinct proof at a few hundred bytes, even for statements about large programs.

STARKs build their parameters from publicly verifiable randomness, which is why they're called transparent. Ethereum.org also rates STARKs faster than SNARKs at generating and verifying proofs once the witness gets large.

The two families also differ on quantum computing. Ethereum.org says ZK-SNARKs depend on elliptic curve cryptography, which a future quantum computer could break. STARKs rely only on collision-resistant hash functions, and StarkWare describes their assumptions as resistant to quantum attacks. Starknet, built by StarkWare, uses STARK proofs to settle its blocks on Ethereum.

Where Zero-Knowledge Proofs (ZK Proofs) Are Used Today

Each use of ZK proofs in crypto hides different data, proves a different statement, and leaves different risks behind.

  • Shielded payments hide the sender, the receiver, or the amount
  • ZK-rollups prove that transaction batches were executed correctly
  • Identity systems prove eligibility, uniqueness, or a credential without the document
  • Proof of reserves shows limited claims about committed assets or liabilities
  • zkTLS tools prove facts from a Transport Layer Security (TLS) web session without exposing the session
  • Voting systems prove eligibility and correct counting while keeping each vote private
  • Outsourced computation proves that a result came from the program it claims

Assets in the privacy crypto category rely on keeping transaction details confidential. ZK proofs can support that goal, though wallet behavior, transparent addresses, network metadata, and app design all shape how private a user stays. Zcash calls itself the first widespread application of zk-SNARKs, and it offers both shielded and transparent addresses, so the shielding covers only payments that use it.

As of Nov. 23, 2026, Starknet's documentation describes it as a validity rollup that bundles thousands of transactions off-chain, and ZKsync's documentation describes a network of ZK rollups and validiums whose provers build proofs that Ethereum verifies. Polygon zkEVM went the other way. Polygon Labs announced on Jun. 11, 2025, that it would retire the network's Mainnet Beta, and the sequencer stopped producing blocks on Jul. 3, 2026. Polygon says assets in self-custodied wallets can be claimed on Ethereum through Dec. 31, 2027, while funds held inside smart contracts can't be recovered through that interface.

Identity is a separate use case. The identity crypto category covers systems that prove membership, uniqueness, credentials, or permissions. World ID's documentation says its users prove what is true without revealing personal information, and that the proofs can't be linked across apps. Verifiable credentials follow a similar approach with selective disclosure, where the holder reveals only the fields a check needs.

Across all of these, the proof limits what gets disclosed. Users still have to trust the issuers, software, wallets, and devices around it.

What Zero-Knowledge Proofs Do Not Prove

A ZK proof shows that a hidden input satisfies a rule written as a circuit, the set of constraints the prover's computation has to meet. For rollups, ethereum.org says a proof that satisfies the circuit means a sequence of valid transactions exists that moves the rollup from its old state to the new one.

Valid there means valid by the circuit's own checks, so the proof shows the statement holds as the circuit defines it. It says nothing about whether the circuit matches what its designers intended, so a missing constraint can let through something they never meant to allow. The proof also can't vouch for where its inputs came from, whether that's a person, a sensor, an exchange, or an issuer.

A proof of reserves can show that committed balances add up a certain way. It may still say nothing about full liabilities, who owns the assets, or whether the funds were borrowed just to pass the check. A credential proof can show that a signed credential meets a rule, and the issuer may still have checked the person badly.

Each gap outside the proof is on the left below, with what can go wrong there on the right.

Circuit

Missing or wrong constraints let a false statement pass

Input data

Wrong or manipulated before the proof is built

Credential issuer

Weak, compromised, or dishonest signer

Oracle

Stale or manipulated off-chain data

Device

Malware changes what the user sees or signs

Metadata

Addresses, timing, IP data, and app behavior still visible

So a ZK claim should name the exact statement being proved. “Private,” “verified,” and “compliant” are incomplete labels until the app says what data is hidden, what stays public, and who vouches for the inputs.

Zero-Knowledge Proof Risks, Costs, and Trust Assumptions

A proof system can be mathematically sound while the product around it fails. For users, the practical risks below decide more than the cryptography does, with each risk on the left and what to check on the right.

Trusted setup

Whether the system needs one, and how the ceremony was held

Prover cost

Special hardware, proving time, and how many parties can produce proofs

Metadata leakage

Addresses, timing, fees, IP signals, and public inputs left visible

Rollup design

Sequencer control, bridge design, data availability, and forced exits

Implementation bugs

Audits, bug bounties, upgrade keys, and incident history

Wallet mistakes

Wrong network, fake app, malicious signature, or exposed recovery phrase

Legal limits

Whether the tool blocks, records, or reports certain activity

Ethereum.org lists a mishandled trusted setup among the ways a ZK-rollup's security model can be compromised. Before you rely on a project, find out whether it depends on a ceremony, a circuit-specific setup, or a transparent design.

Proof generation needs expensive machines, and ethereum.org notes that the specialized hardware behind validity proofs may put a ZK-rollup under the control of a few parties. It adds that a centralized sequencer can influence the order of transactions. So a network can verify results cheaply and still depend on a handful of provers to produce them.

A tool may hide amounts while addresses stay public, or hide your identity from an app while revealing your eligibility. It may also prove a balance range while wallet behavior and timing remain visible, so read each privacy claim narrowly.

Post-quantum assumptions in a proof system don't reach the wallets, signatures, bridges, or apps connected to the network.

How to Use Zero-Knowledge Crypto Tools Safely

Start by identifying what the tool is. It might be a privacy wallet, a rollup, a token, an identity system, a proof-of-reserves page, or developer infrastructure, and the ZK label alone won't tell you which.

Before you connect a wallet, bridge funds, or buy a token, go through these checks.

  • Find the exact statement the proof verifies
  • Check what data stays public after the proof is verified
  • Confirm the network, bridge, and contract address independently
  • See whether the proof system needs a trusted setup
  • Check whether a centralized sequencer, issuer, or prover is involved
  • Send a small test transaction before moving larger funds
  • Keep recovery phrases and signing devices away from app prompts

ZK apps work through a wallet or account, so the usual wallet risks apply in full. If you're new to self-custody, compare the crypto wallets suited to beginners before you connect one to an unfamiliar ZK app.

A centralized exchange may list a ZK-related token without supporting every rollup, shielded address, or withdrawal route, so check exchange support on its own. Beginner-friendly crypto exchanges differ on fees, security, and supported assets. Swaps inside ZK-rollup apps go through decentralized exchanges, which settle on the rollup itself.

Never sign anything you don't recognize, and treat privacy as partial until the tool explains exactly what it hides.

FAQs

What is a zero-knowledge proof in simple terms?

It’s a way to prove a claim while keeping the evidence private. “Knowledge” here means what the verifier gains from the exchange, so a zero-knowledge proof leaves the verifier sure the claim is true and no wiser about anything else.

How does a zero-knowledge proof work?

On a ZK-rollup, the verifier is a smart contract on Ethereum. It checks the proof together with public inputs such as the rollup’s old and new state roots, and it accepts the new state only if the old root matches the one it already stores.

What is a zero-knowledge proof example?

Group membership is a common one. The Semaphore protocol, which World ID uses, lets someone prove they belong to a group, such as verified humans, without showing which member of the group they are.

Are ZK-rollups private?

Not by default. Ethereum.org says ZK-rollups post the data needed to rebuild their state to Ethereum, as calldata or blobs, so anyone can reconstruct balances and transfers. Any privacy has to come from extra features the rollup adds and documents.

What is the difference between zk-SNARKs and zk-STARKs?

Cost on Ethereum is one practical difference. Ethereum.org puts the cost of verifying a single ZK-SNARK proof at about 500,000 gas and says ZK-STARKs cost more, though it adds that STARKs may work out cheaper when the proof covers a large dataset.

Can zero-knowledge proofs prove real-world events?

Only indirectly. A system can feed signed data from an oracle, a credential issuer, or a website session into a proof, and the proof then shows that this data meets a rule. Trust moves to whoever signed or supplied the data.

Loading image…

The Catalyst

Know what’s moving crypto.