I want to implement a small guess-the-word game on Ethereum, where the user needs to guess a word from a given set of words. The procedure is following: 1. The user attempts the guess. 1.1. The user fails the guess. 1.2. The user succeeds the guess - a new word is randomly generated (by using Oraclize).
Theoretically, any hidden raw data could be querried on the blockchain if the stakes are high enough to waste the computational power. Even hashed with keccak256, given the known set of words (say, 200 words), it would have been possible to get the keccak256 values of every word and just reverse engineer the raw data.
The question is: is there a way to somehow organize such a pipeline, so that even querrying the raw data of blockchain, the attacker (even the organizer) could not be able to know the newly generated word?
privatevariable. It is inaccessible for anybody outside contract. Then new game can be started as you plan it. – Alex G.P. May 21 '18 at 04:14Oraclize can still provide you solution, by using the encrypt/decrypt datasource it provides, and you're technically able to encrypt a secret, and then decrypt in the reveal phase. Risk here is both you and Oraclize can decrypt the secret.
– DenisM May 29 '18 at 22:37