Template:Short description

In cryptography, a zero-knowledge proof (also known as a ZK proof or ZKP) is a protocol in which one party (the prover) can convince another party (the verifier) that some given statement is true, without conveying to the verifier any information beyond the mere fact of that statement's truth.<ref>Template:Citation</ref> The intuition underlying zero-knowledge proofs is that it is trivial to prove possession of the relevant information simply by revealing it; the hard part is to prove this possession without revealing this information (or any aspect of it whatsoever).<ref>Template:Cite book</ref>

In light of the fact that one should be able to generate a proof of some statement only when in possession of certain secret information connected to the statement, the verifier, even after having become convinced of the statement's truth, should nonetheless remain unable to prove the statement to further third parties.

Zero-knowledge proofs can be interactive, meaning that the prover and verifier exchange messages according to some protocol, or noninteractive, meaning that the verifier is convinced by a single prover message and no other communication is needed. In the standard model, interaction is required, except for trivial proofs of BPP problems.<ref>Template:Cite book</ref> In the common random string and random oracle models, non-interactive zero-knowledge proofs exist. The Fiat–Shamir heuristic can be used to transform certain interactive zero-knowledge proofs into noninteractive ones.<ref>Template:Cite book</ref><ref name="noninteractive">Template:Cite book</ref><ref name=noninteractive2>Template:Cite journal</ref>

Abstract examplesEdit

The Ali Baba caveEdit

Template:Multiple image

There is a well-known story presenting the fundamental ideas of zero-knowledge proofs, first published in 1990 by Jean-Jacques Quisquater and others in their paper "How to Explain Zero-Knowledge Protocols to Your Children".<ref>Template:Cite book</ref> The two parties in the zero-knowledge proof story are Peggy as the prover of the statement, and Victor, the verifier of the statement.

In this story, Peggy has uncovered the secret word used to open a magic door in a cave. The cave is shaped like a ring, with the entrance on one side and the magic door blocking the opposite side. Victor wants to know whether Peggy knows the secret word; but Peggy, being a very private person, does not want to reveal her knowledge (the secret word) to Victor or to reveal the fact of her knowledge to the world in general.

They label the left and right paths from the entrance A and B. First, Victor waits outside the cave as Peggy goes in. Peggy takes either path A or B; Victor is not allowed to see which path she takes. Then, Victor enters the cave and shouts the name of the path he wants her to use to return, either A or B, chosen at random. Providing she really does know the magic word, this is easy: she opens the door, if necessary, and returns along the desired path.

However, suppose she did not know the word. Then, she would only be able to return by the named path if Victor were to give the name of the same path by which she had entered. Since Victor would choose A or B at random, she would have a 50% chance of guessing correctly. If they were to repeat this trick many times, say 20 times in a row, her chance of successfully anticipating all of Victor's requests would be reduced to 1 in 220, or 9.54Template:Times10−7.

Thus, if Peggy repeatedly appears at the exit Victor names, then he can conclude that it is extremely probable that Peggy does, in fact, know the secret word.

One side note with respect to third-party observers: even if Victor is wearing a hidden camera that records the whole transaction, the only thing the camera will record is in one case Victor shouting "A!" and Peggy appearing at A or in the other case Victor shouting "B!" and Peggy appearing at B. A recording of this type would be trivial for any two people to fake (requiring only that Peggy and Victor agree beforehand on the sequence of As and Bs that Victor will shout). Such a recording will certainly never be convincing to anyone but the original participants. In fact, even a person who was present as an observer at the original experiment should be unconvinced, since Victor and Peggy could have orchestrated the whole "experiment" from start to finish.

Further, if Victor chooses his As and Bs by flipping a coin on-camera, this protocol loses its zero-knowledge property; the on-camera coin flip would probably be convincing to any person watching the recording later. Thus, although this does not reveal the secret word to Victor, it does make it possible for Victor to convince the world in general that Peggy has that knowledge—counter to Peggy's stated wishes. However, digital cryptography generally "flips coins" by relying on a pseudo-random number generator, which is akin to a coin with a fixed pattern of heads and tails known only to the coin's owner. If Victor's coin behaved this way, then again it would be possible for Victor and Peggy to have faked the experiment, so using a pseudo-random number generator would not reveal Peggy's knowledge to the world in the same way that using a flipped coin would.

