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
133bb98fbeb42c97b9cdeb1609e07df5756ea4c73cda57748c9a654169252905c18
1326390be005dfa7b8af9ea655844562d80f185b5e2ee5b8862a4107782b74f11d0
131812c54321b9e828c593732580bbb95783e81ba1f8b8267ffbd22babe45884980
1302eb54f993d91ea8c3ff9a149ecfb174cee2aa0e5dc6fafcf2906b93f72d84c3e
129118b060b29cb329f8ec74f137eb6541a5266fba5e204ee0c8dfb267efec33f4a
12842a3b439a342bf3f2d7531cc5d6fe1ebea36184405a51b742ce10e332b30ebf1
1278907edaa8eadb8d17eae9405e91957c39ee76a9c79369f919bec16bc1c36aff4
126b00fc00a6a879fd27213f5c3803b32eead00c80a284e6b02932d340ea160d3c7
12572e78983fe600ab3105002059ecc49a149551f7e7fa267609ef5d762324e7ad6
124d0782b905b1c28eb36edfd33eb2c52b61b07b90aacfbc343e732b759d5f18636