Skip to main content

What Is the Trade-off in Terms of Latency or Gas Fees for Using a Commit-Reveal Scheme?

Commit-reveal schemes significantly increase both latency and gas fees compared to a single, instant transaction. Latency increases because the process requires two separate on-chain transactions (the "commit" and the "reveal") which must be confirmed in different blocks, introducing a delay.

Gas fees are higher because the user pays for two transactions, and the smart contract must perform extra computation for hashing and verification, making the overall trading process more expensive and slower.

What Are the Computational Overheads Associated with the Two-Step Commit-Reveal Process?
What Is the ‘Commitment’ Step in a Commit-Reveal Scheme and What Information Does It Contain?
Explain the Concept of a ‘Commit-Reveal Scheme’ as an Anti-Front-Running Measure
What Is a Potential Vulnerability of a Commit-Reveal Scheme If the ‘Reveal’ Step Is Delayed?