ArticleslgStudy

computer science

Proof of knowledge

Proof of knowledge is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Proof of knowledge rather than just read about it. In short: In cryptography, 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.

Key takeaways

  • Proof of knowledge belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Proof of knowledge to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Proof of knowledge from memory before moving on to harder problems.

Reference excerpt

In cryptography, 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), 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 bounded machines. In this case, the set of knowledge elements is limited to a set of witnesses of some language in NP. Let x {\displaystyle x} be a statement of language L {\displaystyle L} in NP, and W ( x ) {\displaystyle W(x)} the set of witnesses for x that should be accepted in the proof. This allows us to define the following relation: R = { ( x , w ) : x ∈ L , w ∈ W ( x ) } {\displaystyle R=\{(x,w):x\in L,w\in W(x)\}} . A proof of knowledge for relation R {\displaystyle R} with knowledge error κ {\displaystyle \kappa } is a two party protocol with a prover P {\displaystyle P} and a verifier V {\displaystyle V} with the following two properties:

Completeness: If ( x , w ) ∈ R {\displaystyle (x,w)\in R} , then the prover P {\displaystyle P} who knows witness w {\displaystyle w} for x {\displaystyle x} succeeds in convincing the verifier V {\displaystyle V} of his knowledge. More formally: Pr ( P ( x , w ) ↔ V ( x ) → 1 ) = 1 {\displaystyle \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 {\displaystyle E} in extracting the witness, given oracle access to a possibly malicious prover P ~ {\displaystyle {\tilde {P}}} , must be at least as high as the success probability of the prover P ~ {\displaystyle {\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: Let R {\displaystyle R} be a witness relation, W ( x ) {\displaystyle W(x)} the set of all witnesses for public value x {\displaystyle x} , and κ {\displaystyle \kappa } the knowledge error. A proof of knowledge is κ {\displaystyle \kappa } -valid if there exists a polynomial-time machine E {\displaystyle E} , given oracle access to P ~ {\displaystyle {\tilde {P}}} , such that for every P ~ {\displaystyle {\tilde {P}}} , it is the case that E P ~ ( x ) ( x ) ∈ W ( x ) ∪ { ⊥ } {\displaystyle E^{{\tilde {P}}(x)}(x)\in W(x)\cup \{\bot \}} and Pr ( E P ~ ( x ) ( x ) ∈ W ( x ) ) ≥ Pr ( P ~ ( x ) ↔ V ( x ) → 1 ) − κ ( x ) . {\displaystyle \Pr(E^{{\tilde {P}}(x)}(x)\in W(x))\geq \Pr({\tilde {P}}(x)\leftrightarrow V(x)\rightarrow 1)-\kappa (x).}

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Proof of knowledge

Start with the simplest possible case. Write down what Proof of knowledge claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Proof of knowledge before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Proof of knowledge ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Proof of knowledge

In research
Proof of knowledge appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Proof of knowledge in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Proof of knowledge is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computational complexity theory, Cryptography, so understanding it makes those chapters shorter.
In everyday life
Look for Proof of knowledge outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Proof of knowledge in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Proof of knowledge means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Proof of knowledge out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Proof of knowledge in simple terms?

In cryptography, 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.

Why does Proof of knowledge matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Proof of knowledge?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Proof of knowledge.

Tags

  • Computational complexity theory
  • Cryptography

Keep exploring