Live data from Hacker News

Confess your love with zero-knowledge

zkcrush.xyz

171–180 of 205 posts

Re: Confess your love with zero-knowledge

#171

Humorous, but not zero-knowledge at all. They could be on to something here though. Maybe blockchain's "killer app" will be Verifiable Romance?

Similar to how blockchains killer app is delivering pizza. You deliver the pizza as normal then do something something blockchain and now it is blockchain.

Re: Confess your love with zero-knowledge

#173
post #160

Earlier quoted context omitted.

Doesn't work, because you can reasonably brute-force possible gifts.

But why would you do it?

I think the point is just that this is a misleading example of zero-knowledge proofs which are meaningful different cryptographically.

Re: Confess your love with zero-knowledge

#174
post #86

Last year my wife and I suspected we might have gotten each other the same Christmas gift, but didn’t want to spoil the surprise in case we didn’t. So we compared SHA256 hashes... and sure enough they both came out cb17007d (theragun)

This explained zero knowledge so much easier than that parable about the caves, thank you.

My favorite analogy is someone has a Wheres Waldo photo. They can prove to you they know where Waldo is by getting a piece of paper (the size of the photo) with a cut out around Waldo. When they hold it up and show you Waldo through the cutout you have zero knowledge about his location.

Re: Confess your love with zero-knowledge

#175
post #90

Earlier quoted context omitted.

Yeah I'm not sure what's the best protocol that's actually zero-knowledge here, but since we both trusted each other to only want to find out whether or not our gifts were the same, and otherwise to not spoil the surprise, this did the job.

You could write a script that does the hash comparison for you and simply outputs “Yes” or “No” for whether the hashes are identical.

You could just write a script that lets you write an input and your spouse writes an input and then compares the two inputs without showing them - no need for hashing at all.

Re: Confess your love with zero-knowledge

#176

Earlier quoted context omitted.

Doesn't work, because you can reasonably brute-force possible gifts.

You could reveal the hash letter-by-letter and stop as soon as a letter differs so there's more possibilities.

> stop as soon as a letter differs

Oops - you just exposed a timing attack side channel

Re: Confess your love with zero-knowledge

#177

Earlier quoted context omitted.

This explained zero knowledge so much easier than that parable about the caves, thank you.

But it isn't zero-knowledge. If it was zero-knowledge, you would be able to know what you had the same gift/crush, but it would be impossible to prove to someone else. Mere hashing doesn't do that. For the crush example (This site), your crush could show everyone the link and their name. For that matter, someone could enter the names of everyone you knew in turn, until you were outed.

[deleted]

Re: Confess your love with zero-knowledge

#178

Earlier quoted context omitted.

This explained zero knowledge so much easier than that parable about the caves, thank you.

My favorite analogy is someone has a Wheres Waldo photo. They can prove to you they know where Waldo is by getting a piece of paper (the size of the photo) with a cut out around Waldo. When they hold it up and show you Waldo through the cutout you have zero knowledge about his location.

If the mask paper is the same size as the waldo photo, one can trivially tell where waldo is by just looking at the location of the cutout

I think for this to work, the piece of paper with the cutout must be much larger than the full waldo photo. The actual cutout would always be in the center of this mask paper. Then the waldo photo can be moved around behind this mask.

Re: Confess your love with zero-knowledge

#179
post #86

Last year my wife and I suspected we might have gotten each other the same Christmas gift, but didn’t want to spoil the surprise in case we didn’t. So we compared SHA256 hashes... and sure enough they both came out cb17007d (theragun)

[deleted]
Post reply on HN