What Is the ‘Commitment’ Step in a Commit-Reveal Scheme and What Information Does It Contain?

The 'commitment' step is the first phase of the two-step commit-reveal process. In this step, the user calculates a cryptographic hash of their intended transaction details, which include the trade size, price, and a random secret number (salt).

The user then submits this hash to the blockchain. Crucially, the commitment contains no information that a front-runner can use to determine the trade's specifics, but it cryptographically proves that the user decided on the trade before the transaction was confirmed.

Why Is the Inclusion of a ‘Salt’ or Random Secret Number Essential in the Commitment Hash?
How Does the Blockchain Verify That the ‘Reveal’ Matches the Original ‘Commitment’?
What Is the Disadvantage of Using a Commit-Reveal Scheme for High-Speed Trading?
How Do ‘Commit-Reveal’ Schemes Mitigate Front-Running?
How Do Commit-Reveal Schemes on DEXs Specifically Prevent Front-Running?
Can a User Be Penalized for Submitting a ‘Commitment’ but Failing to Submit the ‘Reveal’?
What Is a Commit-Reveal Scheme and How Does It Deter Malicious Transaction Ordering?
What Are the Computational Overheads Associated with the Two-Step Commit-Reveal Process?

Glossar