well, if code is only streaming and verifying it would possibly take A LOT of data reading but its technically possible to verify all the transactions of the game with Hive API.
You are viewing a single comment's thread from:
well, if code is only streaming and verifying it would possibly take A LOT of data reading but its technically possible to verify all the transactions of the game with Hive API.
I think it's currently technically possible by:
(a) Streaming all the blocks of the blockchain and separating out custom_json that match your game criteria.
(b) Pulling the operations of each user account involved in the game and separating out custom_json that match your game criteria.
These approaches are OK if you have a centralised server for your game that can do this work and update the current game state for all players.
However neither of them is really suitable under a decentralised approach, i.e. if each game participant has to carry out this work themselves to validate the current game position. You don't want to be streaming the last 10,000 blocks to find 9 noughts-and-crosses moves.
Is there currently a better way?
Yes, you are right, that is why i said its 'technically possible' because:
It pretty impractical to do this on some public Node (Hive API). so in conclusion the game is decentralized and if you have doubts you can always verify running your own node.. a better way? maybe this tic-tac-toe game can have a ledger & blocks storage & hash verification (like hive-engine) which would be faster since now your only looking the game transactions (but a mumbo jumbo of blockchain code witch is totally op for a tic-tac-toe game), don't know if it makes sense. the final goal is that it can't be cheated, you can always verify.