A zero-knowledge proof lets someone establish that a statement is true while withholding the private information used to prove it. The useful separation is between a public statement, which the verifier is allowed to know, and a private witness, which remains hidden.
For example, a carefully designed credential system could prove that a signed birth date satisfies an age threshold without publishing the date itself. The proof must also establish that the credential comes from an accepted issuer. Hiding a date is not useful if someone can invent the underlying credential.
Understanding Zero-Knowledge Proofs
The prover supplies evidence that a defined relation holds between public and private inputs. The verifier checks that evidence. Zero knowledge limits what can be learned from the proof beyond the public statement and its validity; it does not make the public statement secret.
Some protocols are interactive, requiring a sequence of messages or challenges. Others produce a proof that can be checked without a live conversation with the prover. The setup, cryptographic assumptions, and permitted verifier behavior differ between systems.
This precision matters in applications. A proof that a computation followed a set of rules says nothing about whether those rules capture the intended business requirement. The relation being proved is part of the security boundary.
The Essential Properties of ZKPs
Completeness means that an honest prover with a valid witness can convince an honest verifier, subject to the protocol’s specified error probability.
Soundness means that a false statement should not be accepted except with a small probability under the relevant assumptions. An argument typically relies on computational limits on the adversary. A proof of knowledge additionally formalizes the prover’s possession of a witness.
Zero knowledge is usually expressed through simulation: the verifier’s view can be simulated without the private witness, given the allowed public information. It is not a claim that the verifier learns no information of any kind. It learns the public claim and whether verification succeeds.
Boneh and Shoup’s cryptography text develops these definitions and their security models in detail.
Applications and Implementations of ZKPs
Selective disclosure of credentials is one application. Another is proving that a computation was executed correctly, which can reduce the work a verifier must repeat. Privacy and efficient verification are separate properties: a system may use validity proofs for scaling while still publishing transaction data.
The names in this field also refer to different kinds of objects:
- Schnorr’s protocol proves knowledge of a discrete logarithm in an appropriate group.
- The Fiat–Shamir transformation can turn certain interactive protocols into non-interactive ones by deriving challenges from a cryptographic hash, under specific assumptions. It is not an unrestricted conversion for every interactive proof.
- SNARKs and STARKs are families of proof or argument systems with different assumptions, setup requirements, and performance characteristics. Whether a particular construction provides zero knowledge must be checked.
RFC 8235 gives a concrete account of a non-interactive Schnorr proof. Ethereum’s documentation on validity proofs in rollups illustrates why the use of proof systems should not be confused with transaction confidentiality.
The Challenge of Practical Implementation
The hard work begins before proof generation. Define the exact claim, identify all public inputs, constrain every relevant value, and decide who controls setup parameters or proving software. A valid proof of an incomplete circuit can still authorize an unintended outcome.
Then examine the surrounding protocol. Could the proof be replayed in another session? Is it bound to the correct account, application, and context? Does a public input reveal more than intended? Can metadata or repeated interactions link the prover’s activity?
Proving time, verification time, memory, and proof size should be measured separately. A fast verifier may require substantial work from the prover. Those trade-offs determine whether a construction fits a mobile credential, a backend service, or a blockchain application.
The Road Ahead
Zero-knowledge proofs are useful when a party needs assurance without access to all the evidence. They complement other techniques: encryption controls access to data, while a proof can establish a property about data or computation.
The design question is specific: what must be proven, to whom, and what may remain visible? Answer it first. The proof system can then be selected and reviewed against that requirement, rather than used as a general promise of privacy.