zero-knowledge proof — web3

let’s understand with this easy example

post image

So I was talking to this guy who calls himself a web3 nerd and he thought Zero-Knowledge is some sort of boot camp thing for people starting out in crypto.

Well, for starters, ZKP is a way of doing authentication where no passwords are exchanged, which means they cannot be stolen. This is cool because it makes your communication so secure and protected that nobody else can find out what you’re communicating about or what files you are sharing with each other.

Confusing right? Let’s understand this example.

You and I got some amount of money (say I got $20 and you got $50). Now, I want to know if we have the same amount of money without telling each other how much we hold. So we got 5 locked boxes each labelled $10, $20, $30, $40 and, $50 in a room.

I go inside and keep the key of the box labeled $20, keep the key to only $20 box, and then all the boxes are locked again. Now you come in with a paper note and slide it inside the box labeled $50.

Now, I come back with a key to my $20 box and open it. If I find your slip there, Bingo.
If not, we don’t have the same amount of money but you could’ve more or less.

Just remove this stupid example and think in terms of protocols and that is Zero-Knowledge Proof.

Tune in for more stories. Feedbacks & fact corrections are really appreciated!

#web3