Please note that the content of this book primarily consists of articles
available from Wikipedia or other free sources online. In cryptography,
a commitment scheme allows one to commit to a value while keeping it
hidden, with the ability to reveal the committed value later.
Commitments are used to bind a party to a value so that they cannot
adapt to other messages in order to gain some kind of inappropriate
advantage. They are important to a variety of cryptographic protocols
including secure coin flipping, zero-knowledge proofs, and secure
computation.In simple protocols, the commit phase consists of a single
message from the sender to the receiver. This message is called the
commitment. It is essential that the specific value chosen cannot be
known by the receiver at that time (this is called the hiding property).
A simple reveal phase would consist of a single message, the opening,
from the sender to the receiver, followed by a check performed by the
receiver. The value chosen during the commit phase must be the only one
that the sender can compute and that validates during the reveal phase
(this is called the binding property).