HOME

TheInfoList



OR:

In
cryptography Cryptography, or cryptology (from grc, , translit=kryptós "hidden, secret"; and ''graphein'', "to write", or ''-logia'', "study", respectively), is the practice and study of techniques for secure communication in the presence of adve ...
, a proof of knowledge is an interactive proof in which the prover succeeds in 'convincing' a verifier that the prover knows something. What it means for a machine to 'know something' is defined in terms of computation. A machine 'knows something', if this something can be computed, given the machine as an input. As the program of the prover does not necessarily spit out the knowledge itself (as is the case for
zero-knowledge proofs In cryptography, a zero-knowledge proof or zero-knowledge protocol is a method by which one party (the prover) can prove to another party (the verifier) that a given statement is true while the prover avoids conveying any additional information a ...
) a machine with a different program, called the knowledge extractor is introduced to capture this idea. We are mostly interested in what can be proven by
polynomial time In computer science, the time complexity is the computational complexity that describes the amount of computer time it takes to run an algorithm. Time complexity is commonly estimated by counting the number of elementary operations performed by ...
bounded machines. In this case the set of knowledge elements is limited to a set of witnesses of some
language Language is a structured system of communication. The structure of a language is its grammar and the free components are its vocabulary. Languages are the primary means by which humans communicate, and may be conveyed through a variety of ...
in NP. Let x be a statement of language L in NP, and W(x) the set of witnesses for x that should be accepted in the proof. This allows us to define the following relation: R= \. A proof of knowledge for relation R with knowledge error \kappa is a two party protocol with a prover P and a verifier V with the following two properties: # Completeness: If (x,w) \in R, then the prover P who knows witness w for x succeeds in convincing the verifier V of his knowledge. More formally: \Pr(P(x,w)\leftrightarrow V(x) \rightarrow 1) =1, i.e. given the interaction between the prover P and the verifier V, the probability that the verifier is convinced is 1. # Validity: Validity requires that the success probability of a knowledge extractor E in extracting the witness, given oracle access to a possibly malicious prover \tilde P, must be at least as high as the success probability of the prover \tilde P in convincing the verifier. This property guarantees that no prover that doesn't know the witness can succeed in convincing the verifier.


Details on the definition

This is a more rigorous definition of Validity:
Mihir Bellare Mihir Bellare is a cryptographer and professor at the University of California San Diego. He has published several seminal papers in the field of cryptography (notably in the area of provable security), many of which were co-written with Phillip R ...
, Oded Goldreich
On Defining Proofs of Knowledge
CRYPTO Crypto commonly refers to: * Cryptocurrency, a type of digital currency secured by cryptography and decentralization * Cryptography, the practice and study of hiding information Crypto or Krypto may also refer to: Cryptography * Cryptanalysis ...
1992: 390–420
Let R be a witness relation, W(x) the set of all witnesses for public value x, and \kappa the knowledge error. A proof of knowledge is \kappa-valid if there exists a polynomial-time machine E, given oracle access to \tilde P, such that for every \tilde P, it is the case that E^(x) \in W(x) \cup \ and \Pr(E^(x) \in W(x)) \geq \Pr(\tilde P(x)\leftrightarrow V(x) \rightarrow 1) - \kappa(x). The result \bot signifies that the Turing machine E did not come to a conclusion. The knowledge error \kappa(x) denotes the probability that the verifier V might accept x, even though the prover does in fact not know a witness w. The knowledge extractor E is used to express what is meant by the knowledge of a
Turing machine A Turing machine is a mathematical model of computation describing an abstract machine that manipulates symbols on a strip of tape according to a table of rules. Despite the model's simplicity, it is capable of implementing any computer algor ...
. If E can extract w from \tilde P, we say that \tilde P knows the value of w. This definition of the validity property is a combination of the validity and strong validity properties. For small knowledge errors \kappa(x), such as e.g. 2^ or 1/\mathrm(, x, ) it can be seen as being stronger than the
soundness In logic or, more precisely, deductive reasoning, an argument is sound if it is both valid in form and its premises are true. Soundness also has a related meaning in mathematical logic, wherein logical systems are sound if and only if every formul ...
of ordinary interactive proofs.


Relation to general interactive proofs

