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.