Peggy could prove to Victor that she knows the magic word, without revealing it to him, in a single trial. If both Victor and Peggy go together to the mouth of the cave, Victor can watch Peggy go in through A and come out through B. This would prove with certainty that Peggy knows the magic word, without revealing the magic word to Victor. However, such a proof could be observed by a third party, or recorded by Victor and such a proof would be convincing to anybody. In other words, Peggy could not refute such proof by claiming she colluded with Victor, and she is therefore no longer in control of who is aware of her knowledge.

Two balls and the colour-blind friendEdit

Imagine Victor is red-green colour-blind (while Peggy is not) and Peggy has two balls: one red and one green, but otherwise identical. To Victor, the balls seem completely identical. Victor is skeptical that the balls are actually distinguishable. Peggy wants to prove to Victor that the balls are in fact differently coloured, but nothing else. In particular, Peggy does not want to reveal which ball is the red one and which is the green.

Here is the proof system: Peggy gives the two balls to Victor and he puts them behind his back. Next, he takes one of the balls and brings it out from behind his back and displays it. He then places it behind his back again and then chooses to reveal just one of the two balls, picking one of the two at random with equal probability. He will ask Peggy, "Did I switch the ball?" This whole procedure is then repeated as often as necessary.

By looking at the balls' colours, Peggy can, of course, say with certainty whether or not he switched them. On the other hand, if the balls were the same colour and hence indistinguishable, Peggy's ability to determine whether a switch occurred would be no better than random guessing. Since the probability that Peggy would have randomly succeeded at identifying each switch/non-switch is 50%, the probability of having randomly succeeded at all switch/non-switches approaches zero.

Over multiple trials, the success rate would statistically converge to 50%, and Peggy could not achieve a performance significantly better than chance. If Peggy and Victor repeat this "proof" multiple times (e.g. 20 times), Victor should become convinced that the balls are indeed differently coloured.

The above proof is zero-knowledge because Victor never learns which ball is green and which is red; indeed, he gains no knowledge about how to distinguish the balls.<ref>Template:Cite news</ref>

Where's WallyEdit

One well-known example of a zero-knowledge proof is the "Where's Wally" example. In this example, the prover wants to prove to the verifier that they know where Wally is on a page in a Where's Wally? book, without revealing his location to the verifier.<ref name=Murtagh>Template:Cite news</ref>

The prover starts by taking a large black board with a small hole in it, the size of Wally. The board is twice the size of the book in both directions, so the verifier cannot see where on the page the prover is placing it. The prover then places the board over the page so that Wally is in the hole.<ref name=Murtagh/>

The verifier can now look through the hole and see Wally, but cannot see any other part of the page. Therefore, the prover has proven to the verifier that they know where Wally is, without revealing any other information about his location.<ref name=Murtagh/>

This example is not a perfect zero-knowledge proof, because the prover does reveal some information about Wally's location, such as his body position. However, it is a decent illustration of the basic concept of a zero-knowledge proof.

DefinitionEdit

Template:More citations needed A zero-knowledge proof of some statement must satisfy three properties:

  1. Completeness: if the statement is true, then an honest verifier (that is, one following the protocol properly) will be convinced of this fact by an honest prover.
  2. Soundness: if the statement is false, then no cheating prover can convince an honest verifier that it is true, except with some small probability.
  3. Zero-knowledge: if the statement is true, then no verifier learns anything other than the fact that the statement is true. In other words, just knowing the statement (not the secret) is sufficient to imagine a scenario showing that the prover knows the secret. This is formalized by showing that every verifier has some simulator that, given only the statement to be proved (and no access to the prover), can produce a transcript that "looks like" an interaction between an honest prover and the verifier in question.

The first two of these are properties of more general interactive proof systems. The third is what makes the proof zero-knowledge.<ref>Template:Cite journal</ref>

