TF2Royal
0.00

Cases & Case Battles History

Provably fair — results are predetermined and verifiable

How can I know that the game is fair?

Every day our server generates random seed, that isnt changed during the day, the hash is immedietly hashed to prevent people see the results before they bet (one way hash).
Before each opening, your browser (you) generate another seed (public seed), that you can see and could change the results of randomness
Before each opening/case battle, we give you the hashed version of current server seed, which the round/whole case battle result is based on.
Next day, we publish the server seed (not hashed), which you can then compare to the hash to make sure that they match.
With this system we can prove that the results were fair and pre-generated based on opening id and your (client) seed

Case/Case battles technical details


Each ticket represents 0.001%, the lower the ticket is, the better item can drop. (ticket 1 = the rarest item in the case)


Our system generates the result for each round by using the SHA-256 hash of 3 separate inputs

1 ― The "public seed" is a 20 characters long string generated via your browser, you can regenerate it any way you want to change the outcome.

2 ― The "server seed" is a SHA-256 hash of 16 cryptographically secure random bytes, generated once per day.

3 ― Round ID - each opening has its own ID, which is incremented by 1 every time any case is opened (even case in case battles).


In case of tie-breaker, our system generates the result for each round by using the SHA-256 hash of 4 separate inputs + static string

1 ― The "public seed" is a 20 characters long string generated via your browser, you can regenerate it any way you want to change the outcome.

2 ― The "server seed" is a SHA-256 hash of 16 cryptographically secure random bytes, generated once per day.

3 ― Case Battle ID - each case battle has its own ID, which is incremented by 1 every time a new case battle is created.

4 ― Winning players count - A number, which represents how many users opened the same value.

Static string The static string is there to prevent see already generated results from previous games/cases opening, this string is: "case-battle-tie-braker".

Players can replicate any past roll by using the code below. Please note that you should use the unhashed (not hashed ) server seed with the script.

$server_seed = "96f3e04d221ca1b2048cc3b3b844e479f2bd9c80a870628072ee98fd1aa83cd0";
$public_seed = "20charlongstringxxxxx";
$round = "546";
$hash = hash('sha256', $server_seed . "-" . $public_seed . "-" . $round);
$ticket = hexdec(substr($hash, 0, 15)) % 1000000 + 1;

echo("Winning ticket: $ticket");

Cases/Case battles - You can execute PHP code straight from your browser with tools such as this PHP code.
Case battles tie-breaker - You can execute PHP code straight from your browser with tools such as this PHP code.
Simply copy and paste the above code in the window and replace the public seed, server seed and round number. If you have any questions about this system, feel free to contact our support team.

IDHash
22491a3ee128c9aa968d82218ee41cf8ec45be6a18ab6713fcf5c312042c3130108
223ab4ba80c3fd36a724c772285e31c904b7f4a4ea2633b8015855579c910590f8d
2224fd9b5b0b49837ced6266bb31d77babdaf9a3d29b2b0c64ef0ce6ecde2387418
2217bb9e68ef05e8a16181261b9e9af89985eaadb7ee2660614b3ae66363d39ab70
220a88d6de7a37fac0d4b7eb84abc03e77ade0414ee15c0f369292c49a814d91d88
2192400814b67f9f8c84453ca6ef167692401f9e316844b9121191e7cad9c3f7b9b
2182fba754f6e0ee953780bd0638a5b0cb780d8fa746813ccdf9493da8998fbf6d7
2178893927bbfc1b1b274cd9937feffce7f8426cf3606577572e16a0ba10e2c14f9
216cbc4e36c128c275f1db8136e148d12aeaea7b95807332462fa7de1d8e39ad123
215844c320544577e93ac4d824833d54728cdb1ed1e741e55923f60ad3059dfbb0a