Skip to content

Provably Fair ​

Status: available as a per-operator option — every game

Provably fair is a per-operator toggle (Tenants → jurisdiction config → Provably fair). When enabled, each real-money round's RNG is derived deterministically from a seed the server commits to before the bet, and the seed/nonce are exposed so anyone can reproduce the outcome. For the multi-step (Safe Smash, Bit Key Rush) and session games (Fox'n Flock, Katapuult, Wild Stride, Peak Rush) each in-round action derives from its own sub-nonce, so every step is independently reproducible; Pass the Jay, Shots and Red District draw everything when the round starts, from the setup sub-nonce; Slotty Slots, Shatter, Strike, Overload, Ricochet, 3D City: Neighborhoods, Popworks and Delivery Error, single-step games, draw from the bare round block. A public, zero-dependency verification page runs at https://games.slottylabs.com/verify/, and every game's in-play Provably Fair panel (open the game's info/help) shows the round's commitment and links to that page with the round pre-filled for one-click verification. For Safe Smash, Bit Key Rush, Wild Stride, Peak Rush, Popworks (the paid spin and its whole Color Rush) and Delivery Error (the paid delivery and its free deliveries) the page replays the whole round in the browser and checks what it paid against what the round booked (see Whole-round replay, Wild Stride, Peak Rush, Popworks and Delivery Error).

Slotty Labs offers a cryptographic provably-fair system that lets players independently verify that game outcomes were not manipulated. Verification runs entirely in the browser using native Web Crypto — no trust in our servers required.

Overview ​

Every game round uses a combination of server-generated and player-chosen seeds to produce verifiable random outcomes. The server commits to a seed hash before the player places a bet, ensuring the outcome cannot be changed after the fact.

Hash Chain Mechanism ​

Step 1: Server Seed Generation ​

The server generates a cryptographically secure 32-byte random seed:

typescript
const serverSeed = crypto.randomBytes(32).toString('hex');
// e.g. "a1b2c3d4e5f6...64 hex chars"

Step 2: Hash Commitment ​

Before play begins, the server shares the SHA-256 hash of the server seed:

typescript
const serverSeedHash = crypto
  .createHash('sha256')
  .update(serverSeed)
  .digest('hex');
// Player sees this BEFORE betting

Step 3: Combined Hash ​

When a round is played, the final random value is derived from:

typescript
const combinedHash = crypto
  .createHmac('sha512', serverSeed)
  .update(`${clientSeed}:${nonce}`)
  .digest('hex');
// 128 hex chars = 64 bytes of randomness

Nonce Formats ​

FormatExampleUse Case
Single-stepclientSeed:42Standard round (slots, Shatter, Strike, Overload, Ricochet, 3D City: Neighborhoods, Popworks, Delivery Error, safe smash hit)
Byte-stream extensionclientSeed:42:1, clientSeed:42:2, …The next 64 bytes of the same round's stream, when a round reads more than the first block (HMAC-SHA512(serverSeed, "clientSeed:42:1"), …) — a long Popworks Color Rush reads on into them; never a separate round
Multi-stepclientSeed:42:0Step within a multi-step round
Session initclientSeed:42:initSession-based game initialization

No game draws at an fs0-style sub-nonce. A Slotty Slots free spin is a round of its own with its own nonce; a Popworks free spin is part of the paid round and reads that round's byte stream.

Verification Algorithm ​

To verify a round outcome, follow these steps:

1. Verify Server Seed Hash ​

typescript
const computedHash = SHA256(revealedServerSeed);
assert(computedHash === serverSeedHash); // Must match the pre-committed hash

2. Compute Combined Hash ​

typescript
const combined = HMAC_SHA512(revealedServerSeed, `${clientSeed}:${nonce}`);

3. Map to Game Outcome ​

Each game uses a specific mapper that converts the raw bytes into game-specific outcomes using a ByteCursor:

typescript
const cursor = new ByteCursor(hexToBytes(combined));
const outcome = gameMapper(cursor, gameConfig);

Game Mappers ​

Each game type has a dedicated mapping function:

MapperGameDescription
slotMapperSlotty SlotsThe 5 reel draws (one stop per reel), read from the round's published paytable row: the stops, the window, every line win, the scatters and the free spins they award; with the recorded bet per line and lines, the payout (a free spin: its line wins ×1.25 rounded down, capped at 500× the total bet and at the round's maximum win). A bought round: the bought bonus (see Bought rounds)
safeSmashMapperSafe SmashOne hit: the multiplier, the hammer roll and, on the cracking hit, the jackpot draws
bitKeyRushMapperBit Key RushOne guess: the pool tier and the trace roll (both drawn on every guess)
foxMapperFox'n FlockThe whole run drawn at the bet (rounds from 3 Aug 2026): the greed, every catch, a killer, the Golden Flock phase and the final multiplier; the answer's payoutCheck holds the payout amount against the booking. A bought round: the bought run and its payout (see Bought rounds). Rounds of the original skill version are not replayed (see The payout amount check)
catapultMapperKatapuultThe three pre-drawn results (one per risk tier) and the bonus pickups (rounds from 3 Aug 2026); with the recorded tier, the result launched; the answer's payoutCheck holds the payout amount against the booking. Rounds of the original skill version are not replayed
passTheJayMapperPass the JayThe undercover cop's seat; with the recorded passes, where the round ended; the answer's payoutCheck holds the payout amount against the booking
shotsMapperShotsThe crash point, which regular drinks and how they go down; with the recorded exit, whether the payout follows from the crash point; the answer's payoutCheck holds the payout amount against the booking
redDistrictMapperRed DistrictThe night draw and how many visits go well; with the recorded visits, where the round ended and the step paid; the answer's payoutCheck holds the payout amount against the booking
wildStrideMapperWild StrideEvery step's draw (step k at sub-nonce k); with the recorded strides, the round replayed from step 1: each step's table and outcome (a wobble or stumble included), the balance, the running multiplier and the payout
shatterMapperShatterThe fracture draw (bare round block); with the recorded mode, the catalogue outcome, the tokens collected, the multiplier and the payout
strikeMapperStrikeThe ignition draw (bare round block); 2.0: with the recorded setting and round cap, the flame and the payout; 1.0 rounds: the threshold, lit or unlit and the payout
overloadMapperOverloadThe surge draw (bare round block); the catalogue regenerated from the published rules and checked against its hash; with the recorded mode and cap, the weights, the entry (powered collectors, wiring, seals), the multiplier and the payout
ricochetMapperRicochetThe shot draw (bare round block); the catalogue regenerated from the published scenario table (no physics) and checked against its hash; with the recorded pattern and cap, the weights, the entry (the catalogued shot: plates, hazard, badges; the special round and its bonus plates), the multiplier and the payout
cityNeighborhoodsMapper3D City: NeighborhoodsThe build draw (bare round block); the ladder checked field by field and against its hash; with the recorded cap, the weights, the tier (the neighborhood), the multiplier and the payout
popworksMapperPopworksThe rules checked field by field and against their hash; with the recorded cap (500×), every spin of the round from the bare round block's byte stream — the paid spin, then each Color Rush free spin: the draw, the stops, the window, the Stamp Wild reels, the scatters, the line wins, the pressure, retriggers, the cap — and the payout
deliveryErrorMapperDelivery ErrorThe rules checked field by field and against their hash; the six draws of the bare round block; with the recorded permit and cap, the paid delivery (its three positions, the three pair overlaps, the best pair, its band, the three-way overlap) and, after a three-way overlap, the five free deliveries; the total, the payout and the cap's provenance. A bought round: its five free deliveries (see Bought rounds)
peakRushMapperPeak RushEvery committed obstacle's draw (obstacle k at sub-nonce k); with the recorded moves (and, on 2.0 rounds, the rider's crash), the run replayed from the first obstacle: each obstacle's kind, move, gain and table, the coin metal and multiplier or the wipeout (1.0: the landing or the crash), the running multiplier, the cap and the payout

Whole-round replay (Safe Smash, Bit Key Rush) ​

These two games pay per action, from state that runs through the round: Bit Key Rush's secret key and FBI trace, Safe Smash's damage and round balance. One sub-nonce cannot show what a round paid, so the round is replayed whole:

  1. Setup (sub-nonce 0). Bit Key Rush: the 12-character key (12 uniform draws over A–Z 0–9). Safe Smash: how many damaging hits the safe takes.
  2. Every recorded action (sub-nonce 1, 2, …). Each guess or hit is drawn from its own bytes, and its debit (stake, plus any wrong-guess penalty or hammer clawback) and credit (within the round's win cap) are recomputed.
  3. The record. The totals and the way the round ended are compared, to the smallest currency unit, with what the round booked.

The only inputs that come from the operator are the round's own record and the published paytable that priced it (chosen by the round's start time, and shown with its content hash):

