🔒 Provably Fair
Every game on CyberDice uses cryptographic commit-reveal randomness. You don't need to trust us — you can verify every roll.
How It Works
Commit Phase
Before the game starts, the server generates a random secret seed and publishes its SHA-256 hash on-chain. This hash is your guarantee — the server can't change the seed after committing.
commitment = SHA256(server_seed)
→ stored on Solana blockchain
Player Input
You provide your own client seed (or one is generated for you). This ensures the server alone cannot determine the outcome — your input is mixed into the randomness.
player_commitment = SHA256(player_seed)
→ submitted to the smart contract
Blockchain Entropy
On top of both seeds, we mix in Solana SlotHashes — unpredictable blockchain state that neither party can control. This adds a third layer of entropy.
→ impossible to predict in advance
Reveal & Verify
After the game, both seeds are revealed on-chain. Anyone can verify:
dice_roll = combined % 6 + 1
✅ Verify: SHA256(server_seed) == original commitment
✅ Verify: SHA256(player_seed) == player commitment
✅ Verify: slot_hash matches the on-chain record
Why This Matters
Server Can't Cheat
The commitment is published before you play. Changing the seed would break the hash — anyone can detect it.
Player Input Matters
Your seed affects the outcome. Even if the server knows its own seed, it can't predict the combined result.
Blockchain Timestamped
All commitments and reveals are stored on Solana. Immutable, permanent, publicly auditable.
Zero Trust Required
You don't trust CyberDice. You trust math. SHA-256 is the same hash used by Bitcoin.
CyberDice vs Traditional Casinos
Technical Details
Blockchain: Solana (400ms block times, ~$0.001 per transaction)
Smart Contract Framework: Anchor 0.32.1
Hash Function: SHA-256 (same as Bitcoin)
Entropy Sources: Server seed + Player seed + Solana SlotHashes
Settlement: All payouts processed on-chain via smart contract
Rake: 3% (300 basis points) of game pot, configurable by platform authority
Code: Smart contract source available for audit upon request