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
165f59ff22cebf06d0ff769fa32686725159a2687fb4d1c1e1bcfa4bea2a8a1c9d9
16467e43c13787a1a6a0f7f8f21dea0b23f0982fddc42fa0560215f7141ff6e90a0
163efd3c5f0060d376a48c22c72389c2f3c951f277175fed370dc29c015c55815fb
162cae08b859abb1eac448521c49c41b323ef75d4ca6a2b2f3fc2aee2f71db33c4f
1611cb03fef23bb9149683be7821944d86160fd5db77afccad34bf4a67a78b95d3e
1604578d04e5c9d074002a88727c26bcda53763ed20132643dd56cc911a54a1432d
159d0b67959f3c6e13edded4bc7ac3d0908688d6abaf38105af5e32fa3a21288eab
158dabd032bc47db1ebacf6b4393e96c3fadaf74d7d2470833f28d6c4993167b584
157f956a3db1ca00f5a2b299ddce8a9f31b3f948251c527a2c51f85fbdc63cf1f32
156deaabd539a09b0cdc56b83081f801d684a5b5b9af6c2f70e26ba21a9b0a2a424