Closed lisasi closed 8 years ago
The signature of a game state needs to contain the gameID, otherwise the signed game state could wrongly be used in a different game.
The hash used for signing is now calculated based on the state AND the gameID. The tests are changed accordingly.
Without this change, this could be a possible way to cheat in a game.
Transformed tests accordingly.
The signature of a game state needs to contain the gameID, otherwise the signed game state could wrongly be used in a different game.
Description
The hash used for signing is now calculated based on the state AND the gameID. The tests are changed accordingly.
Related Issue
165 Add gameID to hash of game state
Motivation and Context
Without this change, this could be a possible way to cheat in a game.
How Has This Been Tested?
Transformed tests accordingly.
Types of changes
Checklist contributor:
Checklist reviewer: