FRENCH SEE BELOW / FRANÇAIS VOIR PLUS BAS
This is a proposal to help DW with its anti bot rule.
Bots scanning the blockchain are not illegal, as the blockchain is public. What is not allowed in game industry is to automate game sessions to take unfair advantage on true gamers.
So, what should be done in the game should be signed to be validated.
Here is a little trick simple to use :
Add a field in the json, allowing your sever to verify it's published by the game and not a bot.
An easy way to do so, is to use an XOR encryption, for example
Take the tx idea of the action ( attack, upgrade, soldiers hiring, etc)
Create in your db something like a timestamp on when the action was performed or some random secret word
Perform an XOR between those two and add the result in the json as signature.
Xor is well known as it uses the same command to find the original text :)
Then your server only needs to XOR the json added field to verify it was made by the game and not from a bot.
Hope it helped, it's only an idea.
Legit players are always welcomed to join the FRENCHIES
Not yet in the game ? Join DrugWars now
Ceci est une idée pour aider DW dans sa lutte anti bot
Utiliser un bot pour scanner la blockchain est légitime, après tout, le contenu de la blockchain est public. Ce qui n'est pas toléré dans le monde du jeu, c'est d'automatiser sa session de jeu pour prendre un avantage sur les joueurs.
Donc, ce qui doit être réalisé par le jeu, doit être signé par le jeu.
Voici un petit truc, facile à implémenter pour signer une transaction:
Ajouter un champs dans le json, permettant au serveur de vérifier que le json fut créé par le jeu et non par un bot.
XOR le permet très facilement, par exemple comme ceci:
Prenez le numéro de transaction ( attaque, recrutement, upgrade, ou peu importe)
Créez un mot secret ou une empreinte de temps dans votre DB à la création de la requête
Faites un XOR entre ces deux valeurs et placez là dans le nouveau champ du json.
Xor est très connu car il suffit de refaire la même commande pour retrouver le texte original en clair.
Ensuite votre serveur pourra aisément vérifier par le XOR si l'action vient du jeu ou d'un bot et donc de le valider ou rejeter.
C'est bien entendu juste une idée, en espérant avoir été utile :)
Les vrais joueurs sont les bienvenus dans FRENCHIES
Vous n'êtes pas encore dans le jeu ? Rejoignez-nous
Helping my projects / Tipping :-)
Currently supporting those projects:
