What Is a Commit-Reveal Scheme and How Does It Deter Malicious Transaction Ordering?
A commit-reveal scheme is a two-step cryptographic protocol. First, a user "commits" to a transaction by submitting a hashed version of the details, which is public but unreadable.
Second, the user "reveals" the full transaction details after a specific time or condition is met. This prevents front-runners from gaining prior knowledge of the trade specifics, as they cannot exploit the commitment hash.