GameRecorded inputs
Bit Key RushThe characters guessed, in order; stake per guess; win ceiling
Safe SmashThe number of hits (hitting is the only move); stake per hit; win ceiling

The page computes the replay in the browser, and the public verifier (POST /api/v1/provably-fair/verify with the round) runs its own; the page flags any disagreement between the two. Two historical limits are stated on the page when they apply: Bit Key Rush rounds played before guesses were recorded (20 October 2026) show their key but cannot replay their guesses, and Safe Smash rounds from before 5 October 2026 recorded an unreliable hit count, so their hits are taken from the stake total. Every hit stakes the same amount, so exactly one count fits that total.

Shots: the crash point and the recorded exit ​

Shots draws everything when the round starts, from the setup sub-nonce, in this order:

  1. The crash draw n, a uniform integer in [0, 2^52 − 1]. The crash point, in hundredths of a multiplier, is floor(rtpBasisPoints × 2^52 / (100 × (n + 1))), using the RTP of the published paytable that priced the round (chosen by the round's start time). Below 1.01× the regular is out on the first shot; the cap is 1,000×.
  2. The regular, a uniform integer over the published list of regulars. When the bet named the regular already at the bar, the draw is still made and shown as not used, and the recorded regular is the one who drank.
  3. How they go down, a uniform integer in [0, 99]: below 55 they puke, otherwise they pass out.

The rest of the round is when the player left. The round record carries it, written by the operator's game service and never supplied by the caller:

Recorded inputMeaning
autoCashout100The automatic exit the player set, in hundredths (absent when none)
capMultiplier100The round's cap, in hundredths: the game's 1,000× or a lower operator or jurisdiction maximum win for that stake
exitThe exit paid, if any: kind (manual, auto or cap), multiplier100 and elapsedMs after the first shot
patronChosenThe regular the bet named (already at the bar on the player's screen); absent when the regular was drawn

An exit at m pays m × stake only when the crash point is at least m, so the verifier checks that the recorded exit follows from the crash point: a manual or automatic exit at or below it (and below the automatic exit and cap, for a manual one), a cap exit only if the crash point reached the cap, and no exit only if the round crashed before its automatic exit and its cap. Anything else is reported as inconsistent. Without a record the verifier still reproduces the crash point, the regular and the ending, which is everything the seed decides. With a consistent exit the answer's payoutCheck holds floor(stake × exit / 100) (nothing without an exit) against what the round booked, and the verification page compares the same amount in the browser (see The payout amount check).

The server seed is held while a round is open and revealed only after it ends: with it, the crash point could be computed before the player leaves.

Red District: the night draw and the recorded visits ​

Red District makes one draw when the round starts, from the setup sub-nonce: the night draw n, a uniform integer in [0, 2^52 − 1] (purpose label lucky_visits). With the steps in hundredths of a multiplier (1.30× = 130) and the RTP of the published paytable that priced the round (chosen by the round's start time), visit k goes well exactly when

n < T_k = floor(rtpBp × 2^52 / (100 × step_k))      k = 1 … 8

so the number of visits that go well is how many of the eight thresholds n is below. A visit draws nothing, and the window the player picks is recorded but never read by the math.

The rest of the round is how many visits the player made before leaving. The round record carries it, written by the operator's game service and never supplied by the caller:

Recorded inputMeaning
visitsThe visits made, a losing one included (0 … 8)

If every recorded visit went well, the round paid the step for that many visits (0 visits: step 0, the RTP itself; 8: the top step, which ends the round by itself). If the last one did not, it must be the first visit beyond the good ones, and the round paid nothing. Anything else is reported as inconsistent. Without a record the verifier still reproduces the draw and the number of good visits, which is everything the seed decides. The answer's payoutCheck holds floor(stake × step / 100) (nothing after a mishap) against what the round booked, and the verification page recomputes all of it in the browser and compares the same amount (see The payout amount check).

The server seed is held while a round is open and revealed only after it ends: with it, the number of good visits could be computed before the player leaves.

Wild Stride: one draw per step and the recorded strides ​

Wild Stride draws nothing when the round starts. Every forward step makes one draw at that step, from its own sub-nonce — step k at sub-nonce k (purpose label step_outcome): a uniform integer u in [0, 2^52 − 1]. The stride the player chose for the step (short, long or wild) picks the table in the published paytable that priced the round (chosen by the round's start time). Each table lists its step multipliers largest first, with integer weights over weightScale, and the fall last. With c_i the cumulative weight of the first i outcomes,

S   = rtpBp on the round's first step, 10000 on every later step
T_i = floor(c_i × 2^52 × S / (weightScale × 10000))
u < T_1 → the largest multiplier;  T_(i−1) ≤ u < T_i → outcome i;  u ≥ T_last → the fall

The balance meter (engine 2.0.0 paytables). A round starts with balanceStart points (2). While it has balance, a short or long step is read with balanceTables.short / balanceTables.long instead: those tables have no fall (fall: 0) and list one outcome below ×1 after the ups — the wobble (×0.7, short) or the stumble (×0.5, long) — which multiplies the total by its factor, keeps the round going and costs one point. With no balance left, tables.short / tables.long apply, where a miss is the fall. A wild step always uses tables.wild. The first step follows "firstStep": "all-outcomes-x-rtp": every outcome of the table in use — ups and the wobble or stumble alike — is scaled by the RTP with the formula above, and u ≥ T_last is a fall, also on a balance table. The balance is not recorded anywhere: the verifier replays the round from step 1 and knows it at every step.

Each published table is an exactly even bet (Σ weight × multiplier = weightScale, the wobble or stumble counted at its factor), so the first step's scaling by the RTP is the only place the house edge lives, and the floors only ever move probability towards smaller outcomes and the fall. A step that can reach the round's cap is re-weighted to stay fair counting the capped win. With the cap in the total's fixed point C = ceil(maxWin × 10^8 / stake), the total before the step M, an up outcome's value V_i = min(floor(M × f_i / 100), C) and a miss's floor(M × f / 100) (the fall's 0), the step can reach the cap when some up V_i reaches C. Then:

  • "capRule": "fair-at-cap" (engine 1.1.0 – 1.2.0, every outcome an up):
    A   = Σ weight_i × V_i
    T_i = floor(c_i × 2^52 × S × M / (10000 × A))
  • "capRule": "fair-at-cap-v2" (engine 2.0.0): with W_up, A_up = Σ weight × V over the ups and W_bk, B = Σ weight × V over the misses (the wobble or stumble, and the fall's weight at value 0),
    λ   = weightScale × (S × M × W_bk − 10000 × B) / (10000 × (A_up × W_bk − W_up × B))
    μ   = (weightScale − λ × W_up) / W_bk
    each up's weight × λ, each miss's × μ;  T_i = floor(2^52 × cumulative re-weighted weight / weightScale)
    — the same thresholds as fair-at-cap when the fall is the only miss. On a balance table (no fall weight) the re-weighted step has no fall, the first step included: the last listed outcome, the wobble or stumble, ends at 2^52.

Otherwise the plain thresholds apply. Rows without capRule (engine 1.0.0) use the plain thresholds on every step; the verifier refuses a row with any other value, an unknown firstStep rule, or balance tables on a row that is not fair-at-cap-v2. The round's multiplier is the product of its step multipliers in fixed point (multiplierScale = 10^8), rounded down after every step (an up that reaches the cap leaves it at C); collecting pays floor(stake × multiplier / 10^8) (collecting before the first step: floor(stake × rtpBp / 10000)), a fall pays nothing, and every payout stops at the round's win cap — a step that reaches it ends the round.

The rest of the round is the player's choices. The round record carries them, written by the operator's game service and never supplied by the caller:

Recorded inputMeaning
stridesThe stride of every step taken, in order, a final fall included
maxWinThe win cap the round was locked to when it started (minor units)

With them (and the round's stake) the verifier replays every step's draw with the table its stride used at the round's balance, every wobble, stumble and balance point, the running multiplier, the cap and the payout, and compares the result with what the round booked. A step recorded after the round had ended, a stride the game does not offer, or more steps than a round can take is reported as inconsistent. Verifying a single sub-nonce k also shows step k's draw and what it gives under each stride (at the round's balance when the round is replayed). The verification page does all of it in the browser, independently of the server.

Peak Rush: one draw per obstacle and the recorded moves ​

Peak Rush draws nothing when the round starts. Every obstacle the rider clears and lands is committed with its move, and makes one draw at that commit, from its own sub-nonce — obstacle k at sub-nonce k: a uniform integer u in [0, 2^52 − 1]. Obstacle k is a ravine when k % ravine.every == ravine.at (every fourth obstacle: 3, 7, 11, …), otherwise a rock (on 2.0 rows a log when k % log.every == log.at — a rock with another look). The published paytable that priced the round — the one whose content hash the round recorded (rulesVersion), or for rounds without it the one in force at the round's start — says which table the draw is read with:

  • 2.0 rows (type peak_rush_tables_v2): the move is the number of backflips completed over the obstacle (jump, flip, double, triple; the moves each kind accepts are tiers.rock / tiers.ravine). Its gain is G = kindMult[kind] × tierMult[move], and the draw is read with tables[G]: the coin metals largest first — outcome i is metals[i], its multiplier exactly 100 + G × metals[i].gainPct hundredths — and the hidden wipeout last (its weight wipeout). A rider who crashes sends a crash instead of a commit: nothing is drawn, the run ends and pays nothing ("playerCrash": "no-draw-pays-zero").
  • 1.0 rows (type peak_rush_tables): the move is jump or flip and the draw is read with tables.<kind>_<move> — landings largest first, the crash last.

With c_i the cumulative weight of the first i outcomes,

S   = rtpBp on the round's first obstacle, 10000 on every later one   ("firstStep": "all-outcomes-x-rtp")
T_i = floor(c_i × 2^52 × S / (weightScale × 10000))
u < T_1 → the largest outcome;  T_(i−1) ≤ u < T_i → outcome i;  u ≥ T_last → the wipeout (1.0: the crash)

Each table is an exactly even bet (Σ weight × multiplier = weightScale × 100 in hundredths), so the first obstacle's scaling by the RTP is the only place the house edge lives, and the floors only ever move probability towards smaller outcomes. An obstacle that can reach the round's cap is re-weighted to stay fair counting the capped win ("capRule": "fair-at-cap"): with the cap in the total's fixed point C = ceil(maxWin × 10^8 / stake), the total before the obstacle M and an outcome's value V_i = min(floor(M × f_i / 100), C), when some V_i reaches C

A   = Σ weight_i × V_i
T_i = floor(c_i × 2^52 × S × M / (10000 × A))

and the wipeout takes the rest; otherwise the plain thresholds apply. The verifier refuses a row of another type, order, capRule, firstStep, playerCrash or rtpBasis, a ravine or log rule it cannot read, a multiplier that is not 100 + G × gainPct, or tables that are not exactly the gains the moves use. The run's multiplier is the product of its outcomes in fixed point (multiplierScale = 10^8), rounded down after every landing (an outcome that reaches the cap leaves it at C); banking pays floor(stake × multiplier / 10^8) (banking before the first obstacle: floor(stake × rtpBp / 10000)), a wipeout or a crash pays nothing, every payout stops at the round's win cap — a landing that reaches it ends the round — and obstacle maxSteps ends the round paying its total.

The round record carries the player's part, written by the operator's game service and never supplied by the caller:

Recorded inputMeaning
tiersThe move of every committed obstacle, in order, a final wipeout included
playerCrash2.0: the run ended by the rider's own crash, at the obstacle after the last committed one (no draw)
maxWinThe win cap the round was locked to when it started (minor units)
rulesVersion2.0: the content hash of the paytable the round was played on

With them (and the round's stake) the verifier replays every committed obstacle's draw with its table, every coin metal and wipeout, the rider's crash, the running multiplier, the cap and the payout, and compares the result with what the round booked. A commit recorded after the round had ended, a move the obstacle does not accept, a crash on a 1.0 round, or more obstacles than a round can take is reported as inconsistent. Verifying a single sub-nonce k also shows obstacle k's draw and what it gives under every move the obstacle accepts (at the round's replayed total when the round is replayed). The verification page does all of it in the browser, independently of the server. The riding itself — speed, jumps, landings — happens in the player's browser and is not part of the proof: the proof covers the RNG's part of every committed landing and the payout.

Shatter: one draw at the bet and the recorded mode ​

Shatter is a single-step game: a round is one strike and makes one draw, at the bet, from the bare round block clientSeed:nonce (no sub-nonce, as for Slotty Slots; purpose label fracture). The draw is a uniform integer u in [0, W − 1], where W is the draw space of the fracture mode the player struck in (the published row's modes.<mode>.drawSpace, the sum of that mode's weights — the same in every RTP variant). With the weights of the published paytable that priced the round (chosen by the round's start time), listed in catalogue order, the outcome is

outcome = the first i with  u < w_0 + w_1 + … + w_i

so every outcome's chance is exactly w_i / W. The outcome's tokens are the ones on the fragments that fall; the round pays

multiplier (hundredths) = rawSum(outcome) × scaleHundredths(mode)
payout                  = floor(stake × multiplier / 100), at most the round's max win

The mode is the player's choice, fixed before the strike. The round record carries it, written by the operator's game service and never supplied by the caller:

Recorded inputMeaning
modeThe fracture mode: controlled, unstable or extreme
maxWinThe round's money cap, minor units (the stake comes from the round's own total bet)

With them the verifier reproduces the draw, the outcome, the tokens collected, the multiplier and the payout; the verification page recomputes all of it in the browser and compares the payout with what the round booked. A row whose outcomes, tokens or weights do not add up (a draw space that is not the sum of its weights, a raw sum that does not match its tokens, an unknown order) is refused rather than read. Without a recorded mode, the verifier shows what the seed gives in each mode — each mode draws over its own range, so the draw itself differs per mode.

Strike: one draw at the bet, the recorded setting and cap ​

Strike is a single-step game: a round is one strike of one match and makes one draw, at the bet, from the bare round block clientSeed:nonce (no sub-nonce, as for Slotty Slots and Shatter; purpose label ignition).

Strike 2.0 (flame ladders, from 2026-10-24 07:25 UTC). Each ignition setting is a ladder of flames, published in the strike_ladder paytable row: every level's id, multiplier m (hundredths) and baseline weight b, ascending, covered by a ladderHash the verifier recomputes before anything is read. The round's cap C (hundredths: the setting's maximum, lowered by an operator multiplier cap or the money cap) is fixed before the draw. With the variant's rtpPercent R (cap rule fair-cap-v1):

A0(C) = Σ b × min(m, C)                 W = A0(C)
unlit (pays 0): A0(C) − R × Σ b         each level, ascending: R × b
u = uniform integer in [0, W − 1]; outcome = the first entry (unlit, then the ladder) whose running weight exceeds u
payout = floor(stake × min(m, C) / 100)

so every setting returns exactly R% at every accepted cap. The round record carries the inputs, written by the operator's game service and never supplied by the caller:

Recorded inputMeaning
settingThe ignition setting: steady, bold or longshot
capHundredthsThe round cap C, hundredths — required: an integer from the row's minCapHundredths (200) to the setting's maximum

With them the verifier rebuilds the round's weights and reproduces the draw, the flame and the payout; the verification page recomputes all of it in the browser and compares the payout with what the round booked. The draw range depends on the cap, so a 2.0 round is never read without its recorded cap (and never with an assumed, uncapped table). A row whose ladders do not match their hash, whose levels are not strictly ascending, or whose unlit weight would be negative at the minimum cap is refused rather than read.

Strike 1.0 (rounds before 2026-10-24 07:25 UTC). Those rounds were priced by the strike_settings rows, which stay published: the draw is a uniform integer n in [0, 2^52 − 1], each setting has one fixed multiplier (121, 194 or 485 hundredths), the match lit iff n < T = floor(rtpBp × 2^52 / (100 × m100)), and a light paid floor(stake × m100 / 100), at most the recorded maxWin. The verifier picks the paytable by the round's start time, so a 1.0 round is verified with the 1.0 rules.

Overload: one draw at the bet, the recorded mode and cap ​

Overload is a single-step game: a round is one surge and makes one draw, at the bet, from the bare round block clientSeed:nonce (no sub-nonce, as for Slotty Slots, Shatter and Strike; purpose label surge). The published paytable (type overload_catalogue) carries the rules, not a list of outcomes: for each mode the five collector values (hundredths), the breach boosts, the seal rate s/d and the line-pattern weights, plus the four wirings. The verifier regenerates every catalogue entry from them, in canonical order (mask, wiring, seals):

live(mask, w) = the mechanisms reached: bit i of (mask | feeds[w]), closed under the wiring's secondary links
b             = lineWeight[mask] × C(L, k) × s^k × (d − s)^(L − k) × d^(5 − L)      (L = |live|, k = seals)
m             = k ≥ 3 ? liveSum × boost[k] : baseSum                               (hundredths)

and checks sha256(JSON.stringify({ spark: E, surge: E, meltdown: E })), with E = [[mask, wiring, seals, b, m], …], against the row's catalogueHash. The round's variant R and effective cap C then fix the weights (rule fair-cap-v1): paying entries weigh R × b; the empty entries share the rest of W = Σ b × min(m, C), so every mode returns R exactly whatever the cap. (Only a cap below about 1.6× is too low for the empty entries to absorb, and the game refuses any bet whose cap would fall below 2× before anything is debited or drawn, so every accepted round returns R exactly.) Every one of the 32 line patterns carries a weight of at least 1. The draw and the payout:

u      = uniform integer in [0, W − 1]
entry  = the first entry, in canonical order, whose cumulative weight exceeds u
payout = floor(stake × min(m, C) / 100)

The mode is the player's choice and the cap is fixed before the draw. The round record carries both, written by the operator's game service and never supplied by the caller:

Recorded inputMeaning
modeThe operating mode: spark, surge or meltdown
capHundredthsThe round's effective cap C, hundredths of a multiplier — the lowest of the mode's max win, the operator's multiplier cap and the money cap, never below 200 (the stake comes from the round's own total bet)

With them the verifier reproduces the weights, the draw, the entry — the powered collectors, the wiring, the live lines and the seals — the multiplier and the payout; the verification page recomputes all of it in the browser and compares the payout with what the round booked. A row that is not an overload_catalogue row, whose rules are malformed, or whose regenerated catalogue does not match its catalogueHash is refused rather than read, and so is a record whose cap is below 2× (no such round can be played). Without a recorded mode, the verifier shows how each mode reads the same block (each mode draws over its own W).

Ricochet: one draw at the bet, the recorded pattern and cap ​

Ricochet is a single-step game: a round is one shot and makes one draw, at the bet, from the bare round block clientSeed:nonce (no sub-nonce, as for Slotty Slots, Shatter, Strike and Overload; purpose label shot). The game's pellets follow a pinned collision model, but the verifier never runs it: the published paytable (type ricochet_catalogue) carries the scenario table — for each shot pattern (tight, scatter, wild) the 14 plate values (hundredths; plates b1–b5 carry the badges, p1–p9 do not), the 12 bonus plate values of each special round, the group weights, and every catalogued shot of each outcome group as [seed, plateMask] (bit i = the i-th plate, the plates it hits — after a hazard too); and, shared by the patterns, every catalogued bonus volley of each special round as [seed, bonusMask] over the twelve bonus plates q0–q11. The verifier regenerates every catalogue entry from them, in canonical order (H,E,P,W1,W2,W3:scenario;F1,F2,F3:scenario×bonus):

group H (hazard)          m = 0                                   b = W_H × KB
groups E, P, W1, W2, W3    m = Σ plate values over the mask         b = W_g × KB
groups F1, F2, F3          m = Σ plate values over the mask         b = W_Ft      (one entry per shot × volley of tier t)
                             + Σ tier-t bonus values over the volley's mask

re-derives every clean shot's group from its own plates (F1 / F2 / F3 = 3 / 4 / 5 badge plates hit; E = no plate; P under 1×, W1 under 2×, W2 under 5×, W3 from 5×), and checks sha256(JSON.stringify({ tight: E, scatter: E, wild: E })), with E = [[group, seed, bonusSeed, m, b], …] (bonusSeed 0 off a special round), against the row's catalogueHash; the plates themselves are covered by the row's content hash. The round's variant R and effective cap C then fix the weights (rule fair-cap-v1, as for Overload): paying entries weigh R × b; the zero entries (the H and E shots) share the rest of W = Σ b × min(m, C) — the surplus split evenly over the E shots — so every pattern returns R exactly whatever the cap. (Only a cap far below 2× is too low for the zero entries to absorb, and the game refuses any bet whose cap would fall below 2× before anything is debited or drawn, so every accepted round returns R exactly.) The draw and the payout:

u      = uniform integer in [0, W − 1]
entry  = the first entry, in canonical order, whose cumulative weight exceeds u
payout = floor(stake × min(m, C) / 100)

The pattern is the player's choice and the cap is fixed before the draw. The round record carries both, written by the operator's game service and never supplied by the caller:

Recorded inputMeaning
modeThe shot pattern: tight, scatter or wild
capHundredthsThe round's effective cap C, hundredths of a multiplier — the lowest of the pattern's max win, the operator's multiplier cap and the money cap, never below 200 (the stake comes from the round's own total bet)

With them the verifier reproduces the weights, the draw, the entry — the catalogued shot with its plates, hazard and badges, and for a special round the bonus volley and its bonus plates — the multiplier and the payout; the verification page recomputes all of it in the browser and compares the payout with what the round booked. A row that is not a ricochet_catalogue row, whose table is malformed or inconsistent (a clean shot outside the group its plates give), or whose regenerated catalogue does not match its catalogueHash is refused rather than read, and so is a record whose cap is below 2× (no such round can be played). Without a recorded pattern, the verifier shows how each pattern reads the same block (each pattern draws over its own W).

3D City: Neighborhoods: one draw at the bet and the recorded cap ​

3D City: Neighborhoods is a single-step game: a round is one build and makes one draw, at the bet, from the bare round block clientSeed:nonce (no sub-nonce, as for Slotty Slots, Shatter, Strike, Overload and Ricochet; purpose label build). The published paytable (type city_ladder) carries the ladder: twelve tiers 0–11, each with its name, its multiplier m (hundredths, stake included) and its base weight b. Tier 0 (Green beginnings) pays nothing and has base weight 0: it is the zero pool. The row's ladderHash is sha256(JSON.stringify(tiers.map(t => [t.tier, t.multiplierHundredths, t.baseWeight]))), which the verifier recomputes before anything is read (ladder version 1 is 97b70db2b51bb3f199660562bd969c6bc5fff7fdcb49a8a589caa65aa52ffd97). With the variant's rtpPercent R and the round's cap C (rule fair-cap-v1):

W(C) = Σ b × min(m, C)                  over the paying tiers
tier 0 (pays 0): W(C) − R × Σ b         each paying tier: R × b
u      = uniform integer in [0, W(C) − 1]
tier   = the first tier, ascending 0 … 11, whose running weight exceeds u
payout = floor(stake × min(m, C) / 100)

so every round returns exactly R% at every accepted cap: when a cap binds, the higher tiers pay the cap and tier 0 weighs less. The round record carries the input, written by the operator's game service and never supplied by the caller:

Recorded inputMeaning
capHundredthsThe round's effective cap C, hundredths — required: an integer from 200 (2×) to 25000 (250×), the lowest of 250×, the operator's multiplier cap and the money cap (the round's maximum win ÷ the stake); the stake comes from the round's own total bet

With it the verifier rebuilds the weights and reproduces the draw, the tier and the payout; the verification page recomputes all of it in the browser and compares the payout with what the round booked. The draw range depends on the cap, so a round without a recorded cap is reported as not replayable — it is never read with an assumed, uncapped table. A row is refused rather than read unless it is a city_ladder row with order tier, cap rule fair-cap-v1, ladder version 1 and minimum cap 200, with tiers exactly 0–11 ascending, tier 0 at m = 0 and b = 0, every paying tier at m > 0 and b > 0, maxMultiplierHundredths equal to its top multiplier, and tiers that match ladderHash. The plot the player built on and the neighborhood's look (a cosmetic visual seed, parseInt(sha256hex("3d-city-neighborhoods:" + roundId).slice(0, 8), 16) >>> 1) are display data: neither enters the draw or the payout.

Popworks: the paid spin and Color Rush from one byte stream ​

Popworks is a single-step game: a round is the paid spin and its whole Color Rush, decided at the bet from the bare round block clientSeed:nonce (no sub-nonce). The engine declares 21 draws (purpose labels spin-0 … spin-20), each a uniform integer in [0, 80⁵ − 1] read by rejection sampling (4 bytes per attempt). Draw 0 is the paid spin and draw k is free spin k; at most 20 free spins are ever awarded. The draws are read strictly in order, past the first 64 bytes from the stream's extension blocks (clientSeed:nonce:1, :2, …), and only as far as the round goes: a round that plays n spins reads the first n draws, and the rest are never used. A draw v gives the five reel stops:

stop[c] = floor(v / 80^c) mod 80        c = 0 … 4, reel 1 the least significant
window  = strip_c[(stop_c + r) mod 80]  rows r = 0 … 3, top to bottom

The published paytable (type popworks_reels) carries the rules — reels, rows, symbols, the 40 lines, the pays (hundredths of the total stake), the Color Rush constants, the 500× cap, the draws — and the variant's five 80-stop strips. The row's rulesHash is the SHA-256 of the canonical rules array (compact JSON):

[rulesVersion, reels, rows, stopsPerReel, [[id, key, name], …], wild, scatter, lines, pays,
 [entry 3, entry 4, entry 5, retrigger, maxSpins, startPressure, maxPressure], maxWinHundredths, [draw count, range]]

which the verifier recomputes before anything is read; rules version 1 is:

Rules versionrulesHash (sha256 of the canonical rules array)
1344713fe229e3b3a757e2f84beb72b3f920404f64f7e96caeeaeb9228b618f04

Each spin: a reel whose window shows a Stamp Wild turns every non-scatter cell wild (scatters are counted on the window as it stopped); each line pays the larger of its wild prefix (3+ wilds: the best symbol's run of that length) and its first symbol's run from reel 1 (3, 4 or 5); a scatter breaks a line. 3 / 4 / 5 or more scatters on the paid spin award 8 / 10 / 12 free spins; a free spin pays its lines × the pressure (1× at the start, +1 after every free spin that returns anything, at most 10×); 3+ scatters on a free spin add 3 spins (never beyond 20 awarded); the round pays at most 50,000 hundredths (500×) — the spin that reaches it is cut to the cap and the Color Rush ends there. The payout is stake × T / 100 with T the round's total in hundredths, exact for the game's stakes (whole multiples of 100 minor units). The round record carries the input, written by the operator's game service and never supplied by the caller:

Recorded inputMeaning
capHundredthsThe round's cap, hundredths — always 50000 (the game refuses any bet whose operator or money cap would be lower); the stake comes from the round's own total bet

With it the verifier replays every spin and the payout; the verification page recomputes all of it in the browser and compares each spin with the server's decode and the payout with what the round booked. A round without the recorded cap is reported as not replayable — it is never read with an assumed cap. A row is refused rather than read unless it is a popworks_reels row of rules version 1 with 5 reels × 4 rows of 80-stop strips, symbols 0–9 (wild 8, scatter 9), 40 lines, 8 × 3 positive integer pays, the Color Rush constants above, maxWinHundredths 50000, 21 draws over [0, 80⁵ − 1], and rules that match rulesHash and rules version 1.

Delivery Error: six draws at the bet and the recorded permit ​

Delivery Error is a single-step game: a round is the paid delivery and, when it triggers them, its five free deliveries, decided at the bet from the bare round block clientSeed:nonce (no sub-nonce). The engine declares six draws (purpose labels delivery-0 … delivery-5), each a uniform integer in [0, 24⁴ − 1] = [0, 331775] read by rejection sampling (3 bytes per attempt), and every round draws all six, in order: draw 0 is the paid delivery and draw j is free delivery j; the draws a round does not play are drawn and never read. A draw d decodes as:

a = d mod 24,  b = floor(d / 24) mod 24,  c = floor(d / 576) mod 24     the three positions (index = column + 6 × row)
k = floor(d / 13824)                                                    the cargo order (0 … 23) — cosmetic
cargo: from [pigeon, toaster, UFO, cactus] take k mod 4, then floor(k / 4) mod 3, then floor(k / 12) mod 2
form:  A when (a + b + c + k) is even, else B                           cosmetic

The published paytable (type delivery_error_geometry) carries the rules — the 600 × 320 chamber, the 6 × 4 grid of positions, the bands, the three permits' paid and free fields, the free deliveries and their multiplier, the draws — and the variant's pays (hundredths of the stake). The row's rulesHash is the SHA-256 of the canonical rules array (compact JSON):

[rulesVersion, [600, 320], [6, 4], [18, 42, 70, 100],
 [["standard", 154, 110, 190, 132], ["unstable", 118, 80, 164, 115], ["illegal", 100, 80, 142, 112]],
 5, 3, [6, 331776]]

which the verifier recomputes before anything is read; rules version 1 is eda985bc8fdd4bec0105aaf6c225b4555cffd7c32ec9635ff217a23d600616af. A delivery on a w × h field:

corner of position i   x = round(column × (600 − w) / 5),  y = round(row × (320 − h) / 3)   (column = i mod 6, row = floor(i / 6))
pair areas             the overlaps of rectangles 1 + 2, 1 + 3, 2 + 3 (touching edges overlap 0)
best pair              the largest (a tie keeps the earlier pair)
band                   none when the best area is 0, else the first k with area × 100 ≤ [18, 42, 70, 100][k] × w × h
triple                 the three rectangles share an area > 0
pay                    paid delivery: paidHundredths[band]; free delivery: freeHundredths[band] = 3 × paidHundredths[band]

The paid delivery lands on the permit's paid field; a triple there plays free deliveries 1 … 5 on the permit's larger free field (a triple on a free delivery awards nothing more). The round pays T = the paid delivery's pay + every free delivery's pay, in hundredths of the stake, and the payout is floor(stake × T / 100) — one rounding per round, never per delivery. Every round plays at its permit's full maximum (16 × the top paid pay): no cap ever cuts a Delivery Error round, because the game refuses a bet whose operator cap or money cap would be lower before anything is debited or drawn. The round record carries the inputs, written by the operator's game service and never supplied by the caller:

Recorded inputMeaning
modeThe permit the bet named (standard, unstable or illegal): it picks the fields and the pays
capHundredthsThe round's maximum it was accepted at — required, and it must be exactly 16 × the permit's top paid pay on the round's own paytable row (15 × for a bought round)
maxWinThe win ceiling the round was locked to (min of the operator's and the jurisdiction's maximum win and the game's 122.88× rule); it must cover the maximum payout floor(stake × capHundredths / 100)
moneyCapWhen one applied: the money cap the round was accepted under (min of the operator's and the jurisdiction's maximum win, minor units); it must allow the round's maximum, moneyCap × 100 ≥ capHundredths × stake
operatorCap100When one is set: the operator's multiplier cap the round was accepted under (hundredths); it must be at least capHundredths

With them the verifier replays the six draws, every delivery, the total and the payout; the verification page recomputes all of it in the browser, draws each delivery on the chamber, and compares every delivery with the server's decode and the payout with what the round booked. A round without a recorded permit or cap is reported as not replayable; a recorded cap that is not the permit's maximum, recorded caps that would not have allowed the round, or a max win below its maximum payout make the record inconsistent (outcome.consistent false, so valid false). A row is refused rather than read unless it is a delivery_error_geometry row of rules version 1 with the chamber, grid, bands, free deliveries (5 at 3×), the three permits' fields, four positive pays per permit with free pays exactly 3× the paid pays, maxRoundHundredths = 16 × and boughtMaxHundredths = 15 × the top paid pay, 6 draws over [0, 24⁴ − 1] with the published decode, and rules that match rulesHash and rules version 1.

The outcome is the engine's own: paid (null in a bought round), trigger, free (none or exactly five) with every delivery as { draw, positions, cargo, form, band, pair, pairArea, fieldArea, triple, tripleArea, hundredths } (draw is the draw index, band counts from 0, pair is null when nothing overlaps), plus draws (all six values), drawsUsed, totalHundredths, capHundredths, maxRoundHundredths, payout and capWithinMaxWin.

The answer's round (the round's own record) shows an ordinary round's moneyCap and operatorCap100 as recorded — both keys as soon as the round recorded either, null for one it did not, as for a bought round — so the verification page can name a recorded cap that would not have allowed the round; a round that recorded neither shows neither. A malformed cap makes the round not replayable and is shown as recorded, except one of a type the platform never writes: an operator cap that is not a number shows as null, a money cap that is not text as its type in brackets, such as "(number)".

Worked example (from the published test vectors). Server seed 9f555f09995d2ee397e4660a33e0b6b74c2c47dac129fdb7a030a7c86c25ed9b, client seed de-golden-standard, nonce 6007, rtp-96, the Standard permit, stake 12,345 minor units: the six draws are 118982, 241507, 136380, 233093, 299632 and 156227. Draw 0 gives positions 14, 13, 14 on the 154 × 110 paid field: pair 1 + 3 covers the whole field (16,940, band 4, 2.10×) and the three rectangles share 7,150 — a trigger. The free deliveries on the 190 × 132 field pay 0.30×, 2.31×, 0.30×, 6.30× and 2.31×, so T = 1362 and the payout is floor(12345 × 1362 / 100) = 168,138 minor units. The vectors (packages/provably-fair/tests/vectors/delivery-error-golden.json) were computed by an independent implementation and hold every delivery of every case.

Bought rounds ​

A bonus buy is one round of the game, drawn from the same committed seed block as any other round of that game, at the bet's nonce. What differs is the table the draw is read against and what the round costs: the price is ⌈stake × P / 100⌉ (P in hundredths of the base stake, the stake the round is drawn, capped and paid on), and every payout is computed on the base stake.

Pins, not the published row. A buy's rules are pinned by the verifier itself, so a bought round replays at the price it was sold at even if a game is later re-priced. Shatter, Strike, Overload, Ricochet and Delivery Error record the sha256 of their buy rules (buyRules) on every bought round; the verifier holds a copy of each rules JSON under its hash and replays a round only under a pinned hash (an unknown hash is not reproducible). Slotty Slots, Popworks, 3D City and Fox'n Flock record no hash: their bought rounds replay under the LEGACY pin, the rules they have been sold under since 3 November 2026. No published paytable row changed for any buy.

GameOption(s) and price PPinThe bought round's draws
Shatterextreme-break, 17003ccbf812441226e86a86c49ea5db9443e7ec602e25be9f466c9abb263b50501b (fair-cap-floor-v2)One draw fracture on [0, 678390]; when the round's cap binds and the draw lands beyond the capped table, a second draw fracture-redraw on [0, W(C) − 1]
Strikeblaze-strike, 1000e9df2c8158c3632453a7dfa9651ea8cdb6a78fa9b5e427bbdbf27e849b04ae6d (fair-cap-floor-v1)One draw ignition on [0, W(C) − 1] over the Long shot buy table (Blaze or higher)
Overloadbreach-surge 3600, breach-meltdown 9400d7f3e7e2e3b6471ff31986f4c8e0f9b8b0e0a6792f750e0dce348d5c3b0baca7 (fair-cap-floor-v1)One draw surge on [0, W(C) − 1] over the mode's breach entries
Ricochetspecial-tight 500, special-scatter 700, special-wild 200055b860a146e06547b513b264db7df6eea682cb8478df7b65e1470f287a3adc6f (fair-cap-floor-pool-v1)One draw shot over the buy table, its weights divided by their greatest common divisor
3D City: Neighborhoodsskyline, 1000LEGACY (fair-cap-floor-v1, floor tier 6)One draw on [0, W′(C) − 1] over the Skyline district and above (W′ = 17,500,000 at 250×)
Popworkscolor-rush, 3280 / 3290 / 3360 / 3380 by variantLEGACY (color-rush-entry-v1)The round's byte stream as in an ordinary round, but free spin k = draw k; draw 0 (the paid spin) is never read; pressure starts at 1×; capped at 500×
Slotty Slotsfree-spins, 1245LEGACY (free-spins-award-v1)The 5 reel draws are requested and not read: no reel decides a bought round. It awards 10 free spins (payout 0); each spin is its own round with its own nonce, linked by bonusTriggerRoundId
Fox'n Flockgolden-flock, 265LEGACY (golden-flock-trigger-v1)The run's draws as in an ordinary run; the encounter at slot 0 is read as the Golden Flock trigger
Delivery Errorbonus-standard 936 / 935 / 935 / 935, bonus-unstable 2044 / 2035 / 2042 / 2038, bonus-illegal 2132 / 2121 / 2175 / 2168 (rtp-92 / 94 / 96 / 97)f678b5979a017af6058a147f51e0499959822f633f8ecede63a07696dddfa38d (free-deliveries-v1)The round's six draws as in an ordinary round, but draw 0 (the paid delivery) is never read: free delivery k = draw k on the bought permit's free field, at 3× its band; never capped (sold only at a cap of at least 15 × band 4)

What /verify checks on a bought round. The recorded price must be the pinned price, the booked bet (debit) must be exactly ⌈stake × P / 100⌉, and for Shatter, Strike, Overload and Ricochet the recorded cap must be exactly the one the recorded money cap and operator cap give (min(mode max, operator cap, ⌊moneyCap × 100 / stake⌋); Shatter from maxWin); 3D City and Popworks check the cap against the round's max win as in an ordinary round; Delivery Error requires the recorded cap to be exactly the permit's bought maximum (15 × band 4 of the round's row), the recorded operator and money caps to allow it, and the round's max win to cover the maximum payout. A failed check makes outcome.consistent false, so valid is false. A record that cannot be trusted at all — an option the game's verifier does not replay, a missing base stake or cap, a malformed price, rules pin, money cap or operator cap — is not replayed: the answer carries outcome.reproducible: false, outcome.bought. option and outcome.reason, no draws, and valid: false.

A replayed buy's outcome is the game's outcome plus payout (on the base stake) and bought: { option, priceHundredths, price, rule, rulesHash, recordedPriceHundredths, debit }; Popworks also gives the entry, Slotty Slots the free spins awarded. The round record in the answer gains:

FieldMeaning
round.buy, round.buyPriceHundredthsThe option bought and the price it recorded
round.buyRulesThe rules pin it recorded (Shatter, Strike, Overload, Ricochet, Delivery Error)
round.operatorCap100, round.moneyCapThe caps it recorded, when set
round.baseStakeThe base stake (Slotty Slots: bet per line × lines); the round's totalBet is the price
round.paidMultiplierOfPriceWhat a completed bought round paid as a multiple of its price
round.buyRecordProblemWhy the record cannot be replayed (then nothing is replayed)
round.freeSpinRoundsSlotty Slots: the free-spin rounds the bought round paid for, { roundId, nonce } in play order — each verifiable on its own

Worked example (Shatter, from the published test vectors). Server seed 659e14f5ee09124edb4d9fe3892ce8156bf8f71468f3405e158cf6c40aca4f6f, client seed shatter-rtp-92-uncapped-client, nonce 0, rtp-92, base stake 100 minor units, recorded cap 31655 (uncapped), buyRules 3ccbf812…501b: the booked bet must be ⌈100 × 1700 / 100⌉ = 1700; the first draw gives u = 563758, inside the table, so no second draw is made; the outcome is rightCorner and the payout 487 (4.87× the base stake), which must equal the round's booked win. The vectors for every buy game are in packages/provably-fair/tests/vectors/buy/ (seed, nonce, recorded inputs, booked win and the expected draws, outcome and payout).

Core Algorithms ​

Uniform Random (uniformFromBytes) ​

Generates an unbiased random integer using rejection sampling. This is the verifier's own function, from packages/provably-fair/src/verification/algorithms/rejection-sampling.ts (comments added); the platform's provably-fair derivation draws a round's values with it too:

typescript
export function uniformFromBytes(
  cursor: ByteCursor,
  min: bigint,
  max: bigint,
): bigint {
  const range = max - min + 1n;

  if (range <= 0n) {
    throw new Error(`Invalid range: min=${min.toString()}, max=${max.toString()}`);
  }

  if (range === 1n) {
    return min;                                   // no bytes are read
  }

  const bitsNeeded = range.toString(2).length;    // the binary length of range
  const bytesNeeded = Math.ceil(bitsNeeded / 8);
  const maxValue = 1n << BigInt(bytesNeeded * 8); // 256 ** bytesNeeded
  const limit = maxValue - (maxValue % range);    // largest multiple ≤ maxValue

  let value: bigint;
  do {
    value = cursor.readBigInt(bytesNeeded);       // the next bytes, big-endian
  } while (value >= limit);                       // reject: read the next bytes

  return min + (value % range);
}

A range that is an exact power of 256 (256, 65,536, 16,777,216, …) reads one byte more than its values need (256 → 2 bytes, 65,536 → 3); a range that is any power of two never rejects (it divides 256 ** bytesNeeded). Delivery Error's 331,776 reads 3 bytes and rejects a value of 16,588,800 or more (1.123 % of attempts). rng-service's generateUniformRange, the platform DRBG's sampler, follows the same rule but stops with an error after 99 rejections in a row (a chance below 2⁻⁹⁹ per draw); the verifier reads on until a value is accepted.

Weighted Selection (weightedFromBytes) ​

Selects from a weighted pool using cumulative distribution:

typescript
function weightedFromBytes(
  cursor: ByteCursor,
  items: Array<{ value: unknown; weight: number }>,
): unknown {
  const totalWeight = items.reduce((sum, item) => sum + item.weight, 0);
  const roll = Number(uniformFromBytes(cursor, 0n, BigInt(totalWeight - 1)));

  let cumulative = 0;
  for (const item of items) {
    cumulative += item.weight;
    if (roll < cumulative) return item.value;
  }
  return items[items.length - 1].value;
}

Fisher-Yates Shuffle (shuffleFromBytes) ​

Produces an unbiased permutation of an array:

typescript
function shuffleFromBytes<T>(cursor: ByteCursor, array: T[]): T[] {
  const result = [...array];
  for (let i = result.length - 1; i > 0; i--) {
    const j = Number(uniformFromBytes(cursor, 0n, BigInt(i)));
    [result[i], result[j]] = [result[j], result[i]];
  }
  return result;
}

Seed Lifecycle ​

active → expired → revealed / auto_revealed
StateDescription
activeCurrently in use for new rounds
expiredReplaced by a new seed, awaiting reveal
revealedPlayer manually requested the seed reveal
auto_revealedAutomatically revealed after seed rotation

Seed Rotation ​

When a seed is rotated:

  1. The old server seed is revealed to the player (raw hex value)
  2. A new server seed is generated
  3. The new hash commitment is shared with the player
  4. The nonce counter resets to 0

Players can request seed rotation at any time (between rounds only).

Client Seed ​

SettingValue
Min length1 character
Max length64 characters
Default16-character random hex string
Character setAlphanumeric + common symbols

Players can change their client seed at any time between rounds.

Provably Fair WebSocket Events ​

Transport

Gameplay and provably-fair data are delivered over HTTPS REST today. The round response already carries provablyFair (serverSeedHash, clientSeed, nonce, and per-action sub-nonce), and the in-game Provably Fair panel plus the /verify/ page use that. The WebSocket event shapes below are the planned real-time protocol and are not yet delivered — treat them as roadmap.

EventDirectionDescription
pf.seed_activatedServer → ClientNew seed pair activated, includes server seed hash
pf.round_dataServer → ClientRound verification data (after round completes)
pf.seed_revealedServer → ClientRevealed server seed after rotation

pf.seed_activated ​

json
{
  "type": "pf.seed_activated",
  "payload": {
    "serverSeedHash": "a1b2c3d4...",
    "clientSeed": "f0e1d2c3...",
    "nonce": 0
  }
}

pf.round_data ​

json
{
  "type": "pf.round_data",
  "payload": {
    "roundId": "round-abc123",
    "serverSeedHash": "a1b2c3d4...",
    "clientSeed": "f0e1d2c3...",
    "nonce": 42,
    "gameType": "slots",
    "outcome": { "reelPositions": [3, 7, 12, 1, 9] }
  }
}

pf.seed_revealed ​

json
{
  "type": "pf.seed_revealed",
  "payload": {
    "serverSeed": "deadbeef...",
    "serverSeedHash": "a1b2c3d4...",
    "totalRounds": 156,
    "newServerSeedHash": "x9y8z7w6..."
  }
}

The payout amount check, and the rounds that are not replayed ​

The payout amount check (payoutCheck, since 2026-11-21). Katapuult, Fox'n Flock, Pass the Jay, Shots and Red District pay in minor units and round down, so a payout is checked as an amount, never as a multiplier rounded for display (a Pass the Jay stake of 500 minor units at the 1.3857× rung books floor(500 × 13857 / 10000) = 692, and 692 / 500 is 1.384, not 1.3857). For a round whose record carries its commitment, and a request whose seed, client seed and nonce are that commitment (SHA-256 of the seed equal to the recorded hash), the answer of POST /api/v1/provably-fair/verify carries a payoutCheck: what the game's own rules pay for the replayed result, set beside what the round booked. A request with another round's seed, client seed or nonce replays bytes that are not this round's, so it gets no payoutCheck (it is not valid, as before). These five games draw the result at sub-nonce 0 (the round's setup), so a request for another sub-nonce (subNonce 1, 2, …) replays an action's block, not the result, and it gets no payoutCheck either. valid and payoutMatchesBooking keep their documented meaning for these games (payoutMatchesBooking stays null, see the table below); the amount check is payoutCheck, and the verification page recomputes the same amount in the browser and holds it against the server's.

GameWhat the rules pay (minor units, rounded down)Engine rule
Katapuultround(m × 100) × stake / 100 for the recorded tier's result m; a round that recorded no tier (before 5 Oct 2026) must have booked one of its three pre-drawn resultsgames/catapult/src/core/outcome.ts outcomeWin
Fox'n Flockround(m × 100) × stake / 100 for the run's final multiplier — every ending pays the pre-drawn run; a bought run on its base stake, at most its recorded max wingames/fox/src/core/outcome.ts outcomeWin
Pass the Jaystake × rung / 10000 (rungs in ten-thousandths) for the safe passes recorded; 0 when the joint reached the copgames/pass-the-jay/src/math/ladder.ts payoutFor
Shotsstake × exit / 100 for a consistent recorded exit (hundredths); 0 without an exitgames/shots/src/math/crash.ts payoutFor
Red Districtstake × step / 100 for the visits recorded (hundredths); 0 after a mishapgames/red-district/src/math/ladder.ts payoutFor
typescript
interface PayoutCheck {
  status: 'match' | 'mismatch' | 'explained' | 'not_checked';
  matches: boolean | null;   // expected === booked; null when either is missing
  expected: string | null;   // minor units: what the rules pay for the replayed result
  booked: string | null;     // minor units: what the round booked (its total win)
  stake: string | null;      // the stake the round was paid on (a bought run: its base stake)
  rule: string;              // the rounding rule in words, naming the engine function it mirrors
  reason?: string;           // mismatch / explained / not_checked: a machine code
  explanation?: string;      // the same in plain words
  candidates?: { safe: string; medium: string; risky: string }; // Katapuult without a recorded tier
  matchedTier?: string | null;
  eraRulePays?: string;      // Katapuult closed before launch before 13 Oct 2026: what the platform paid then ("0")
  todayRulePays?: string;    // … and what today's rule pays (the Medium tier)
  closedBeforeLaunch?: true; // Katapuult: the record shows the round was never launched (see below) — closed before launch, settled by the rule
}

status is the verdict: match when the booking equals what the rules pay and mismatch when it does not — one minor unit either way is a mismatch, with reason booked_less_than_rules_pay, booked_more_than_rules_pay or (Katapuult without a recorded tier) booked_none_of_the_tiers. A casino's (or a jurisdiction's) maximum win per round can lower a payout, and Katapuult, Fox'n Flock runs that were not bought, Pass the Jay and Red District do not record it on the round, so the explanation of a lower booking says that it cannot be checked here; Shots records its round cap (capMultiplier100, which already bounds the exit) and a bought Fox'n Flock run its max win (applied). For explained, matches compares the booking with what the rule then in force paid (eraRulePays). It is not_checked — never a verdict — when:

reasonWhen
not_completedThe round is not completed, so it has no booking to compare with
stake_not_recordedThe round record carries no stake
passes_not_recordedPass the Jay: the record carries no passes, so the stopping point is not known
exit_not_recordedShots: the record carries no exit inputs
visits_not_recordedRed District: the record carries no visit count
record_contradicts_drawShots or Red District: the recorded exit or visits do not follow from the draw (already valid: false)
result_not_decodedThe replayed result carries no multiplier, ladder or step to pay on
tier_unknownKatapuult: the record names a tier the game does not have
bought_round_not_replayedA bought Fox'n Flock run that cannot be replayed from its record (its outcome.reason says why)

A Katapuult round closed before its launch, before 13 Oct 2026. Until the fix of 13 October 2026 a round staked but never launched paid 0× (the platform's rule then); since the fix it lands on the Medium tier and records it (engine.settleUnfinished in games/catapult/src/engine.ts). The fix was deployed in the afternoon of 13 October (UTC); the verifier dates it 2026-10-13T14:14:00Z (KATAPUULT_UNLAUNCHED_FIX_AT in packages/provably-fair/src/verification/payout-check.ts). Since the fix such a round records the tier it settled on, so a round closed before launch that records no tier was settled by the earlier code. The record shows that a round was never launched when it counts no action, or when it ended some other way than by its launch: the launch is the one action that ends a Katapuult round, recorded with the end reason max_win_reached, while the player's cash-out (cash_out), the inactivity sweeper (inactivity) and a new round (superseded) close a round that is still in play. An aim counts an action but does not launch, so the action count alone does not say that a round was launched (katapuultNeverLaunched in packages/provably-fair/src/verification/payout-check.ts). A round that recorded no tier, that was never launched and that started before the fix answers status: 'explained', reason: 'closed_before_launch_before_fix', eraRulePays: '0', todayRulePays — computed by the engine's own code on the round's committed draw — and closedBeforeLaunch: true, with the text "Closed before launch. Before 13 Oct 2026 such rounds paid 0×; that was corrected on 13 Oct 2026, and this round would now pay amount (the Medium tier)." (or, when the Medium result pays nothing, "… and today's rule (the Medium tier) pays nothing for this round either."). The page shows it as an explained (amber) state, never green. After the fix such a round records the tier it settled on (the Medium tier), is judged by today's rule like any other, and carries closedBeforeLaunch: true; a round that records another tier chose it at its launch.

Rounds of the original skill version. Katapuult and Fox'n Flock rounds played before the games-of-chance release of 3 August 2026 were priced by the skill version's score_map rows: their payout came from the player's aim and power (Katapuult) or catches, shepherd hits, idle time and cash-out (Fox'n Flock), which were never recorded. They are not replayed (no mapper is run for them): the answer is the documented 422 REPLAY_FAILED with its message exactly as before ("Cannot perform weighted selection with empty weight list"), followed by reason: 'skill_version_inputs_not_recorded' and the plain text in explanation ("Played on the original skill version of Katapuult, before 3 Aug 2026. Your aim and power were not recorded, so the result cannot be replayed. The commitment still proves the seed was fixed before you played."). The last sentence follows the round's record: when the record carries no commitment it says so instead, and so it does when the request's seed, client seed or nonce are not the record's. POST /api/v1/provably-fair/verify-action answers these rounds the same way. The page shows that text as a neutral card beside the commitment check and the bytes it computed itself, and says nothing there about how the result was drawn.

A round record without its commitment. Before 10:46 UTC on 5 October 2026 a provably-fair round's record could be saved without its seed commitment: when the round was closed automatically (after inactivity, replaced by a new round, or abandoned), or when its record was completed later by a data correction (the records completed from the payment ledger in August 2026, and the abandoned multi-step rounds closed by a one-time correction on 30 July 2026). Rounds of a casino that does not offer provably fair carry none either. A Verify link for such a round names no round id and finds no round record: when the seed is a published one (revealed) that allocated the link's nonce, the documented 400 INVALID_REQUEST keeps its code and message and carries reason: 'record_without_commitment' and an explanation; a request without a round id that also sends gameId and paytableVariant (so that it is replayed) is answered 200 as before, with the same reason and explanation in data. A request that names a round whose record carries no commitment is answered 200 as before (not valid: recordMismatches lists commitment) with the same reason and an explanation, and no payoutCheck — except a Katapuult or Fox'n Flock round of the original skill version, which is answered 422 as before (see above). A seed that is not published, a nonce the seed never allocated, or a round id that names no round adds no reason. The verifier never infers which round drew the nonce. The page shows a neutral card, and describes the round's setup without saying what it decided.

The public verifier: POST /api/v1/provably-fair/verify ​

Anyone can call it, with no session. It replays a round from its revealed seed and holds the result against the round's own record. The verification page calls it too, and runs its own replay in the browser beside it.

Request ​

typescript
interface VerifyRequest {
  serverSeed: string;       // the revealed server seed (GET /api/v1/provably-fair/revealed-seed/:serverSeedHash)
  clientSeed: string;
  nonce: string | number;   // digits only (at most 20), never negative
  roundId?: string;         // the round (a UUID) — the in-game Verify link carries it as `round`
  gameId?: string;          // needed only without a round record, e.g. "popworks"
  paytableVariant?: string; // needed only without a round record, e.g. "rtp-96"
  subNonce?: string | number;  // digits only; see "Sub-nonces" below — the link carries it as `sn`
  serverSeedHash?: string;  // the commitment you were shown before the bet (64 hex characters)
}

Without a roundId the verifier finds the round by its commitment (SHA-256 of the seed) and nonce. When a round record is found, the record decides the game and the RTP variant: a different gameId or paytableVariant in the request is not used. The round is replayed as what it is, and the conflict is reported in recordMismatches (so valid is false). The record also supplies everything the player chose that the replay needs (Katapuult's risk tier, Shots' exit, Shatter's mode, the round cap, the stake and so on), and the time that picks the paytable that priced the round. None of these is ever taken from the request.

Sub-nonces. Single-step games (Slotty Slots, Shatter, Strike, Overload, Ricochet, 3D City: Neighborhoods, Popworks, Delivery Error) draw every round from the bare clientSeed:nonce block. A Slotty Slots free spin is a round of its own with its own nonce. For these games a subNonce in the request is ignored: the answer says so (subNonceIgnored: true and a notes line) and replays the round's own block. The in-game Verify links carry sn=0 for every game except Slotty Slots, and they verify as they are. Multi-step and session games use the sub-nonce they are given, and sub-nonce 0 (the round's setup) when none is sent. Safe Smash and Bit Key Rush are always replayed whole, and the sub-nonce only picks the action shown (outcome.subNonce, outcome.action). Only the round's own result block, sub-nonce 0, gets a payoutCheck (see "The payout amount check").

Response ​

typescript
interface VerifyResponse {
  data: {
    valid: boolean;                       // see below
    hashMatch: boolean | null;            // SHA-256(serverSeed) equals the commitment
    inputsMatchRecord: boolean | null;    // clientSeed, nonce, gameId, paytableVariant and any serverSeedHash sent equal the round record's
    payoutMatchesBooking: boolean | null; // the replayed payout equals what the round booked
    recordMismatches?: Array<{ field: string; given: string | null; recorded: string | null }>; // present when inputsMatchRecord is false
    subNonceIgnored?: true;               // a single-step game was sent a sub-nonce (see above)
    notes?: string[];                     // plain-language explanations of the above
    steps: VerificationStep[];            // the trace: step 1 is SHA-256(serverSeed), step 2 the HMAC block read
    outcome: GameOutcome;                 // the replayed round, game by game (see each game's section)
    round?: RoundRecord;                  // the round's own record: commitment, inputs, totals, currency, decimals, status… (a bought round: see "Bought rounds"; an ordinary Delivery Error round's caps: see "Delivery Error")
    paytable?: { contentHash: string | null; publishedAt: string | null; data: object }; // Safe Smash / Bit Key Rush
    payoutCheck?: PayoutCheck;            // since 2026-11-21: Katapuult, Fox'n Flock, Pass the Jay, Shots, Red District (see "The payout amount check")
    reason?: string;                      // since 2026-11-21: 'record_without_commitment' — the round this request names has no commitment, or (no round id; gameId + paytableVariant sent) a published seed allocated the nonce and no round record carries the link's commitment and nonce
    explanation?: string;                 // … the same in plain words
  };
}

interface VerificationStep {
  step: number;
  label: string;
  input: string;
  output: string;
  algorithm: string;
}

How each check is decided:

Fieldtruefalsenull
hashMatchSHA-256 of the seed equals the commitment: the round record's, or without a record the serverSeedHash you sentIt does not, so the seed is not the one committed toThere is no commitment to compare with (no round record, no serverSeedHash sent)
inputsMatchRecordThe record has a commitment, and the client seed, the nonce (as a number), and any gameId, paytableVariant or serverSeedHash sent equal the record'sSomething differs, or the record has no commitment (field: "commitment": the round was not provably fair). Each difference is listed in recordMismatchesNo round record was found
payoutMatchesBookingThe replayed payout (outcome.payout, minor units) equals what the round booked. For Safe Smash and Bit Key Rush: every debit, every credit and the ending (outcome.comparison)It differsThe round has no booking (not completed), or the verifier does not compute that game's payout (Slotty Slots rounds recorded without their bet per line, Fox'n Flock runs that were not bought, Katapuult, Pass the Jay, Shots, Red District — for these five games the payout amount is checked in payoutCheck instead, and the page shows their result)

valid is true only when hashMatch is true and none of inputsMatchRecord, payoutMatchesBooking, outcome.reproducible or outcome.consistent is false. A round the verifier cannot replay (for example a Bit Key Rush round from before guesses were recorded) is therefore not valid, even though its seed matches. Without a commitment nothing was verified, so valid is false. Send the round id, or the serverSeedHash you were shown.

Errors ​

Statuserror.codeWhen
400INVALID_REQUESTA required field is missing, or a value is malformed: a nonce or sub-nonce that is not digits (1e1, -1, 0x1, 1.5, empty), a seed that is not a string, a round id that is not a UUID, a serverSeedHash that is not 64 hex characters. Nothing is looked up. A request without a round id that no round record matches (so no game variant is known) is also a 400; since 2026-11-21, when the seed is a published one that allocated the nonce, it carries error.reason: 'record_without_commitment' and error.explanation (see "A round record without its commitment"; the same request with gameId and paytableVariant is answered 200 as before, with data.reason and data.explanation)
404NOT_FOUNDNo paytable was ever published for the game and variant (an unknown game or variant)
422REPLAY_FAILEDThe round cannot be replayed with its record and paytable (the message says why). Since 2026-11-21 a round of the original skill version of Katapuult or Fox'n Flock keeps its message and also carries error.reason: 'skill_version_inputs_not_recorded' and error.explanation, the reason in plain words (see "Rounds of the original skill version")

POST /api/v1/provably-fair/verify-action takes the same fields plus actionIndex (the sub-nonce of one action) and answers the same shape for that one action of a multi-step or session round. Its payoutMatchesBooking is always null, because one action is not the round's booking. For a single-step game it answers 400, because those rounds make no actions.

The package API ​

The same checks are exported by @slotty/provably-fair: verifyOutcome(input) takes the optional serverSeedHash and record ({ serverSeedHash, clientSeed, nonce, totalWin }) and returns valid, hashMatch, inputsMatchRecord, payoutMatchesBooking and recordMismatches beside serverSeedHash (the seed's own SHA-256), combinedHash, steps and outcome. verificationChecks and verificationValid are the two halves on their own.

Step-by-Step Verification Trace ​

Example trace for a Slotty Slots round:

Step 1: Verify server seed hash
  Input:  serverSeed = "deadbeef1234..."
  Output: SHA256 = "a1b2c3d4..." ✅ matches commitment

Step 2: Compute combined hash
  Input:  HMAC-SHA512("deadbeef1234...", "f0e1d2c3...:42")
  Output: "8f3a7b2c..." (128 hex chars)

Step 3: Map reel 1 position
  Input:  bytes[0..1] = [0x8F, 0x3A] → uniformFromBytes(max=29)
  Output: position = 3

Step 4: Map reel 2 position
  Input:  bytes[2..3] = [0x7B, 0x2C] → uniformFromBytes(max=29)
  Output: position = 7

... (continues for all 5 reels and bonus triggers)

Final outcome: [3, 7, 12, 1, 9] ✅ matches game result