I have a contract that takes payment to start a game, when the game is finished the score is recorded in the contract and the highest score after a certain amount of blocks takes all that has been paid to play, and the cycle restarts.
What are some ways I can secure the input of the score so a user doesn’t set up a bot to wait till the last block and send in a randomly high score and take the winnings?
Is it possible to have a user sign a transaction that produces an ID that can be checked before the score is recorded?