September 2021
Beginner to intermediate
400 pages
12h 36m
English
Can you tell if a hash function provides hiding and binding if used as a commitment scheme?.
A hash function is hiding thanks to the pre-image resistance property; that is, if your input is random enough so that no one can guess it. To fix that, you can generate a random number and hash it with your input, and later, you can reveal both your input and the random number to open your commitment. A hash function is binding thanks to the second pre-image resistance property.
By the way, there is no way this string represents 256 bits (32 bytes), right? How is this secure then?.
We don’t care about collision resistance. We only care about second pre-image resistance. Thus, we can truncate the digest to ...
Read now
Unlock full access