Zero-knowledge proofs are not proofs in the mathematical sense of the term because there is some small probability, the soundness error, that a cheating prover will be able to convince the verifier of a false statement. In other words, zero-knowledge proofs are probabilistic "proofs" rather than deterministic proofs. However, there are techniques to decrease the soundness error to negligibly small values (for example, guessing correctly on a hundred or thousand binary decisions has a 1/2100 or 1/21000 soundness error, respectively. As the number of bits increases, the soundness error decreases toward zero).

A formal definition of zero-knowledge must use some computational model, the most common one being that of a Turing machine. Let Template:Mvar, Template:Mvar, and Template:Mvar be Turing machines. An interactive proof system with Template:Mvar for a language Template:Mvar is zero-knowledge if for any probabilistic polynomial time (PPT) verifier <math>\hat V</math> there exists a PPT simulator Template:Mvar such that:

<math>\forall x \in L, z \in \{0, 1\}^{*}, \operatorname{View}_{\hat V} \left[P(x) \leftrightarrow \hat V(x, z)\right] = S(x, z),</math>

where Template:Math is a record of the interactions between Template:Math and Template:Math. The prover Template:Mvar is modeled as having unlimited computation power (in practice, Template:Mvar usually is a probabilistic Turing machine). Intuitively, the definition states that an interactive proof system Template:Math is zero-knowledge if for any verifier <math>\hat V</math> there exists an efficient simulator Template:Mvar (depending on <math>\hat V</math>) that can reproduce the conversation between Template:Mvar and <math>\hat V</math> on any given input. The auxiliary string Template:Mvar in the definition plays the role of "prior knowledge" (including the random coins of <math>\hat V</math>). The definition implies that <math>\hat V</math> cannot use any prior knowledge string Template:Mvar to mine information out of its conversation with Template:Mvar, because if Template:Mvar is also given this prior knowledge then it can reproduce the conversation between <math>\hat V</math> and Template:Mvar just as before. Template:Citation needed

The definition given is that of perfect zero-knowledge. Computational zero-knowledge is obtained by requiring that the views of the verifier <math>\hat V</math> and the simulator are only computationally indistinguishable, given the auxiliary string. Template:Citation needed

Practical examplesEdit

Discrete log of a given valueEdit

These ideas can be applied to a more realistic cryptography application. Peggy wants to prove to Victor that she knows the discrete logarithm of a given value in a given group.<ref>Template:Cite book</ref>

For example, given a value Template:Mvar, a large prime Template:Mvar, and a generator <math>g</math>, she wants to prove that she knows a value Template:Mvar such that Template:Math, without revealing Template:Mvar. Indeed, knowledge of Template:Mvar could be used as a proof of identity, in that Peggy could have such knowledge because she chose a random value Template:Mvar that she did not reveal to anyone, computed Template:Math, and distributed the value of Template:Mvar to all potential verifiers, such that at a later time, proving knowledge of Template:Mvar is equivalent to proving identity as Peggy.

The protocol proceeds as follows: in each round, Peggy generates a random number Template:Mvar, computes Template:Math and discloses this to Victor. After receiving Template:Mvar, Victor randomly issues one of the following two requests: he either requests that Peggy discloses the value of Template:Mvar, or the value of Template:Math.

Victor can verify either answer; if he requested Template:Mvar, he can then compute Template:Math and verify that it matches Template:Mvar. If he requested Template:Math, then he can verify that Template:Mvar is consistent with this, by computing Template:Math and verifying that it matches Template:Math. If Peggy indeed knows the value of Template:Mvar, then she can respond to either one of Victor's possible challenges.

If Peggy knew or could guess which challenge Victor is going to issue, then she could easily cheat and convince Victor that she knows Template:Mvar when she does not: if she knows that Victor is going to request Template:Mvar, then she proceeds normally: she picks Template:Mvar, computes Template:Math, and discloses Template:Mvar to Victor; she will be able to respond to Victor's challenge. On the other hand, if she knows that Victor will request Template:Math, then she picks a random value Template:Math, computes Template:Math, and discloses Template:Math to Victor as the value of Template:Mvar that he is expecting. When Victor challenges her to reveal Template:Math, she reveals Template:Math, for which Victor will verify consistency, since he will in turn compute Template:Math, which matches Template:Math, since Peggy multiplied by the modular multiplicative inverse of Template:Mvar.

