Provably Fair System

Zero chance of manipulation.
Mathematically guaranteed.

Every round result is determined by a cryptographic commitment made before bets open, combined with external blockchain entropy we cannot predict or control. The math is public. The algorithm is open. Anyone can verify every single round.

Algorithm
SHA-256Industry-standard cryptographic hash
Entropy Source
BSC ChainExternal blockchain data we cannot control
Verifiable
100%Every round can be independently verified
Manipulation
ImpossibleMathematically impossible to alter results

How It Works

The complete round lifecycle

01
Private

Step 01 · Before bets open

Server Seed Generated

Before any player can see or interact with the round, our system generates a cryptographically secure random seed using 32 bytes from pgcrypto — the OS-level CSPRNG. This seed is stored privately and never exposed.

02
Public

Step 02 · Round opens

Hash Published to Everyone

The SHA-256 hash of the seed is immediately published and visible to all players. This is our commitment: we cannot change the seed later without the hash changing. Copy it and keep it — you can verify the round after it ends.

03
Real-time

Step 03 · Bets accepted

Players Place Bets

Players join the round. Each bet is recorded atomically in the database with their ticket range. The server seed is already committed — we cannot modify it based on who is betting or how much. The outcome is locked.

04
Blockchain

Step 04 · Round closes

External Entropy Added

When betting closes, we fetch real-time data from the BNB Smart Chain — a block hash and block number we cannot predict in advance. This external entropy is combined with the server seed, ensuring no party controls the final result alone.

05
Deterministic

Step 05 · Winner selected

Cryptographic Draw

The winning ticket is calculated using an HMAC-SHA256 signature with the server seed as the key and the combined entropy (client seed + block hash) as the message. This produces a deterministic, tamper-proof number.

06
Verifiable

Step 06 · After the round

Seed Revealed Publicly

The original server seed is published for everyone to see. You can independently verify: SHA-256(server_seed) must match the hash we showed you at the start. Then recalculate the winner yourself. The math will always match.

The Algorithm

Open formula. Auditable by anyone.

This is the exact logic that runs on our server. No black boxes, no hidden modifiers. The same code produces the same result every time — including when you run it yourself.

fair-draw.algorithm.ts
// 1. Server generates seed BEFORE bets open
server_seed = gen_random_bytes(32) // 32 bytes from OS CSPRNG
server_seed_hash = SHA256(server_seed) // published publicly
// 2. After round closes — collect external & client entropy
client_seed = SHA256(all_bet_ids_sorted) // player entropy
block_hash = BSC.getBlock(latest).hash // blockchain entropy
round_number = current_round_number
// 3. Combine inputs with HMAC-SHA256
message = `${client_seed}:${round_number}:${block_hash}`
result_hmac = HMAC_SHA256(key: server_seed, message)
// 4. Deriving the winning ticket
hex_part = result_hmac.substring(0, 8) // first 4 bytes
result_value = parseInt(hex_part, 16) // convert to uint32
winning_ticket = (result_value % total_tickets) + 1
// 5. Reveal server_seed so anyone can verify
assert SHA256(server_seed) === server_seed_hash // ✓ always true

Pre-commitment

The hash is published before bets open. We cannot change the seed later — the hash would no longer match and you would immediately detect the fraud.

Player Entropy

The client seed is a hash of all bets placed in the round. Every player contributes to the entropy. Without your exact bet, the result would be completely different.

External Entropy

BSC block data is generated by miners worldwide. We have zero influence over which block gets used, guaranteeing external fairness.

Deterministic Logic

With server seed + client seed + block hash, the algorithm generates an identical result every time. No hidden variables or manual selections.

Transparent Distribution

Exactly how the pot is split.

No hidden fees. No surprise deductions. The split is fixed, public, and enforced by the database — not by us.

Per-round distribution

Total pot breakdown

Round Winner

The player who holds the winning ticket

90%

Platform Fee

Infrastructure, development, operations

10%

Database-enforced constraint

CHECK (percentage_winner + percentage_admin = 100)

This SQL constraint makes any other distribution mathematically impossible at the storage layer.

Enforced at database level

A CHECK constraint in PostgreSQL ensures percentage_winner + percentage_admin = 100. This cannot be overridden at runtime — only a migration would change it, which is visible in our commit history.

Atomic settlement

Winner payout and platform fee happen in the same database transaction. There is no step where funds can be redirected or lost. If the transaction fails, everything rolls back.

Immutable transaction ledger

Every balance movement is recorded in balance_transactions — an append-only ledger. Deletions are not permitted. Every round settlement is permanently auditable.

Independent Verification

Verify any round yourself.

1

Step 1

Copy the hash before betting

Before placing any bet, copy the server_seed_hash shown in the game header. This is our cryptographic commitment — if we change the seed, this hash will no longer match.

2

Step 2

Wait for the round to end

After the round closes, the original server_seed is revealed publicly. Go to the History page, open the round detail, and you will see both the hash and the revealed seed.

3

Step 3

Verify the seed matches the hash

Run SHA-256(server_seed) in any online tool or your terminal. The result must be identical to the hash you copied in step 1. If it is different — something went wrong and you should report it immediately.

4

Step 4

Recalculate the winning ticket

Combine server_seed + block_hash + block_number (all visible in the history detail), run SHA-256, convert to BigInt, and modulo the total ticket count. You will get the exact winning ticket number.

verify.sh

# Step 1: Verify seed matches hash

echo -n "$SERVER_SEED"

| sha256sum

# Should match server_seed_hash

# Step 2: Recalculate winner

node verify-round.js \

--seed "$SERVER_SEED" \

--block "$BLOCK_HASH" \

--tickets $TOTAL

Tools you can use

SHA-256 online

Any SHA-256 hash tool

Node.js

crypto.createHash('sha256')

Python

hashlib.sha256()

Round History

All data visible here

Frequently Asked

Questions & Answers

Everything you need to know about how our Provably Fair system works, why it cannot be manipulated, and how to verify results yourself.

0 manipulations possible

Cryptographically enforced

External entropy

BSC blockchain — not controlled by us

100% verifiable

Every round, by anyone