In order to define a specific proof of knowledge, one need not only define the language, but also the witnesses the verifier should know. In some cases proving membership in a language may be easy, while computing a specific witness may be hard. This is best explained using an example: Let \langle g \rangle be a
cyclic group In group theory, a branch of abstract algebra in pure mathematics, a cyclic group or monogenous group is a group, denoted C''n'', that is generated by a single element. That is, it is a set of invertible elements with a single associative bi ...
with generator g in which solving the
discrete logarithm In mathematics, for given real numbers ''a'' and ''b'', the logarithm log''b'' ''a'' is a number ''x'' such that . Analogously, in any group ''G'', powers ''b'k'' can be defined for all integers ''k'', and the discrete logarithm log' ...
problem is believed to be hard. Deciding membership of the language L=\ is trivial, as every x is in \langle g \rangle. However, finding the witness w such that g^w=x holds corresponds to solving the discrete logarithm problem.


Protocols


Schnorr protocol

One of the simplest and frequently used proofs of knowledge, the ''proof of knowledge of a
discrete logarithm In mathematics, for given real numbers ''a'' and ''b'', the logarithm log''b'' ''a'' is a number ''x'' such that . Analogously, in any group ''G'', powers ''b'k'' can be defined for all integers ''k'', and the discrete logarithm log' ...
'', is due to Schnorr. The protocol is defined for a
cyclic group In group theory, a branch of abstract algebra in pure mathematics, a cyclic group or monogenous group is a group, denoted C''n'', that is generated by a single element. That is, it is a set of invertible elements with a single associative bi ...
G_q of order q with generator g. In order to prove knowledge of x=\log_g y, the prover interacts with the verifier as follows: # In the first round the prover commits himself to randomness r; therefore the first message t=g^r is also called ''commitment''. # The verifier replies with a ''challenge'' c chosen at random. # After receiving c, the prover sends the third and last message (the ''response'') s=r+cx reduced modulo the order of the group. The verifier accepts, if g^s = t y^. We can see this is a valid proof of knowledge because it has an extractor that works as follows: # Simulate the prover to output t=g^r. The prover is now in state Q. # Generate random value c_1 and input it to the prover. It outputs s_1=r+c_1x. # Rewind the prover to state Q. Now generate a different random value c_2 and input it to the prover to get s_2=r+c_2x. # Output (s_1-s_2)(c_1-c_2)^. Since (s_1-s_2)=(r+c_1x)-(r+c_2x)=x(c_1-c_2), the output of the extractor is precisely x. This protocol happens to be zero-knowledge, though that property is not required for a proof of knowledge.


Sigma protocols

Protocols which have the above three-move structure (commitment, challenge and response) are called ''sigma protocols''. The Greek letter \Sigma visualizes the flow of the protocol. Sigma protocols exist for proving various statements, such as those pertaining to discrete logarithms. Using these proofs, the prover can not only prove the knowledge of the discrete logarithm, but also that the discrete logarithm is of a specific form. For instance, it is possible to prove that two logarithms of y_1 and y_2 with respect to bases g_1 and g_2 are equal or fulfill some other
linear Linearity is the property of a mathematical relationship ('' function'') that can be graphically represented as a straight line. Linearity is closely related to '' proportionality''. Examples in physics include rectilinear motion, the linear ...
relation. For ''a'' and ''b'' elements of Z_q, we say that the prover proves knowledge of x_1 and x_2 such that y_1= g_1^ \land y_2=g_2^ and x_2 = a x_1 + b. Equality corresponds to the special case where ''a'' = 1 and ''b'' = 0. As x_2 can be trivially computed from x_1 this is equivalent to proving knowledge of an ''x'' such that y_1= g_1^ \land y_2=^ g_2^b. This is the intuition behind the following notation,Proof Systems for General Statements about Discrete Logarithms
/ref> which is commonly used to express what exactly is proven by a proof of knowledge. : PK\{(x): y_1= g_1^{x} \land y_2={(g_2^a)}^{x} g_2^b \}, states that the prover knows an ''x'' that fulfills the relation above.


Applications

Proofs of knowledge are useful tool for the construction of identification protocols, and in their non-interactive variant, signature schemes. Such schemes are: *
Schnorr signature In cryptography, a Schnorr signature is a digital signature produced by the Schnorr signature algorithm that was described by Claus Schnorr. It is a digital signature scheme known for its simplicity, among the first whose security is based on the ...
They are also used in the construction of group signature and anonymous digital credential systems.


See also

* Cryptographic protocol * Zero-knowledge proof *
Interactive proof system In computational complexity theory, an interactive proof system is an abstract machine that models computation as the exchange of messages between two parties: a ''prover'' and a ''verifier''. The parties interact by exchanging messages in order t ...
*
Topics in cryptography The following outline is provided as an overview of and topical guide to cryptography: Cryptography (or cryptology) – practice and study of hiding information. Modern cryptography intersects the disciplines of mathematics, computer scie ...
* Zero-knowledge password proof * Soundness (interactive proof)


References

Computational complexity theory Cryptography