However, if in either one of the above scenarios Victor issues a challenge other than the one she was expecting and for which she manufactured the result, then she will be unable to respond to the challenge under the assumption of infeasibility of solving the discrete log for this group. If she picked Template:Mvar and disclosed Template:Math, then she will be unable to produce a valid Template:Math that would pass Victor's verification, given that she does not know Template:Mvar. And if she picked a value Template:Math that poses as Template:Math, then she would have to respond with the discrete log of the value that she disclosedTemplate:Snd but Peggy does not know this discrete log, since the value Template:Mvar she disclosed was obtained through arithmetic with known values, and not by computing a power with a known exponent.

Thus, a cheating prover has a 0.5 probability of successfully cheating in one round. By executing a large-enough number of rounds, the probability of a cheating prover succeeding can be made arbitrarily low.

To show that the above interactive proof gives zero knowledge other than the fact that Peggy knows Template:Mvar, one can use similar arguments as used in the above proof of completeness and soundness. Specifically, a simulator, say Simon, who does not know Template:Mvar, can simulate the exchange between Peggy and Victor by the following procedure. Firstly, Simon randomly flips a fair coin. If the result is "heads", then he picks a random value Template:Mvar, computes Template:Math, and discloses Template:Mvar as if it is a message from Peggy to Victor. Then Simon also outputs a message "request the value of Template:Mvar" as if it is sent from Victor to Peggy, and immediately outputs the value of Template:Mvar as if it is sent from Peggy to Victor. A single round is complete. On the other hand, if the coin flipping result is "tails", then Simon picks a random number Template:Math, computes Template:Math, and discloses Template:Math as if it is a message from Peggy to Victor. Then Simon outputs "request the value of Template:Math" as if it is a message from Victor to Peggy. Finally, Simon outputs the value of Template:Math as if it is the response from Peggy back to Victor. A single round is complete. By the previous arguments when proving the completeness and soundness, the interactive communication simulated by Simon is indistinguishable from the true correspondence between Peggy and Victor. The zero-knowledge property is thus guaranteed.

Hamiltonian cycle for a large graphEdit

The following scheme is due to Manuel Blum.<ref name="blum86">Template:Cite journal</ref>

In this scenario, Peggy knows a Hamiltonian cycle for a large graph Template:Mvar. Victor knows Template:Mvar but not the cycle (e.g., Peggy has generated Template:Mvar and revealed it to him.) Finding a Hamiltonian cycle given a large graph is believed to be computationally infeasible, since its corresponding decision version is known to be NP-complete. Peggy will prove that she knows the cycle without simply revealing it (perhaps Victor is interested in buying it but wants verification first, or maybe Peggy is the only one who knows this information and is proving her identity to Victor).

To show that Peggy knows this Hamiltonian cycle, she and Victor play several rounds of a game:

  • At the beginning of each round, Peggy creates Template:Mvar, a graph which is isomorphic to Template:Mvar (that is, Template:Mvar is just like Template:Mvar except that all the vertices have different names). Since it is trivial to translate a Hamiltonian cycle between isomorphic graphs with known isomorphism, if Peggy knows a Hamiltonian cycle for Template:Mvar then she also must know one for Template:Mvar.
  • Peggy commits to Template:Mvar. She could do so by using a cryptographic commitment scheme. Alternatively, she could number the vertices of Template:Mvar. Next, for each edge of Template:Mvar, on a small piece of paper, she writes down the two vertices that the edge joins. Then she puts all these pieces of paper face down on a table. The purpose of this commitment is that Peggy is not able to change Template:Mvar while, at the same time, Victor has no information about Template:Mvar.
  • Victor then randomly chooses one of two questions to ask Peggy. He can either ask her to show the isomorphism between Template:Mvar and Template:Mvar (see graph isomorphism problem), or he can ask her to show a Hamiltonian cycle in Template:Mvar.
  • If Peggy is asked to show that the two graphs are isomorphic, then she first uncovers all of Template:Mvar (e.g. by turning over all pieces of papers that she put on the table) and then provides the vertex translations that map Template:Mvar to Template:Mvar. Victor can verify that they are indeed isomorphic.
  • If Peggy is asked to prove that she knows a Hamiltonian cycle in Template:Mvar, then she translates her Hamiltonian cycle in Template:Mvar onto Template:Mvar and only uncovers the edges on the Hamiltonian cycle. That is, Peggy only turns over exactly Template:Math of the pieces of paper that correspond to the edges of the Hamiltonian cycle, while leaving the rest still face-down. This is enough for Victor to check that Template:Mvar does indeed contain a Hamiltonian cycle.

