Docsity

Understanding Proofs & Zero-Knowledge: Interactive Proofs, Applications & Fiat-Shamir, Study notes of Design and Analysis of Algorithms

Partial preview of the text

Download Understanding Proofs & Zero-Knowledge: Interactive Proofs, Applications & Fiat-Shamir and more Study notes Design and Analysis of Algorithms in PDF only on Docsity!

Breaking news:

Exploit in OpenSSH

 (^) One-off error  (^) Allows local user to gain root privileges  (^) Remote exploit not ruled out  (^) One line patch solves the problem channel_lookup(int id) { Channel *c;

  • if (id < 0 || id > channels_alloc) {
  • if (id < 0 || id >= channels_alloc) { log("channel_lookup: %d: bad id", id); return NULL; }

Outline

 (^) Some theory  (^) What is a proof?  (^) What is knowledge?  Interactive proofs  (^) Zero knowledge proofs  (^) ZK proofs for NP languages  ZK proofs of knowledge  (^) Applications

El Grande Kahuna

To show possession of a

secret to another party

without giving away the

secret

Outline

 (^) Some theory  (^) What is a proof?  (^) What is knowledge?  Interactive proofs  (^) Zero knowledge proofs  (^) ZK proofs for NP languages  ZK proofs of knowledge  (^) Applications

Properties of a proof system

 (^) Soundness - I’ll never believe a false statement  (^) Completeness - I’ll believe all true statements  (^) Goedel’s incompleteness theorem - any “sufficiently complex” proof system cannot be both complete and sound  (^) Turing’s halting problem

The Prover and the Verifier

 (^) Proofs are defined by their verification procedure  (^) The onus is on the prover to convince the verifier  (^) Verification is typically simple - proving is typically hard

Sidebar:

Theory of Computation 101

 (^) NP = set of languages which can be recognized in polynomial time by a non- deterministic Turing machine  (^) Remember how a non-deterministic Turing machine (NTM) is simulated by a deterministic Turing machine (TM)?

Sidebar:

Theory of Computation 101

Same way that a non-deterministic finite automaton (NFA) is simulated by a deterministic finite automaton (DFA)! …remember?

Sidebar:

Theory of Computation 101

0 1 2 4 Start state Final state a b c Nondeterministic automaton : for every state, given an input there are many states to go to next the DFA “knows” which one to take 3 b

Sidebar:

Theory of Computation 101

How to make a DFA do the work of an NFA  (^) States = Powerset of NFA states = 2|NFA|  (^) Final states = any “state” which includes any of the NFA’s final states Essentially - traverse a search tree sequentially

Sidebar:

Theory of Computation 101

NP “search tree” Mostly “dead ends” Solution! … … But if you just tell me the path in the search tree that led to a solution, I can check it!

Outline

 (^) Some theory  (^) What is a proof?  (^) What is knowledge?  Interactive proofs  (^) Zero knowledge proofs  (^) ZK proofs for NP languages  (^) Applications

What is a gain of knowledge?

 (^) Defined with respect to computational ability  (^) Bob gains knowledge after interacting with Alice if: After the interaction Bob can easily compute something that was tough for him earlier

Outline

 (^) Some theory  (^) What is a proof?  (^) What is knowledge?  Interactive proofs  (^) Zero knowledge proofs  (^) ZK proofs for NP languages  ZK proofs of knowledge  (^) Applications