How the result is decided
Every box opened in the battle gets one roll from 1 to 100,000. The server seed is the hash of an EOS block that did not exist when the battle was created.
- RustMagic joins the client seeds of every player, in seat order, with nothing between them. The battle's Fairness panel shows that string.
- Each roll is HMAC-SHA512 with the EOS block hash as the key and client seeds - nonce as the message.
- The first 7 hex characters are read as a number. The roll is that number modulo 100,000, plus 1.
- The nonce starts at 1 and goes up for every box: round 1 seat 1, round 1 seat 2, and so on.
- One extra nonce after the last box settles ties, coinflip and jackpot battles. In jackpot mode it uses the first 10 hex characters modulo 100,000,000, plus 1.
Compare with RustMagic's battle verifier.
How the result is decided
Each case opening gets one roll from 1 to 100,000. Each item owns a range of rolls.
- The seed is server seed - client seed - nonce, joined with dashes. RustMagic runs HMAC-SHA256 with that seed as the key and an empty message. This is not a plain SHA-256 of the seed.
- The first 13 hex characters, read as a number and divided by 2^52, give a number between 0 and 1.
- That number times 100,000, rounded down, plus 1, is the roll.
Compare with RustMagic's case opening verifier.
How the result is decided
Each calendar box gets one roll from 1 to 100,000, the same way as a case.
- The seed is server seed - client seed - nonce, joined with dashes. RustMagic runs HMAC-SHA256 with that seed as the key and an empty message. This is not a plain SHA-256 of the seed.
- The first 13 hex characters, read as a number and divided by 2^52, give a number between 0 and 1.
- That number times 100,000, rounded down, plus 1, is the roll.
Compare with RustMagic's calendar verifier.
How the result is decided
One number, 1 or 2. 1 is Heads and 2 is Tails.
- The seed is server seed - client seed - nonce, joined with dashes. RustMagic runs HMAC-SHA256 with that seed as the key and an empty message. This is not a plain SHA-256 of the seed.
- The first 13 hex characters, read as a number and divided by 2^52, give a number between 0 and 1.
- That number times 2, rounded down, plus 1, is the result: 1 is Heads, 2 is Tails.
Compare with RustMagic's Flipper verifier.
How the result is decided
One roll from 1 to 1,000,000,000, shown as a percentage from 0 to 100.
- The seed is server seed - client seed - nonce, joined with dashes. RustMagic runs HMAC-SHA256 with that seed as the key and an empty message. This is not a plain SHA-256 of the seed.
- The first 13 hex characters, read as a number and divided by 2^52, give a number between 0 and 1.
- That number times 1,000,000,000, rounded down, plus 1, is the roll.
- RustMagic shows the roll divided by 10,000,000, which is a percentage.
Compare with RustMagic's upgrader verifier.
How the result is decided
Bombs are drawn one at a time from the 25 tiles that are still free.
- The seed is server seed : client seed : nonce, joined with colons. It feeds the seedrandom library (version 3.0.5).
- For each bomb, the next number between 0 and 1 picks one of the free tiles, which is then removed.
- Tiles are numbered 1 to 25, left to right, top to bottom.
Compare with RustMagic's mines verifier.
How the result is decided
Ten different numbers from 1 to 40, all drawn from one roll.
- The seed is server seed - client seed - nonce, joined with dashes. RustMagic runs HMAC-SHA256 with that seed as the key and an empty message. This is not a plain SHA-256 of the seed.
- The first 13 hex characters, read as a number and divided by 2^52, give a number between 0 and 1.
- That number times 899,999,999, rounded down, plus 1, is the roll.
- For counter 0, 1, 2 and so on, take SHA-256 of roll:counter and read its first 4 bytes as a number.
- With r numbers still free, a value at or above 4,294,967,295 minus (4,294,967,295 mod r) is skipped. Otherwise the pick is 1 + value mod r.
- The pick counts only free numbers: it is moved up by one for each number already taken at or below it.
- This repeats until 10 numbers are drawn. They are shown in ascending order.
Compare with RustMagic's Keno verifier.
How the result is decided
One roll per bet. Each ball's path comes from the bits of SHA-256 of that roll and the ball number.
- The seed is server seed - client seed - nonce, joined with dashes. RustMagic runs HMAC-SHA256 with that seed as the key and an empty message. This is not a plain SHA-256 of the seed.
- The first 13 hex characters, read as a number and divided by 2^52, give a number between 0 and 1.
- That number times 899,999,999, rounded down, plus 1, is the roll.
- For each ball, counting from 0, take SHA-256 of roll:ball. Its first 16 bits, top row first, are the path: 1 bounces right, 0 bounces left.
- The ball lands in bucket 1 + the number of right bounces, counting from the left.
Compare with RustMagic's Plinko verifier.
How the result is decided
Crash rounds come from a chain of hashes made in advance. Each round's hash, keyed with an EOS block ID as salt, gives the crash point.
- Take HMAC-SHA256 with the salt as the key and the round hash as the message. The round hash is read as hex bytes, not as text.
- The first 13 hex characters, read as a number and divided by 2^52, give a number between 0 and 1.
- The crash point is 0.90 / (1 - that number), rounded down to two decimals, never below 1.00x and never above 1,000,000x.
- SHA-256 of a round hash (as text) gives the previous round's hash. Following the chain back must reach the hash RustMagic published first.
Compare with RustMagic's Crash verifier.
How the result is decided
One number from 0 to 14 per round. 0 is green, odd numbers are red and even numbers are black. 1 and 14 are the bait slots.
- Each round has its own seed, shown before betting together with the number of a future EOS block.
- Take SHA-256 of round seed : EOS block hash. RustMagic's verifier calls these the secret and the nonce.
- The first 8 hex characters, read as a number, modulo 15, give the result.
- 0 is Green. Odd numbers 1 to 13 are Red. Even numbers 2 to 14 are Black. 1 is Red bait and 14 is Black bait.
Compare with RustMagic's Magic Wheel verifier.