It is important that the commitment to the graph be such that Victor can verify, in the second case, that the cycle is really made of edges from Template:Mvar. This can be done by, for example, committing to every edge (or lack thereof) separately.

CompletenessEdit

If Peggy does know a Hamiltonian cycle in Template:Mvar, then she can easily satisfy Victor's demand for either the graph isomorphism producing Template:Mvar from Template:Mvar (which she had committed to in the first step) or a Hamiltonian cycle in Template:Mvar (which she can construct by applying the isomorphism to the cycle in Template:Mvar).

Zero-knowledgeEdit

Peggy's answers do not reveal the original Hamiltonian cycle in Template:Mvar. In each round, Victor will learn only Template:Mvar's isomorphism to Template:Mvar or a Hamiltonian cycle in Template:Mvar. He would need both answers for a single Template:Mvar to discover the cycle in Template:Mvar, so the information remains unknown as long as Peggy can generate a distinct Template:Mvar every round. If Peggy does not know of a Hamiltonian cycle in Template:Mvar, but somehow knew in advance what Victor would ask to see each round, then she could cheat. For example, if Peggy knew ahead of time that Victor would ask to see the Hamiltonian cycle in Template:Mvar, then she could generate a Hamiltonian cycle for an unrelated graph. Similarly, if Peggy knew in advance that Victor would ask to see the isomorphism then she could simply generate an isomorphic graph Template:Mvar (in which she also does not know a Hamiltonian cycle). Victor could simulate the protocol by himself (without Peggy) because he knows what he will ask to see. Therefore, Victor gains no information about the Hamiltonian cycle in Template:Mvar from the information revealed in each round.

SoundnessEdit

If Peggy does not know the information, then she can guess which question Victor will ask and generate either a graph isomorphic to Template:Mvar or a Hamiltonian cycle for an unrelated graph, but since she does not know a Hamiltonian cycle for Template:Mvar, she cannot do both. With this guesswork, her chance of fooling Victor is Template:Math, where Template:Mvar is the number of rounds. For all realistic purposes, it is infeasibly difficult to defeat a zero-knowledge proof with a reasonable number of rounds in this way.

Variants of zero-knowledgeEdit

Different variants of zero-knowledge can be defined by formalizing the intuitive concept of what is meant by the output of the simulator "looking like" the execution of the real proof protocol in the following ways:

  • We speak of perfect zero-knowledge if the distributions produced by the simulator and the proof protocol are distributed exactly the same. This is for instance the case in the first example above.
  • Statistical zero-knowledge<ref>Template:Cite journal</ref> means that the distributions are not necessarily exactly the same, but they are statistically close, meaning that their statistical difference is a negligible function.
  • We speak of computational zero-knowledge if no efficient algorithm can distinguish the two distributions.

Zero knowledge typesEdit

There are various types of zero-knowledge proofs:

Zero-knowledge proof schemes can be constructed from various cryptographic primitives, such as hash-based cryptography, pairing-based cryptography, multi-party computation, or lattice-based cryptography.

ApplicationsEdit

Authentication systemsEdit

Research in zero-knowledge proofs has been motivated by authentication systems where one party wants to prove its identity to a second party via some secret information (such as a password) but does not want the second party to learn anything about this secret. This is called a "zero-knowledge proof of knowledge". However, a password is typically too small or insufficiently random to be used in many schemes for zero-knowledge proofs of knowledge. A zero-knowledge password proof is a special kind of zero-knowledge proof of knowledge that addresses the limited size of passwords.Template:Citation needed

