Skip to main content

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.

What Is the Disadvantage of Using a Commit-Reveal Scheme for High-Speed Trading?
What Are the Two Distinct Phases of a Commit-Reveal Scheme?
How Do Commit-Reveal Schemes Technically Prevent Front-Running in Blockchain Transactions?
What Cryptographic Principle Underpins the “Commit” Phase of the Scheme?