hard20 pts · first answer countssmart-contract-securitycryptography
Commit-reveal that can be copied
In a sealed-bid game, players commit keccak256(abi.encode(choice, salt)) and reveal later. An attacker copies a winner's commit hash and reveals the same values after seeing them in the mempool. What is the fix?