In April 2015, the one-out-of-many proofs protocol (a Sigma protocol) was introduced.<ref name=":1" /> In August 2021, Cloudflare, an American web infrastructure and security company, decided to use the one-out-of-many proofs mechanism for private web verification using vendor hardware.<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref>

Ethical behaviorEdit

One of the uses of zero-knowledge proofs within cryptographic protocols is to enforce honest behavior while maintaining privacy. Roughly, the idea is to force a user to prove, using a zero-knowledge proof, that its behavior is correct according to the protocol.<ref name="knowledgecomplexity">Template:Citation</ref><ref>Template:Cite book</ref> Because of soundness, we know that the user must really act honestly in order to be able to provide a valid proof. Because of zero knowledge, we know that the user does not compromise the privacy of its secrets in the process of providing the proof.Template:Citation needed

Nuclear disarmamentEdit

In 2016, the Princeton Plasma Physics Laboratory and Princeton University demonstrated a technique that may have applicability to future nuclear disarmament talks. It would allow inspectors to confirm whether or not an object is indeed a nuclear weapon without recording, sharing, or revealing the internal workings, which might be secret.<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref>

BlockchainsEdit

Zero-knowledge proofs were applied in the Zerocoin and Zerocash protocols, which culminated in the birth of Zcoin<ref name="Hellwig 2020"/> (later rebranded as Firo in 2020)<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref> and Zcash cryptocurrencies in 2016. Zerocoin has a built-in mixing model that does not trust any peers or centralised mixing providers to ensure anonymity.<ref name="Hellwig 2020"/> Users can transact in a base currency and can cycle the currency into and out of Zerocoins.<ref>Template:Cite book</ref> The Zerocash protocol uses a similar model (a variant known as a non-interactive zero-knowledge proof)<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref> except that it can obscure the transaction amount, while Zerocoin cannot. Given significant restrictions of transaction data on the Zerocash network, Zerocash is less prone to privacy timing attacks when compared to Zerocoin. However, this additional layer of privacy can cause potentially undetected hyperinflation of Zerocash supply because fraudulent coins cannot be tracked.<ref name="Hellwig 2020">Template:Cite book</ref><ref>Template:Cite news</ref>

In 2018, Bulletproofs were introduced. Bulletproofs are an improvement from non-interactive zero-knowledge proofs where a trusted setup is not needed.<ref name="Bulletproofs">Template:Cite book</ref> It was later implemented into the Mimblewimble protocol (which the Grin and Beam cryptocurrencies are based upon) and Monero cryptocurrency.<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref> In 2019, Firo implemented the Sigma protocol, which is an improvement on the Zerocoin protocol without trusted setup.<ref>Template:Cite news</ref><ref name=":1">Template:Cite book</ref> In the same year, Firo introduced the Lelantus protocol, an improvement on the Sigma protocol, where the former hides the origin and amount of a transaction.<ref>Template:Cite journal</ref>

Decentralized IdentifiersEdit

Zero-knowledge proofs by their nature can enhance privacy in identity-sharing systems, which are vulnerable to data breaches and identity theft. When integrated to a decentralized identifier system, ZKPs add an extra layer of encryption on DID documents.<ref>Template:Cite journal</ref>

HistoryEdit

Zero-knowledge proofs were first conceived in 1985 by Shafi Goldwasser, Silvio Micali, and Charles Rackoff in their paper "The Knowledge Complexity of Interactive Proof-Systems".<ref name="knowledgecomplexity" /> This paper introduced the IP hierarchy of interactive proof systems (see interactive proof system) and conceived the concept of knowledge complexity, a measurement of the amount of knowledge about the proof transferred from the prover to the verifier. They also gave the first zero-knowledge proof for a concrete problem, that of deciding quadratic nonresidues mod Template:Var. Together with a paper by László Babai and Shlomo Moran, this landmark paper invented interactive proof systems, for which all five authors won the first Gödel Prize in 1993.

In their own words, Goldwasser, Micali, and Rackoff say:

