Cups uses a Provably Fair system that makes every game result transparent, independently verifiable, and fixed after a bet has been placed.
Each Cups result is generated using three elements: a server seed, a client seed, and an incremental nonce. Before you place a bet, the server seed is shown as a hash. After the seed is revealed, you can check that it matches the hash shown earlier.
The game generates values using HMAC-SHA256:
hmac = HMAC_SHA256(serverSeed, clientSeed:nonce:blockIndex)
Each four-byte group from the HMAC is read as an unsigned number:
raw = uint32BE(next 4 bytes of hmac)
To choose a cup fairly, the game sets a limit:
limit = 2^32 - (2^32 % numCups)
If raw is below the limit, it is accepted:
ballPosition = raw % numCups
If raw is at or above the limit, the game discards it and tries the next four-byte group. If it runs out of values in the HMAC block, it uses the next blockIndex.
After the server seed is revealed, you can verify previous Cups results using the Verify tab. Rotating the server seed creates a new seed pair for future rounds while keeping previous results available for verification.
This lets you check that the selected cup matches the seeds, nonce, and Cups calculation.
