🔒 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

1

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.

server_seed = random_bytes(32)
commitment = SHA256(server_seed)
→ stored on Solana blockchain
2

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_seed = your_secret
player_commitment = SHA256(player_seed)
→ submitted to the smart contract
3

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.

slot_hash = Solana SlotHashes sysvar
→ impossible to predict in advance
4

Reveal & Verify

After the game, both seeds are revealed on-chain. Anyone can verify:

combined = SHA256(server_seed + player_seed + slot_hash)
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

Traditional
CyberDice
Randomness
Trust us bro
Verify on-chain
House edge
2-15%
3% rake (PvP)
Audit
Paid certifications
Open smart contract
Withdrawals
3-5 business days
Instant, on-chain
KYC
Required
Connect wallet
Transparency
Opaque
Every tx on Solana

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