Skip to content

Check every play and draw

Provably fair

Every case open, wheel spin and raffle draw on obeyrewards.com is decided by values you can check. Paste a play or a draw below, or follow a Verify link, and your browser recomputes it.

How a play is decided

  1. We commit first. Before you play, the site picks a secret server seed and shows you its hash on every case and wheel page and in your dashboard. The hash locks the seed in: a different seed would give a different hash, and a play named against another hash is refused.
  2. You add your own. Your client seed is text you can change to anything you like in your dashboard. Until you set your own, your client seed is one obeyrewards.com picked. The nonce counts your plays with the pair: 0, 1, 2 and so on.
  3. The seeds pick the result. Each case open or wheel spin mixes the two seeds, the nonce and the game into one number, and that number picks a drop or segment from the odds you saw, weighted as shown. The play names the fingerprint of those odds, so odds changed after your page loaded refuse the play instead.
  4. You check it. Rotate your seeds or set a new client seed and the old server seed is revealed. Use the Verify link next to a play in your dashboard, or paste the values below.

Check a play

Everything below runs in your browser with the same code the server plays with. Nothing you enter is sent anywhere.

The hash you were shown before playing. Optional, but it is what proves the seed was not swapped.

Odds are a JSON list of [key, weight, points] per entry, in display order, with a total weight of at least 1: [["a",600,10],["b",2000,20]].

The fingerprint the play recorded. Optional; when set, the odds are checked against it.

Fill in the server seed, client seed, nonce and odds to see the result.

How a draw is decided

  1. The round is named first. When a raffle is published it shows when entries freeze and names a beacon round of drand, a public random number signed by the League of Entropy every 3 seconds: the first round 10 minutes after the freeze.
  2. The pool is fixed. At the freeze the ticket pool is published: one line per entrant, a fingerprint and a ticket count, and the hash of it all. A Discord post can timestamp it. A pool captured too late for its round moves to the first round 10 minutes after the capture.
  3. The round picks the winners.Once the round exists the draw runs by itself. Its random value and the raffle pick three places, weighted by tickets, without putting winners back. Each winner's user id and salt are published, so anyone can see the winning fingerprint is theirs.
  4. You check it.Every draw on the raffle page has a Verify link. Your browser checks drand's signature, that the round follows from the schedule, the pool hash, the three places and each winner's fingerprint.

Check a draw

Your browser checks the round's signature against drand's public key and recomputes the places. It trusts neither a drand relay nor this site.

Each place's value includes the raffle id, so one round decides each raffle differently.

One line per entrant: <fingerprint> <tickets>, with excluded at the end for an earlier winner kept out.

The hash the raffle page published at the freeze. Optional; when set, the pool is checked against it.

The winners' fingerprints, 1st to 3rd, separated by commas. Optional.

The winners' user ids, 1st to 3rd, separated by commas. Optional; with their salts, each fingerprint is checked against its winner.

The winners' salts, in the same order.

When tickets stopped counting (ISO time), as the raffle page showed it from the start.

The round the raffle named for its freeze. Optional.

When the site captured the pool (ISO time). A capture too late for the planned round moves the draw to a later round.

The Discord post that announced the pool. Its id holds the time Discord created it. Empty when there was none.

The time the site reports for that post (ISO time). Optional; it must match the message id.

Fill in the raffle id, beacon round, signature and pool to see the draw.

The formula

Reproduce any play or draw with your own tools. Plays and draws keep the formula version they used.

All text is UTF-8 and every digest is lowercase hex. Formula v1.

serverSeedHash  = SHA-256(serverSeed)
play value      = HMAC-SHA256(key = serverSeed, "<clientSeed>:<nonce>:<game>")
                  where game is "case" or "wheel"
odds            = JSON list of [key, weight, points] per entry in display
                  order, no spaces: [["a",600,10],["b",2000,20]]
oddsFingerprint = SHA-256(odds)
total           = the sum of the weights
roll            = an integer in [0, total) read from the play value:
                  take 48-bit big-endian chunks in order (bytes 0-5, 6-11,
                  ..., 24-29; a 32-byte digest has five), reject a chunk
                  >= limit where limit = 2^48 - (2^48 mod total) is the
                  largest multiple of total not above 2^48, and keep the
                  first accepted chunk mod total. When all five are
                  rejected, the next digest is the same HMAC of the message
                  with ":<k>" appended, k = 1, 2, ...
pick            = the first entry, in the published order, whose running
                  total of weights exceeds roll

Raffle draws

round message   = SHA-256(the beacon round as 8 bytes, big-endian)
signature       = drand quicknet's BLS signature of the round message on
                  G1 (chain 52db9ba70e0cc0f6eaf7803dd07447a1f5477735fd3f661792ba94600c84e971)
randomness      = SHA-256(signature)
salt            = HMAC-SHA256(the raffle's secret salt key, userId)
fingerprint     = SHA-256("<raffleId>:<userId>:<salt>")
pool            = one line per entrant, "<fingerprint> <tickets>", with
                  " excluded" for an earlier winner kept out, sorted by
                  fingerprint and joined with "\n"
poolHash        = SHA-256(pool)
place value     = SHA-256("<randomness>:<raffleId>:<place>"), place 1 to 3
place roll      = an integer in [0, total) read from the place value like a
                  play's roll, total = the tickets still in the draw; the
                  next digest is the SHA-256 of the message with ":<k>"
                  appended, k = 1, 2, ...
winner          = the first line, in pool order without excluded lines and
                  without earlier places' winners, whose running total of
                  tickets exceeds the place roll

What this proves

Proven

  • The server seed was fixed before your plays: you saw its hash first, on the game page, and the check above confirms the revealed seed matches it.
  • Each result follows from the two seeds, the nonce and the odds alone. Your browser recomputes it with the same code the server uses.
  • The odds are the ones the play named. Their fingerprint was fixed when you played, and odds changed after your page loaded refuse the play.
  • A draw's round follows from the raffle's published schedule: the first round 10 minutes after the freeze the raffle page showed from its start, or, after a late capture, the first round 10 minutes after the capture. The check above recomputes it.
  • A draw's winners follow from the pool and drand's signed round alone.
  • Each winner's fingerprint is theirs: it is the hash of the raffle, their user id and their salt, all three published with the draw.

Not proven

  • obeyrewards.com keeps active server seeds encrypted with a key the platform holds, so staff cannot read them, but the platform could compute your future plays in advance. It cannot change them without you seeing it: at your next rotation the revealed seed would not match the hash you were shown. Set your own client seed and rotate whenever you like.
  • Until you set your own client seed, obeyrewards.com picked both seeds of your pair. The hash still commits the server seed before your plays, but a client seed obeyrewards.com picked for you does not stop that pair being chosen together. Set your own in your dashboard.
  • Plays made before provably fair have no proof and say so in your dashboard.
  • How tickets were earned is logged, not proven: the pool shows each entrant's ticket count, not the wagers and purchases behind it.
  • The time of a draw's Discord post is reported by the site. Discord sets it and puts it in the message id, but only the message itself, in obeyrewards.com's Discord, shows the post was made then. A draw without a Discord post has no independent timestamp; only obeyrewards.com's capture time says its pool came first. Draws before provably fair have no proof and are marked so on the raffle page.