163 points · by ColinWright · 4y ago · 59 comments
Computer scientist Amit Sahai, PhD, is asked to explain the concept of zero-knowledge proofs to 5 different people; a child, a teen, a college student, a grad student, and an expert. Using a variety of techniques, Amit breaks down what zero-knowledge proofs are and why it's so exciting in the world of cryptography.
Amit Sahai, PhD, is a professor of computer science at UCLA Samueli School of Engineering.
From S1 E16 of Computer Scientist Explains One Concept in 5 Levels of Difficulty | WIRED
You give one black and one red to each person (Alice and Bob), and keep the last red.
The scheme is the following:
Alice will puts her two cards ON TOP of the remaining red card: to say yes, she puts her black card on top of her red card, to say no she does the opposite (red on top of black).
Bob will put his pair of cards BELOW the remaining red card, and to say yes he puts his black card at the bottom, with his red card in between, and to say no he does the opposite.
Then you cut the deck enough times to obfuscate who've done what, and you know that they've both day yes if you have the two blacks cards next to each other (or both at each ends of the deck). If anyone (or both of them) said no, you'd have black cards separated by one red card.
[0] Dining Kid-Cryptographers, https://github.com/secYOUre/DKC
I understand that the game is related to "the dining cryptographers", but I haven't memorized that piece. I read it once? I can probably find it on Wikipedia?
I recommend making your game a self-contained work that does not rely on at least one of the players remembering some details about a very specific thought experiment.
While there is no background information about the game in the DKC repository at the moment, the game comes with a set of cards where the equipment, rules, and finishing criteria are described [1]. If there is interested for that, I will add more context on the game and its contribution towards understanding secure multi-party computations for the youngest. I may still have the slide deck I used to present this work at the end of the hackathon, which may provide some further introductory material.
[1] DKC's rules https://github.com/secYOUre/DKC/tree/master/self-print/300-d...
I dont get the exercise
Why do that with five cards? Why can Alice and Bob not just hand a single card to you, saying "Yes" or "No". You then mix the cards and reveal them. Now you know if there's a "No" but not who said it.
However, it does leak knowledge to Alice and Bob; if either said yes they will know what the other chose. This is probably unavoidable.
Think of RAID storage. If some drives can't be read, but not too many, you can still read all the data.
It's almost magical how it's possible to prove that N billion steps of a simulated virtual computer, run exactly according to specification, complete with CPU and memory, given a particular set of input files (or even a hash of an input) and program (or hash of a program), produces a particular set of output files.
All summarised in a short proof that a verifier can easily and quickly check, so it doesn't have to redo the computation itself - it can trust the outputs it receives, due to the proof.
The cost of proving execution is high compared with the cost of execution without proof.
(Even in a dedicated proof-of-execution hardware CPU, which by the way I'm also working on a little, in case someone out there finds themselves looking to hire someone doing this sort of thing ;-)
On the other hand, for proof-of-stake and similar systems, these kinds of proofs completely change the dynamics because there is no need for every node to duplicate all the state machine updates. Current blockchains have hundreds or thousands of full nodes, each of them executing the same code to verify the behaviour is the same. They can accept proofs instead, so that executions are done by only a few nodes. That greatly changes the scaling cost.
With a few more tricks it starts to look more like a giant CRDT with lightweight nodes maintaining just a "view" of the part they are interested in, and some more tricks on top of that for latency hiding, it starts to look more real-time, as in MMO levels of interactive performance, not the blockchain you are used to.
What ratio are we talking about here roughly? Is is 10% higher or 1000x higher?
It's possible to build more standard CPUs as well which use ordinary arithmetic, logic and memory, at some cost to efficiency. But the cost is almost entirely borne by the prover.
The Cairo system from Starkware is a pretty good, modern CPU-like system (albeit using finite fields and an unusual CPU model, instead of normal numbers), which is simpler than its predecessors in some ways because the techniques have matured and they have been able to use techniques devised by many different R&D groups before that iteration.
As far as I'm aware, however, performance at the billions of steps level is more on the frontier.
I'd love to share details of what I've been working on, and I hope I will be able to one day. One problem is I'm looking for work, and there's an interesting company I'm negotiating with but their view of IP may prevent me from publishing my own work in this area after I've started. Meanwhile, I haven't published yet, even though I've done a lot of work on it. I do not like this, I always want to share, but...
I can put a piece of paper with Wally's silhouette cut off in front of the book. Align Wally to fit into the silhouette and you're done! The paper just needs to be considerably bigger than the actual book, so other people can tell I know where Wally is without actually knowing his location.
How to explain zero-knowledge protocols to your children (1998) [pdf] - https://news.ycombinator.com/item?id=14261067 - May 2017 (41 comments)
How to explain zero-knowledge protocols to your children - https://news.ycombinator.com/item?id=12059309 - July 2016 (2 comments)
How to Explain Zero-Knowledge Protocols to Your Children (1998) [pdf] - https://news.ycombinator.com/item?id=10400757 - Oct 2015 (6 comments)
How to explain zero-knowledge protocols to your children (1998) [pdf] - https://news.ycombinator.com/item?id=8349721 - Sept 2014 (13 comments)
Why not simply send Mick down the left path and show him returning from the right? That directly demonstrates Mick knows a passage from left to right (at least to all observers at the fork. home viewers still worry about video editing).
With your simple proposal, everyone watching is convinced. In the more complicated version, only the person calling left/right knows for sure. As far as everyone else knows, Mick doesn't actually know the secret and the reporter colluded with Mick to pre-arrange a sequence of left/right calls.
Citation needed.
Maybe the paper should have a preface. It might work for entertaining someone who already knows all about zero knowledge proofs, but it doesn't seem to do much to educate those who do not.
And this is why "How to explain zero-knowledge protocols to your children" is probably the worst way to explain zero-knowledge protocols to anyone. Its not explaining what a zero-knowledge proof is or how it works. It's explaining what a simulator is when proving a protocol is zero-knowledge . Oh, and the explanation only works for interactive protocols.
Ah! I did not get that part of it. Thanks for clarifying.
I don't think the story made that part clear enough. For example, in the epilogue it says "Countless people saw Mick Ali on television, and he became famous."
But, as you say, one of the main points was that watching it on television shouldn't have been enough to convince the viewers at home. They could have been watching the faked version.
It would have been clearer if the epilogue had said "Countless viewers saw Mick Ali on television and remained skeptical, but the reporter himself was convinced Ali must have been telling the truth."
And so on.