Audit Verdict
The repo is the credential. You don't have to trust us — every finding ships as code. Run npm test to re-run the full audit: 15 scored verification steps, 5M simulated rounds, 1,100 live bets re-verified, all 1,100 drand signatures matched byte-for-byte against the public drand chain.
Crash Audit Overview
This audit independently validates the Crash game operated by Duel.com across five domains: deterministic outcome generation, entropy integrity, live-to-verifier parity, RTP mathematical accuracy, and fairness integrity testing. We placed 1,100 real bets across three capture phases and independently verified every single crash point using our own implementation of the algorithm — then re-fetched all 1,100 drand beacon signatures directly from the public drand chain to prove the operator did not fabricate external-entropy values.
What Was Audited
- The RNG algorithm is deterministic and verifiable
- Each round's server seed is cryptographically committed via SHA-256 before the round opens
- Every round uses external entropy from the drand quicknet public randomness beacon as its second input
- Server seeds are unique per round — no reuse, no epoch chain, no nonce cursor
- Crash points are computed via HMAC-SHA256 over the server seed and drand randomness
- Crash points are reproducible from (serverSeed, drandRandomness) — verified on all 1,100 rounds
- Every bet was placed before its round's drand beacon was published — pre-commitment proven for all 1,100 rounds
- Captured payout records internally consistent — amount_won = amount × auto_cashout × 0.999 on wins, 0 on losses (pre-rakeback display values; settled payout = bet × cashout)
- Theoretical RTP is 99.9% across every cashout target (flat 0.1% distribution edge pre-rakeback, anti-circularity proven)
- Bet amount does not influence the RNG or the crash point
- Players can independently verify every bet using only public inputs
What Audit Covers
| Area | Description |
|---|---|
| Commit-Reveal System | SHA-256 seed hash committed before round, drand beacon published after commitment, server seed revealed after round |
| External Entropy | drand quicknet beacon (chain 52db9ba7…4e971, 3-second period) — second cryptographic input to every round |
| Pre-Commitment Timing | Authoritative proof: bet placed before drand published, via transactions-API timestamp + drand chain formula |
| RNG Analysis | HMAC-SHA256 outcome derivation, uint32 threshold mapping, bias analysis |
| Payout Logic | Flat 0.1% edge verification, bet-size invariance, win-condition logic |
| Live Parity | Independent crash-point recomputation vs. live game results for every captured round |
| RTP Validation | Anti-circularity formula proof, multi-stream simulated RTP (5M rounds), cherry-pick detection (Pass 2) |
| Fairness Integrity | Standard 15-test integrity matrix + drand-specific adversarial tests (timing, prediction, round shopping) |
What Audit Guarantees
- Crash points are deterministic and reproducible from (serverSeed, drandRandomness) — verified on all 1,100 live bets
- Every bet landed on the operator's database before its round's drand beacon was published on the public chain (mean observed margin: 12.196s)
- All 1,100 drand signatures in the dataset match signatures independently re-fetched from the public drand chain
- The crash-point distribution follows the uint32 survival-probability formula — verified by 5M simulated rounds and Fisher's combined test
- The house edge is a flat 0.1% at every cashout target — proven analytically from the uint32 threshold formula
- drand round IDs are strictly increasing — monotonic, no replays or reuse (no round shopping is established by the bet-before-beacon timing, S1.x)
- Server seeds are unique across all 1,100 rounds — no reuse, no collision
- 14 of 16 fairness integrity tests pass; 1 N/A (replay protection — single-step game); 1 FLAG (server-side input validation gap on auto_cashout_multiplier — disclosed to Duel.com, does not affect fairness)
What Audit Excludes
- Infrastructure or server security
- Wallet, payments, or operational systems outside game logic
- Rakeback layer — 99.9% is the certified pre-rakeback distribution RTP; the separate 0.001 × bet rakeback (Zero Edge, net 100.0% within daily cap) is operator-side and out of audit scope
- Cross-account sampling
- Max win cap enforcement — not embedded in game logic
References
Crash — Game Rules6 sections▶
Crash is a live multiplier game. At the start of each round, the server commits to a server seed and pairs it with a drand public randomness beacon to determine a crash point — the multiplier at which the round will end. During the round, a multiplier ticks upward from 1.00×. Players can set an auto-cashout target before the round starts, or cash out manually at any point during the round. If the player cashes out (manually or automatically) before the crash point, the bet wins; if the crash point is reached first, the bet loses. Every player in a round shares the same server seed and drand beacon pair — the round is a single shared outcome.
1. Place your bet — Enter a stake. You can set an auto-cashout target (e.g., 1.5×, 2×, 10×) before the round, cash out manually during the round, or both.
2. Round opens — The operator has already committed to a server seed and drand round ID for this round.
3. Betting closes — No more bets accepted for this round.
4. drand beacon publishes — The public drand chain publishes the beacon signature for the committed drand round. The server seed and drand randomness together determine the crash point.
5. Multiplier ticks — The round's multiplier rises from 1.00× on your screen.
6. Outcome — If you cash out (manually or via auto-cashout) before the crash point, you win: settled payout = `stake × cashout`. The 0.1% edge lives in the crash-point distribution itself; the in-app `amount_won` field shows the pre-rakeback display value `stake × cashout × 0.999`. If the round crashes first, you lose the stake.
7. Verify — After the round ends, take the revealed server seed, the drand signature (which you can independently fetch from api.drand.sh), and the formula and reproduce the crash point yourself.
A Crash bet wins if the player cashes out (manually or via auto-cashout) before the round's crash point is reached. There are no partial wins — the outcome is binary.
| Outcome | Condition | Example (stake $1, cashout at 2×) |
|---|---|---|
| Win | Player cashed out before the crash point | Cashed out at 2×, crash point = 3.5× → captured `amount_won` = $1 × 2 × 0.999 = $1.998 (pre-rakeback display; settled payout $2.00) |
| Loss | Round crashed before the player cashed out | Crash point = 1.73× → payout = $0 (stake lost) |
| Instant crash (loss) | Round crashes immediately at 1.00× | Any bet loses; happens about 1 in 92 rounds (~1.09%) |
Crash's risk curve is controlled by where the player chooses to cash out — either a pre-set auto-cashout target or a manual cashout during the round. Higher cashouts mean rarer wins with larger payouts; lower cashouts mean frequent small wins. The house edge stays flat across all cashout points.
- Low cashouts (1.1×–1.5×) cash out frequently — The probability of the crash point reaching 1.5× is about 66.6%, so small-cashout strategies win often but pay little per win
- High cashouts (10×–100×) pay rarely but large — The probability of reaching 100× is about 1%, so high-cashout strategies rely on long tail hits
- RTP is constant — The house edge is a flat 0.1% at every cashout point. No cashout point is mathematically better or worse than any other in expected value
- Variance scales inversely with cashout — Higher cashout points produce higher variance in the short run; short-horizon empirical RTP may swing far from 99.9% (see S4)
| Parameter | Value | Notes |
|---|---|---|
| Minimum Crash Point | 1.00× | Raw formula can produce <1; flooring clamps to 1.00 |
| Maximum Crash Point | ~42,949,672.95× | Upper bound from `(2³² / 1) × 0.999` |
| Cashout Range | Player-controlled, above 1.00× | Auto-cashout pre-set, manual cashout during round, or both |
| House Edge | 0.1% flat | No scaling — same edge at every cashout point |
| Theoretical RTP | 99.9% | Formal proof from uint32 survival formula |
| RNG Algorithm | HMAC-SHA256 | Combines server seed bytes (key) with drand randomness (message) |
| External Entropy Source | drand quicknet | 3-second publishing period; chain `52db9ba7…4e971` |
| Round Structure | Multiplayer shared outcome | All players in a round share one (serverSeed, drandRoundId) pair |
Every Crash round uses two cryptographic inputs — a server seed committed by the operator and a drand beacon from the public randomness chain. Crash does not use a player-contributed client seed; the drand beacon provides the external entropy in its place.
| Seed Type | Format | Example (round 829099) | Purpose |
|---|---|---|---|
| Server Seed | 64-char hex (32 bytes) | `3c9c71aa9ffa2691…fab1d23` | Operator-provided randomness, revealed after the round ends |
| Server Seed Hash | 64-char hex SHA-256 | `706bb90b571c6165…b7f4e151c0` | Published before round opens — commits the operator to the seed |
| drand Round ID | Integer | `27798178` | Identifies the specific drand beacon used by this round |
| drand Randomness | 96-char hex (BLS signature) | `b18fa6dc92304844…1767fd56d` | Public randomness, fetched from the drand quicknet chain |
Crash has no multiplier lookup table — the crash point is computed directly from a cryptographic formula, and the payout is a simple function of the player's cashout point.
uint32 value = first 4 bytes of HMAC-SHA256(serverSeed_bytes, drandRandomness:0) as integer
raw = (2³² / (value + 1)) × 0.999
crashPoint = max(1.00, floor(raw × 100) / 100)
If crashPoint ≥ auto_cashout: amount_won = amount × auto_cashout × 0.999
Otherwise: amount_won = 0| Cashout Target | P(crash ≥ target) | Payout on Win (per $1 stake) | Theoretical RTP |
|---|---|---|---|
| 1.5× | ~66.60% | $1.4985 | 99.9% |
| 2× | ~49.95% | $1.998 | 99.9% |
| 5× | ~19.98% | $4.995 | 99.9% |
| 10× | ~9.99% | $9.99 | 99.9% |
| 50× | ~1.998% | $49.95 | 99.9% |
P(crash ≥ x) × x × 0.999 = 0.999 for any x ≥ 1 — the house edge is built into the formula, not into a table. The × 0.999 edge factor is the sole source of house advantage; removing it would yield a fair (100%-RTP) game.Why Provably Fair Matters▶
Traditional online casinos require players to trust that games are fair. Provably fair systems eliminate this trust requirement by allowing players to mathematically verify that outcomes were not manipulated. In a Provably Fair system:
- The casino commits to the inputs that determine a result before the player bets
- A source of randomness exists that the casino cannot predict or control
- Anyone can verify the outcome after the fact
High-Level Overview7 sections▶
Checklist Reference
Based on the ProvablyFair.org Audit Execution Checklist, here are the tests covered under this audit document.
| Test | Description |
|---|---|
| Server seed commit exists before round | SHA-256 hash of server seed published before the drand beacon for the round is available |
| Server seed reveal matches commit | `SHA-256(hex_decode(serverSeed)) = serverSeedHash` for all 1,100 rounds |
| External entropy source is public | drand quicknet beacon — independently fetchable from api.drand.sh |
| Server seed uniqueness | 1,100 unique server seeds across 1,100 rounds — no reuse, no chain, no cursor |
| drand round monotonicity | drand round IDs strictly increasing across all rounds — monotonic, no replays or reordering |
| Full determinism | Same (serverSeed, drandRandomness) → same crash point |
| Test | Description |
|---|---|
| RNG depends only on server seed + drand randomness | No client seed, no nonce, no timestamp, no hidden inputs |
| drand is the external entropy source | Public randomness beacon, cryptographically signed, independently verifiable |
| No mixed entropy sources | No `Math.random`, no system clocks, no other RNG paths |
| drand signature authenticity | 1,100 / 1,100 drand signatures in the dataset match signatures fetched directly from api.drand.sh |
| Test | Description |
|---|---|
| Bet placed before drand published | For every round, the operator's signed `timestamp_raw` from the transactions API is earlier than the drand beacon's publish time (computed from the public chain formula) |
| Timing proof uses authoritative sources | Both endpoints of the margin are independently re-derivable — no trusted auditor clock |
| Every round satisfies the inequality | 1,100 / 1,100 rounds with positive pre-commitment margin (minimum: 0.404s) |
| Test | Description |
|---|---|
| Live outcomes match verifier | 1,100 / 1,100 crash points recomputed — 0 mismatches |
| Multi-phase verification | Phase A (baseline 1.5×), Phase B (varied cashout targets), Phase C ($10 stakes) |
| Bet-size invariance | $10 bets produce the same crash points as $0.01 bets |
| Test | Description |
|---|---|
| Anti-circularity proof | RTP computed directly from the uint32 survival formula for 11 cashout targets — all ≤ 99.9% |
| Distribution edge audit (pre-rakeback) | Flat 0.1% confirmed across all cashout targets — no scaling edge |
| Payout rules correctness | `amount_won = amount × auto_cashout × 0.999` on wins, 0 on losses, for all 1,100 bets (pre-rakeback display values) |
| Simulated RTP convergence | 5M rounds (10 streams × 500K) converge on theoretical 99.9% via Fisher's combined test (p = 0.5382, 0/10 streams below α = 0.01) |
| Cherry-pick detection | Pass 2 — 14 chi² fails across 1,100 casino seeds (threshold 21 under H₀) — no evidence of seed pre-selection |
To get an overview of how a single Crash round works, here is a high-level breakdown:
1. Round Opens — Operator commits to a server seed (publishes its SHA-256 hash) and assigns the round a drand round ID from the upcoming quicknet schedule
2. Player Bets — Player enters stake and auto-cashout target; bet is accepted before the committed drand round publishes
3. Betting Closes — No more bets for this round
4. drand Publishes — The drand quicknet chain publishes the beacon for the committed round ID (BLS signature, ~3 seconds after the previous beacon)
5. Crash Point Computed — `HMAC-SHA256(serverSeed_bytes, drand_utf8:0)` → first 4 bytes as uint32 → `(2³² / (value+1)) × 0.999` → floor to 2 decimals
6. Multiplier Ticks — On-screen multiplier rises from 1.00× toward the computed crash point
7. Settlement — If `crashPoint ≥ auto_cashout` the bet wins; captured `amount_won` shows `stake × auto_cashout × 0.999` (pre-rakeback display). Otherwise stake lost.
8. Reveal — Operator reveals the plaintext server seed; player can recompute the crash point from (serverSeed, drandRandomness) and verify
Provably fair gambling systems use cryptographic primitives to guarantee the integrity of outcomes. Crash's model relies on three components: a server seed committed via SHA-256 hash before the round's external-entropy source is available, a public randomness beacon (drand quicknet) whose publication time is independently verifiable, and HMAC-SHA256 as the deterministic function that combines them into a crash point. Because the operator commits to the server seed before the drand beacon for the round is available, and because anyone can independently verify both the SHA-256 commitment and the drand signature, the operator cannot retroactively choose a server seed to produce a favorable outcome.
The Commit-Reveal model for Crash spans four phases, with an additional external-entropy step sitting between the commitment and the reveal:
Commit Phase:
Before the round's drand beacon is available, the operator generates a server seed and publishes its SHA-256 hash (`serverSeedHash`) alongside the round's assigned drand round ID. Only the hash is sent to the player — the seed itself stays hidden. Bets are accepted during this phase.
drand Phase:
The drand quicknet chain publishes the beacon for the committed drand round on its fixed 3-second schedule. This step is independent of both the operator and the player — drand's publishing time and content are cryptographically fixed and cannot be manipulated by either party.
Compute Phase:
Once the drand beacon publishes, the operator combines the server seed with the drand randomness via HMAC-SHA256 to produce the crash point. The on-screen multiplier begins ticking.
Reveal Phase:
After the round ends, the operator reveals the plaintext server seed. Any player can now verify `SHA-256(hex_decode(serverSeed)) = serverSeedHash` and recompute the crash point from (serverSeed, drandRandomness). Every subsequent round uses a fresh server seed — there is no seed chain or epoch.
Client-seed games (like Duel's Keno and Mines) require the player to supply an input the casino cannot predict — the client seed. This gives the player direct control over the unpredictable half of the RNG input. Crash takes a different approach: instead of a per-player client seed, it uses a public randomness beacon (drand quicknet) as the second cryptographic input. drand publishes a new randomness value every 3 seconds, signed by a distributed threshold of independent validators, on a fixed schedule. Because the beacon is public, everyone — including the operator — gets the same value, and no party can predict or bias it. This architecture produces the same cryptographic guarantee as a client seed:
- The operator commits to the server seed before the drand beacon for the round is available — so the operator cannot pick a seed that pairs favorably with the beacon
- drand is signed by a BLS threshold of validators distributed across multiple organizations — no single party can forge or withhold a beacon
- Any player can fetch the drand beacon directly from api.drand.sh and verify it matches the signature the operator claimed to use
- Every player in the same round shares the same (server seed, drand beacon) pair — the round has one shared outcome, not per-player outcomes
Why There's No Nonce or Epoch Chain
In client-seed games, the casino typically uses a single server seed for many rounds, incrementing a nonce counter per round to produce different outcomes. The seed is only rotated when the player requests it — ending the epoch and revealing the old seed. Crash takes a simpler approach: every round gets a brand-new server seed, and there is no nonce counter.
- Each round has exactly one server seed — no reuse, no chain, no cursor
- The nonce is effectively always
0(fixed in the HMAC message) because every seed is already unique - There is no epoch to rotate — the "reveal" happens after each round rather than after N rounds
- The 1,100-round dataset contains 1,100 unique server seeds and 1,100 unique server seed hashes — verified by Step 4
Round N: serverSeed_N (unique), drandRoundId_N → crashPoint_N
[seed revealed after round ends]
Round N+1: serverSeed_(N+1) (new, unrelated), drandRoundId_(N+1) → crashPoint_(N+1)
[seed revealed after round ends]
...
Every round is a fresh commitment. There is no N-th nonce — every HMAC
message embeds the fixed suffix ":0".Determinism Guarantee
Given identical inputs, the output is always identical:
HMAC-SHA256(hexDecode(serverSeed), drandRandomness_utf8 + ":0") → Always same hash
First 4 bytes of hash as uint32 → Always same value
(2³² / (value + 1)) × 0.999 → Always same raw
max(1.00, floor(raw × 100) / 100) → Always same crashPoint
crashPoint ≥ auto_cashout → Always same win/loss
stake × auto_cashout × 0.999 → Always same payoutTechnical Glossary5 categories▶
| Term | Definition |
|---|---|
| Provably Fair | A gambling model in which the inputs to every outcome are cryptographically committed before the outcome is known, and any player can independently verify the outcome after the fact without trusting the operator. |
| Commit-Reveal Protocol | A protocol in which one party publishes the hash of a secret before any dependent action, then reveals the secret afterward. In Crash, the operator commits to the server seed (via SHA-256) before the round's drand beacon is available, and reveals the seed after the round ends. |
| External Entropy Source | A source of randomness outside the operator's control that contributes to outcome generation. Crash uses the drand quicknet public randomness beacon as its external entropy source. |
| Determinism | The property that identical inputs always produce identical outputs. In Crash, any (serverSeed, drandRandomness) pair deterministically produces exactly one crash point. |
| Term | Definition |
|---|---|
| Server Seed | A 64-character hex string (32 bytes) generated by the operator. Hex-decoded to raw bytes before use as the HMAC key. Each Crash round uses a unique server seed. |
| Server Seed Hash | The SHA-256 hash of the hex-decoded server seed bytes. Published by the operator before the round's drand beacon is available — commits the operator to the seed. |
| drand Round ID | An integer identifying a specific beacon in the drand quicknet chain. Committed by the operator at round start; the beacon for that round publishes on drand's fixed schedule. |
| drand Randomness | The 96-character hex BLS signature published by the drand quicknet chain for a given round ID. Used as the HMAC message (after hex→bytes→UTF-8 conversion) together with the `:0` suffix. |
| Single-Use Seed Model | Crash's seed-rotation pattern: every round gets a fresh server seed (no reuse, no chain, no nonce counter). The effective nonce is always `0` — embedded as a fixed `:0` suffix in the HMAC message. |
| Term | Definition |
|---|---|
| HMAC-SHA256 | Keyed hash function that combines the server seed bytes (key) with the drand randomness and `:0` nonce (message) to produce a 32-byte hash. The first 4 bytes are interpreted as a uint32 to derive the crash point. |
| SHA-256 | Cryptographic hash function used for the commit-reveal proof. `SHA-256(hex_decode(serverSeed)) = serverSeedHash` is checked on every round. |
| BLS Threshold Signature | The signature scheme used by the drand quicknet chain. A drand beacon is a BLS signature produced by a threshold-quorum of independent validators — no single validator can forge or withhold a beacon. |
| Hex Decoding | Converting a hex-encoded string to raw bytes. The server seed is hex-decoded before being used as the HMAC key; the drand randomness is hex-decoded before being converted to a UTF-8 string for the HMAC message. |
| uint32 Threshold Mapping | The method by which the HMAC output is transformed into a crash point. The first 4 hash bytes are interpreted as an unsigned 32-bit integer `value`; the crash point is `max(1.00, floor((2³² / (value+1)) × 0.999 × 100) / 100)`. This mapping is bias-free — every uint32 value has exactly one corresponding crash point. |
| Term | Definition |
|---|---|
| Verifier | An independent implementation of the RNG and payout logic used to recompute live-game outcomes from captured inputs. A verifier must produce identical results to the live game on every round. |
| Parity | The property that the verifier's computed crash point equals the live game's reported crash point for every round. 1,100 / 1,100 parity means zero mismatches across the entire dataset. |
| Anti-Circularity | Verification that the RTP is not derived from the same table used to compute payouts. For Crash this is formula-based — the uint32 survival-probability formula `P(crash ≥ x) = floor(2³² × 0.999 / x) / 2³²` is independently evaluated for 11 cashout targets, all yielding ≤ 99.9% RTP. |
| Survival Probability Formula | The analytical formula `P(crash ≥ x) = floor(2³² × 0.999 / x) / 2³²` which gives the probability that a Crash round's crash point reaches at least `x`. Multiplied by `x`, it yields the theoretical RTP at cashout target `x` — always ≤ 99.9%. This is the proof technique Crash uses for anti-circularity (analogous to the Hypergeometric Distribution used by Keno or the Combinatorial Identity used by Mines). |
| Term | Definition |
|---|---|
| Crash Point | The multiplier at which a Crash round ends. Minimum 1.00× (instant crash), theoretical maximum ~42,949,672.95×. Computed from the uint32 value derived from HMAC-SHA256. |
| Auto-Cashout | The multiplier target at which a player's bet automatically settles. If the crash point reaches or exceeds this target, the bet wins `stake × auto_cashout × 0.999`; otherwise the bet loses. |
| Instant Crash | A round with `crashPoint = 1.00` — the minimum possible value. Theoretical probability 1.0891%. Any auto-cashout target above 1.00× loses on an instant-crash round. |
| Shared Round | A single round's (server seed, drand beacon) pair is shared across every player who bets into it. Every player in the round sees the same crash point. The operator commits to the pair at round-open time, before any individual bet is placed. |
| Multi-Stream Chi-Squared | The statistical methodology used in S4 Pass 1. Because Crash produces a continuous distribution with no natural bins, a single long chi² test is vulnerable to Monte Carlo variance in individual tail bins. Running 10 independent 500K-round streams and combining their p-values via Fisher's method (R.A. Fisher, 1925) restores the variance-dilution that per-config chi² gives to discrete games like Keno or Plinko. |
Every Crash round on Duel.com is generated from two cryptographic inputs: a server seed committed by the operator and a drand beacon published by the public randomness chain. The operator commits to its server seed by publishing a SHA-256 hash before the round's drand beacon is available — and crucially, before any bet is placed. After the round ends, the server reveals the actual seed, and anyone can verify that the hash matches. This cryptographic commitment, paired with the external drand beacon, makes it impossible for the operator to secretly change your outcome after you bet.
What We Verified
- Casino commits to the server seed hash before the round's drand beacon is available
- Every bet was placed before its round's drand beacon was published on the public chain (mean margin 12.196s)
- drand round IDs are strictly increasing across all 1,100 rounds — monotonic, no replays or reordering
- Server seeds are unique per round — no reuse, no chain, no nonce cursor
- Crash points are fully determined by (serverSeed, drandRandomness) before the multiplier animation plays
- Identical inputs always produce the same crash point — confirmed across all 1,100 bets
What This Means for You
- The casino cannot change the crash point after you bet
- The external entropy source (drand) publishes on a fixed public schedule outside the operator's control
- Every bet is unique — fresh server seed per round, no reuse, no cursor
- Any result can be independently verified using only public inputs
- Outcomes are tamper-proof and verifiable even months later
- Cherry-picking favourable (seed, beacon) pairs is structurally impossible
| Test | Status | Finding |
|---|---|---|
| Server seed committed before round | Pass | SHA-256 hash of server seed published before the round's drand beacon is available — casino cannot change randomness after betting |
| drand pre-commitment timing | Pass | 1,100 / 1,100 bets placed before drand beacon publication (min margin 0.404s, mean 12.196s; authoritative transactions-API timestamp + drand chain formula) |
| drand round monotonicity | Pass | drand round IDs strictly increasing across all 1,100 rounds — 0 reuse, 0 replays (monotonic) |
| Server seed uniqueness | Pass | 1,100 unique server seeds and 1,100 unique hashes across 1,100 rounds — no reuse, no chain, no cursor |
| Seed hash integrity | Pass | SHA-256(hex_decode(serverSeed)) = serverSeedHash for all 1,100 revealed seeds — commitment intact |
| Deterministic output | Pass | Same (serverSeed, drandRandomness) always produces same crash point — 1,100 / 1,100 confirmed |
| Bet-size invariance | Pass | Phase C verifies under the identical RNG code path — crash point is independent of bet amount |
All 1,100 revealed server seeds hash-verified. Every bet landed on the operator's database before its round's drand beacon was published on the public chain, with a minimum margin of 0.404 seconds — proven from the operator's signed transactions-API timestamp and the public drand chain formula. Outcomes are fully deterministic — the same server seed and drand randomness always produce the same crash point. The casino cannot change your result after you bet.
This section verifies that Duel.com's Crash random number generation produces cryptographically sound, unbiased outputs using only the disclosed inputs. The RNG uses HMAC-SHA256 keyed by the hex-decoded server seed with the drand randomness as message — the first 4 bytes of the output are interpreted as a uint32 and mapped through the formula floor(2³²/(value+1) × 0.999 × 100) / 100 to produce the final crash point. We independently implemented this algorithm, verified it produces the same results as the live game for all 1,100 captured rounds, and re-fetched all 1,100 drand signatures from api.drand.sh to confirm the external entropy was not forged.
What We Verified
- HMAC-SHA256 produces cryptographically sound, unpredictable output for every round
- Only disclosed inputs affect outcomes — no timestamps, no server-side state, no hidden entropy
- All 1,100 drand beacon signatures in the dataset match, byte-for-byte, signatures independently re-fetched from the public drand chain
- The uint32 → crash point mapping is bijective and bias-free — no rejection sampling needed; every uint32 maps to exactly one crash point
- Crash-point distribution matches the theoretical uint32 survival-probability model — Fisher's combined p = 0.5382 across 10 independent 500K-round streams, 0 / 10 below α = 0.01
- Consecutive outcomes are statistically independent across 5M simulated rounds — no autocorrelation, no runs-test anomalies
What This Means for You
- Every crash point is generated fairly — no multiplier value is more or less likely than the formula predicts
- The external entropy comes from a public, cryptographically-signed source the casino cannot forge or withhold
- No hidden randomness or server-side tricks influence which multiplier you see
- Consecutive rounds are not correlated — past results don't affect future outcomes
- The algorithm depends only on inputs you can verify yourself against the public drand chain
| Test | Status | Finding |
|---|---|---|
| RNG derived only from disclosed inputs | Pass | HMAC-SHA256(hex_decode(serverSeed), drandRandomness_utf8:0) — no hidden entropy |
| Entropy purity | Pass | No timestamps, external APIs (other than drand itself), Math.random, or server-side state |
| External entropy authenticity | Pass | 1,100 / 1,100 drand signatures match, byte-for-byte, signatures re-fetched from api.drand.sh (chain 52db9ba7…4e971) |
| Algorithm independently implemented | Pass | Independent implementation produces identical crash points for all 1,100 live rounds |
| Uniform mapping | Pass | uint32 → crash point mapping is bijective and bias-free — no rejection sampling required |
| Simulation integrity | Pass | 5M rounds (10 streams × 500K) — Fisher's combined p = 0.5382, 0 / 10 streams below α = 0.01 |
| Serial independence | Pass | lag1Z = −0.029, runsP = 0.0436 across combined 5M-round sequence — both within acceptance bounds |
The Crash RNG uses only the two disclosed inputs. All 1,100 drand signatures in the dataset match the public drand chain byte-for-byte — the external entropy is verifiably real, not fabricated. The uint32 → crash point mapping is bijective and introduces no bias. 5 million simulated rounds produce a crash-point distribution statistically indistinguishable from the theoretical uint32 survival-probability model (Fisher's combined p = 0.5382). Consecutive outcomes are independent.
This section validates that the independent verifier produces the exact same crash point as the live game for every single bet. It also confirms the win condition and that every payout matches Duel's published multiplier formula. Any mismatch would invalidate the fairness guarantee.
What We Verified
- Every round independently recomputed from (serverSeed, drandRandomness) — full crash point verified, not just the payout
- Captured-value consistency: amount_won = stake × auto_cashout × 0.999 on wins, 0 on losses — exact for all 1,100 rounds (pre-rakeback display values)
- Win/loss flags are correct — the round counted as a win exactly when the crash point reached your cashout target, on all 1,100 / 1,100 rounds
- Bet amount is not an input to the RNG — crash point depends only on the server seed and drand beacon
- All three capture phases verified under the identical RNG code path
What This Means for You
- The verifier isn't a simulation — it produces the exact same crash point as the live game
- Every round you play can be independently recomputed by anyone with the revealed seeds
- No hidden logic alters your payout based on how much you bet or which target you pick
- The game engine in production matches the published algorithm exactly
| Test | Status | Finding |
|---|---|---|
| Crash-point recomputation | Pass | 1,100 / 1,100 exact match — crash point verified for every round from (serverSeed, drandRandomness) |
| Payout correctness | Pass | All 1,100 rounds: captured amount_won = stake × auto_cashout × 0.999 on wins, 0 on losses — exact to floating-point precision (pre-rakeback display values) |
| Win-condition logic | Pass | 1,100 / 1,100 isWin flags correct (crashPoint ≥ auto_cashout) |
| Flat distribution edge | Pass | effectiveEdge = 0.1 on every round — no scaling, no per-target variation |
| Bet-size invariance | Pass | 100 / 100 Phase C ($10) rounds verify under the identical RNG code path used at $0.01 stakes — bet amount is not an RNG input |
| Multi-phase coverage | Pass | 3 structured phases: baseline (A, 800), varied targets (B, 200), elevated stake (C, 100) |
All 1,100 crash points matched the independent verifier exactly. Payout math correct to floating-point precision on all 1,100 rounds. Win-condition logic (crashPoint ≥ auto_cashout) is correct for every bet. Flat 0.1% house edge confirmed across all cashout targets.
This section mathematically verifies that the flat 0.1% distribution edge (pre-rakeback) is exactly what's advertised across all cashout targets. The key test is anti-circularity: we prove the RTP from first principles using the uint32 survival-probability formula and the payout formula — no casino-supplied probability data is used. We then back up the first-principles proof with 5,000,000 simulated rounds across 10 independent streams, and run a cherry-pick detection pass against all 1,100 casino-chosen server seeds.
What We Verified
- House edge is exactly 0.1% — flat across all cashout targets and all bet sizes
- RTP proven from first principles: P(crash ≥ x) × x × 0.999 = 0.999 for every cashout target — derived from the formula, not from casino data
- 5M-round simulation converges on theoretical RTP (mean 99.8720% across 5 targets — within 0.03% of 99.9%)
- Cherry-pick detection: all 1,100 casino-chosen server seeds tested against 1,000 random drand values each — no evidence of seed pre-selection
- Bet amount does not influence crash points — confirmed at $0.01 and $10
What This Means for You
- The house edge on Crash is a flat 0.1%, the same regardless of cashout target or bet size
- The RTP proof is derived independently — it doesn't rely on trusting the casino or any simulated data
- The casino's seeds show no evidence of being chosen to produce favourable early outcomes (structurally impossible given drand's post-commitment publishing schedule)
- Your bet amount doesn't affect the crash point
| Test | Status | Finding |
|---|---|---|
| Anti-circularity | Pass | P(crash ≥ x) × x × 0.999 = 0.999 for all 11 tested cashout targets — algebraic identity, no casino data used |
| Distribution edge audit | Pass | 0.1% flat across all targets — implemented via the × 0.999 multiplier in the RNG |
| Simulated RTP (Pass 1) | Pass | 5M rounds, mean RTP = 99.872%, Fisher's combined p = 0.5382 across 10 streams |
| Cherry-pick detection (Pass 2) | Pass | 1,100 casino seeds tested against random drand pairings — no evidence of seed pre-selection |
| Bet-size invariance | Pass | Bet amount is not an input to the RNG — same crash point at any stake. Tested in Phase C (100/100) |
| Formula-based payout | Pass | amount_won = stake × auto_cashout × 0.999 verified for all 1,100 bets — uniform formula, no multiplier table |
The 99.9% RTP is proven algebraically — P(crash ≥ x) × x × 0.999 = 0.999 for every cashout target, derived from the formula not measured from casino data. 5M simulated rounds confirm: mean RTP = 99.872%, well within statistical tolerance. Cherry-pick detection across the casino's 1,100 actual server seeds shows no anomalies. The house edge is a flat 0.1% — no per-target scaling, no hidden variation.
Sections 1–4 prove the game is mathematically fair. Section 5 proves the implementation maintains integrity under non-standard conditions. We applied 16 standard fairness integrity tests covering seed integrity, commitment timing, outcome determinism, cross-player isolation, payout integrity, and house-edge / distribution integrity. For Crash, the framework is adapted from the pan-game matrix to reflect the dual-entropy (server seed + drand) architecture: there is no client seed to test, no nonce sequence per player, and the commit-reveal chain is anchored against an external public beacon rather than a per-player seed pair.
What We Verified
- Seed commitment — server seed hash published before drand beacon emits (1,100 / 1,100 verified)
- drand authenticity — every beacon value matches the public drand chain byte-for-byte (1,100 / 1,100)
- Pre-commitment timing — bet placed before drand publication for every round (min margin 0.404s)
- Outcome determinism — identical inputs produce identical crash points (1,100 / 1,100 recomputed)
- Cross-player isolation — all players see the same crash point per round (global outcome model)
- Distribution integrity — crash-point distribution matches uint32 survival formula (Fisher's `p = 0.5382`)
What This Means for You
- No one — not the player, not the casino — can alter the crash point through the API
- The casino commits to each round's outcome before the external entropy is even known
- Every round is cryptographically isolated from every other — no state leakage
- The external entropy comes from a public beacon the casino cannot forge or withhold
- The server rejects malformed bet parameters and ignores injected outcome fields
| Test | Status | Finding |
|---|---|---|
| Seed integrity | Pass | 5 tests — all four SEED-001..004 pass + new SEED-005 statistical quality (χ² p = 0.7413, H = 7.995 bits/byte) |
| Commitment timing | Pass | Bet placed before drand in 1,100 / 1,100 rounds (min margin 0.404s); drand round IDs strictly increasing |
| Outcome determinism | Pass | Identical inputs produce identical crash points — 1,100 / 1,100 confirmed. Replay protection: architecturally N/A |
| Cross-player isolation | Pass | RNG state independent (lag1Z = −0.029, runsP = 0.0436); global outcome model — all players see same crash point |
| Payout integrity | Flag | Field injection probed (3 betting-phase + 3 running-phase) — server computed crash point and multiplier from seed chain; no injected field reflected. Boundary re-run (FI-PAYOUT-001): the server imposes no upper bound on auto_cashout_multiplier — two values above the theoretical maximum crash point (~4,290,672,328.70×) were accepted, silently turning an auto-cashout bet into a de-facto manual one. Server-side input-validation gap — disclosed to Duel.com (see FI-PAYOUT-001 in matrix). |
| House edge & distribution | Pass | Anti-circularity proved 99.9% RTP for 11 targets; Fisher's combined p = 0.5382 across 10 × 500K streams |
16 fairness integrity tests: 14 pass, 1 N/A (replay protection — single-step game), 1 FLAG (server-side input validation gap on auto_cashout_multiplier — does not break fairness). Disclosed to Duel.com.
Every Crash round can be independently reproduced using three publicly disclosed inputs: the casino's revealed server seed, the drand round ID, and the drand beacon's randomness value. No hidden variables, no private backend data. If your calculated crash point matches the game result — and the drand beacon matches the public chain at `api.drand.sh` — the round was provably fair. This section walks you through the process and provides an independent verification tool built from the same code used in this audit.
Key Principles
- Every Crash round can be independently reproduced
- No hidden variables — no private backend data, no server-side state
- If your computed crash point matches the game result AND the drand beacon matches the public chain, the round was provably fair
- Most players can verify directly through the Duel.com fairness UI
What You Need
- Server Seed — revealed after the round ends (casino's committed entropy, hash published before the round)
- drand Round ID — the external beacon round number (committed before the casino's seed is revealed)
- drand Randomness — the BLS-signed output from drand's public chain, fetchable from `api.drand.sh`
Only disclosed inputs are used. Identical inputs always produce identical output. The external entropy (drand) is independently verifiable against a public chain.
This section consolidates the open-source repository, datasets, output artifacts, and reproducibility posture of the audit. Every finding, every statistic, every pass/fail result can be independently reproduced by anyone with a computer and an internet connection. The repository is the credential — not this report.
Repository Details
- GitHub: ProvablyFair-org/duel-crash
- Commit: f97d5b8baf234a61ca8ca9441cb6220fbf6647c7
- Game: Crash (duel-crash)
- Public Verifier: audit.provablyfair.org/casino/duel/tools/verify-bets
Prerequisites
- Node.js 18+
- npm 8+
- Git
- TypeScript (installed via npm)
Repository Structure
Commands to Reproduce
Audit Reproducibility Pinning
All audit results can be independently reproduced using the pinned commit, dataset, and commands above. The dataset hash ensures you're running against the same 1,100 rounds.



