Player | Cash out | Bet | Profit |
---|---|---|---|
No players |
In Mines at BitRuby, the results of the game are determined through a calculation process that involves cryptographic functions. To ensure fairness and transparency, the outcome is based on a combination of the server seed, client seed, and nonce values.The calculation starts by obtaining a 64-character hexadecimal string, which is the result of applying the HMAC_SHAvm.totallyTiles6 function to the clientSeed concatenated with the nonce and using the serverSeed as the secret key:
hash = HMAC_SHAvm.totallyTiles6(clientSeed:nonce, serverSeed).
the calculation of the final results involves a series of steps utilizing this hash value. Here's a breakdown of the process:
The process ensures that the game outcome is determined in a secure and random manner, as the hash values used in the calculation depend on both the server seed (kept secret by the server) and the client seed (provided by the player).
The main function provided in the code snippet allows the generation of the game results when provided with the server seed, client seed, and nonce. The resultList obtained from this function represents the numbers that would be revealed during the Mines gameplay.
It's important to note that this cryptographic approach ensures provable fairness and prevents any manipulation of the game results by either the player or the platform, making Mines at BitRuby a trustworthy and engaging blockchain-based gambling game.