Of particular interest is the case where this additional knowledge is essentially 0 and we show that [it] is possible to interactively prove that a number is quadratic non residue mod m releasing 0 additional knowledge. This is surprising as no efficient algorithm for deciding quadratic residuosity mod m is known when m’s factorization is not given. Moreover, all known NP proofs for this problem exhibit the prime factorization of m. This indicates that adding interaction to the proving process, may decrease the amount of knowledge that must be communicated in order to prove a theorem.

The quadratic nonresidue problem has both an NP and a co-NP algorithm, and so lies in the intersection of NP and co-NP. This was also true of several other problems for which zero-knowledge proofs were subsequently discovered, such as an unpublished proof system by Oded Goldreich verifying that a two-prime modulus is not a Blum integer.<ref>Template:Cite journal</ref>

Oded Goldreich, Silvio Micali, and Avi Wigderson took this one step further, showing that, assuming the existence of unbreakable encryption, one can create a zero-knowledge proof system for the NP-complete graph coloring problem with three colors. Since every problem in NP can be efficiently reduced to this problem, this means that, under this assumption, all problems in NP have zero-knowledge proofs.<ref>Template:Cite journal</ref> The reason for the assumption is that, as in the above example, their protocols require encryption. A commonly cited sufficient condition for the existence of unbreakable encryption is the existence of one-way functions, but it is conceivable that some physical means might also achieve it.

On top of this, they also showed that the graph nonisomorphism problem, the complement of the graph isomorphism problem, has a zero-knowledge proof. This problem is in co-NP, but is not currently known to be in either NP or any practical class. More generally, Russell Impagliazzo and Moti Yung as well as Ben-Or et al. would go on to show that, also assuming one-way functions or unbreakable encryption, there are zero-knowledge proofs for all problems in IP = PSPACE, or in other words, anything that can be proved by an interactive proof system can be proved with zero knowledge.<ref>Russell Impagliazzo, Moti Yung: Direct Minimum-Knowledge Computations. CRYPTO 1987: 40–51</ref><ref>Template:Cite book</ref>

Not liking to make unnecessary assumptions, many theorists sought a way to eliminate the necessity of one way functions. One way this was done was with multi-prover interactive proof systems (see interactive proof system), which have multiple independent provers instead of only one, allowing the verifier to "cross-examine" the provers in isolation to avoid being misled. It can be shown that, without any intractability assumptions, all languages in NP have zero-knowledge proofs in such a system.<ref>Template:Cite book</ref>

It turns out that, in an Internet-like setting, where multiple protocols may be executed concurrently, building zero-knowledge proofs is more challenging. The line of research investigating concurrent zero-knowledge proofs was initiated by the work of Dwork, Naor, and Sahai.<ref>Template:Cite journal</ref> One particular development along these lines has been the development of witness-indistinguishable proof protocols. The property of witness-indistinguishability is related to that of zero-knowledge, yet witness-indistinguishable protocols do not suffer from the same problems of concurrent execution.<ref>Template:Cite book</ref>

Another variant of zero-knowledge proofs are non-interactive zero-knowledge proofs. Blum, Feldman, and Micali showed that a common random string shared between the prover and the verifier is enough to achieve computational zero-knowledge without requiring interaction.<ref name="noninteractive" /><ref name="noninteractive2" />

Zero-Knowledge Proof protocolsEdit

The most popular interactive or non-interactive zero-knowledge proof (e.g., zk-SNARK) protocols can be broadly categorized in the following four categories: Succinct Non-Interactive ARguments of Knowledge (SNARK), Scalable Transparent ARgument of Knowledge (STARK), Verifiable Polynomial Delegation (VPD), and Succinct Non-interactive ARGuments (SNARG). A list of zero-knowledge proof protocols and libraries is provided below along with comparisons based on transparency, universality, plausible post-quantum security, and programming paradigm.<ref name=mouris21>Template:Cite journal</ref> A transparent protocol is one that does not require any trusted setup and uses public randomness. A universal protocol is one that does not require a separate trusted setup for each circuit. Finally, a plausibly post-quantum protocol is one that is not susceptible to known attacks involving quantum algorithms.

Zero-knowledge proof (ZKP) systems
ZKP System Publication year Protocol Transparent Universal Plausibly Post-Quantum Secure Programming Paradigm
Pinocchio<ref>Template:Cite book</ref> 2013 zk-SNARK Template:No Template:No Template:No Procedural
Geppetto<ref>Template:Cite book</ref> 2015 zk-SNARK Template:No Template:No Template:No Procedural
TinyRAM<ref>Template:Cite book</ref> 2013 zk-SNARK Template:No Template:No Template:No Procedural
Buffet<ref>Template:Cite journal</ref> 2015 zk-SNARK Template:No Template:No Template:No Procedural
ZoKrates<ref>Template:Cite book</ref> 2018 zk-SNARK Template:No Template:No Template:No Procedural
xJsnark<ref>Template:Cite book</ref> 2018 zk-SNARK Template:No Template:No Template:No Procedural
vRAM<ref>Template:Cite book</ref> 2018 zk-SNARG Template:No Template:Yes Template:No Assembly
vnTinyRAM<ref>Template:Cite journal</ref> 2014 zk-SNARK Template:No Template:Yes Template:No Procedural
MIRAGE<ref>Template:Cite journal</ref> 2020 zk-SNARK Template:No Template:Yes Template:No Arithmetic Circuits
Sonic<ref>Template:Cite book</ref> 2019 zk-SNARK Template:No Template:Yes Template:No Arithmetic Circuits
Marlin<ref>Template:Cite book</ref> 2020 zk-SNARK Template:No Template:Yes Template:No Arithmetic Circuits
PLONK<ref>Template:Cite journal</ref> 2019 zk-SNARK Template:No Template:Yes Template:No Arithmetic Circuits
SuperSonic<ref>Template:Cite book</ref> 2020 zk-SNARK Template:Yes Template:Yes Template:No Arithmetic Circuits
Bulletproofs<ref name="Bulletproofs" /> 2018 Bulletproofs Template:Yes Template:Yes Template:No Arithmetic Circuits
Hyrax<ref>Template:Cite book</ref> 2018 zk-SNARK Template:Yes Template:Yes Template:No Arithmetic Circuits
Halo<ref>Template:Cite journal</ref> 2019 zk-SNARK Template:Yes Template:Yes Template:No Arithmetic Circuits
Virgo<ref>Template:Cite book</ref> 2020 zk-SNARK Template:Yes Template:Yes Template:Yes Arithmetic Circuits
Ligero<ref>Template:Cite book</ref> 2017 zk-SNARK Template:Yes Template:Yes Template:Yes Arithmetic Circuits
Aurora<ref>Template:Cite book</ref> 2019 zk-SNARK Template:Yes Template:Yes Template:Yes Arithmetic Circuits
zk-STARK<ref>Template:Cite book</ref> 2019 zk-STARK Template:Yes Template:Yes Template:Yes Assembly
Zilch<ref name=mouris21 /> 2021 zk-STARK Template:Yes Template:Yes Template:Yes Object-Oriented

Security vulnerabilities of zero-knowledge systemsEdit

While zero-knowledge proofs offer a secure way to verify information, the arithmetic circuits that implement them must be carefully designed. If these circuits lack sufficient constraints, they may introduce subtle yet critical security vulnerabilities.

One of the most common classes of vulnerabilities in these systems is under-constrained logic, where insufficient constraints allow a malicious prover to produce a proof for an incorrect statement that still passes verification. A 2024 systematization of known attacks found that approximately 96% of documented circuit-layer bugs in SNARK-based systems were due to under-constrained circuits.<ref>Template:Cite book</ref>

These vulnerabilities often arise during the translation of high-level logic into low-level constraint systems, particularly when using domain-specific languages such as Circom or Gnark. Recent research has demonstrated that formally proving determinism – ensuring that a circuit's outputs are uniquely determined by its inputs – can eliminate entire classes of these vulnerabilities.<ref>Template:Cite journal</ref>

See alsoEdit

Template:Cols

Template:Colend

External linksEdit

ReferencesEdit

Template:Reflist