Implementing a trusted guess

The goal is to create a fast and trustworthy way of comparing a guess against a pre-determined (but unannounced) actual value. A method that ensures that their is no cheating. That if the guess is correct (if it matches the pre-determined actual value), it is acknowledged as correct. That is: the actual value can't be changed to make sure the guess is wrong!
The proposed solution uses a well known hash function, along with a pre-announced validation key and a nonce that is revealed after the guess is made.
Would you like to...