Cryptography
Commitment Scheme
A cryptographic method to commit to a value while hiding it, later revealing the value as proven.
Last Updated
2026-03-19
Related Concepts
What is Commitment Scheme?
A commitment scheme is a cryptographic technique that allows one party to "commit" to a value while keeping it hidden from others, with the ability to "reveal" it later to prove it was the original choice.
How does Commitment Scheme work?
- Commit Phase: The user picks a value (e.g., a
vote) and a secret random number ("salt"). They send a hash of these items to the network. - Hiding: No one can see the original value just by looking at the hash.
- Binding: The user cannot change the value because a different value would result in a different hash.
- Reveal Phase: Later, the user shares the original value and the salt.
- Verify: Anyone can re-hash the revealed data to see if it matches the original commitment.
Why does Commitment Scheme matter?
It is essential for ensuring fairness in decentralized applications. It is used in "sealed-bid" auctions, secret voting systems, and for generating verifiable on-chain randomness (to prevent participants from "gaming" the outcome).
Key features of Commitment Scheme
- Hiding (the value is secret until revealed)
- Binding (the value cannot be changed)
- Cryptographically secure
- Essential for fair "reveal" mechanics
- Foundation for many privacy-preserving protocols
Examples of Commitment Scheme
- A DAO
votewhere everyone commits theirvotefirst, then all votes are revealed at once. - A "Commit-Reveal" random number generator used in an on-chain game.
- Using a "Merkle Root" as a commitment to a large list of data (like an airdrop whitelist).
