Purpose: a neutral, educational walkthrough of how a provably fair dice game can derive results from public blockchain data.
What “Provably Fair” Means
With provably fair systems, the outcome is produced from public, verifiable inputs through a one‑way function. Anyone can reproduce the result later to confirm nothing was altered. Here we’ll use:
- Inputs: a Monero transaction ID (TXID) and its block hash from any public explorer.
- Function:
SHA‑256
over the concatenation ofTXID || blockHash
. - Mapping to dice: interpret the hash as a big integer → convert to
base‑6
→ take the last 6 digits and add +1 to each (yielding six dice with values 1–6).
How This Demo Works
- Concatenate TXID + block hash as ASCII (no separators).
- Compute
SHA‑256
of that string → a 32‑byte digest (64 hex chars). - Interpret the digest as a big integer, then convert it to
base‑6
. - Read the last six base‑6 digits, map each digit
0..5
to a die face1..6
by adding+1
. - These six dice are the outcome; re‑running with the same inputs reproduces them exactly.
Odds, Payouts & House Edge (Basics)
Games typically set a threshold based on the sum of the six dice. Higher thresholds are rarer and pay more. The house edge comes from how those thresholds and payouts are calibrated relative to true probabilities. The provably fair mechanism doesn’t change the odds—it enables verification.
Verify a Roll Independently
- Record the TXID and block hash used.
- Run the same
SHA‑256 → base‑6 → last‑6‑digits → +1
procedure. - Confirm your six dice match. If they don’t, the roll was not derived as claimed.
Monero Dice Sites
Some sites which allow you to pay dice using Monero include:
Risk & Variance Mindset
Even with transparency, outcomes are random and short streaks are meaningless. Treat all gambling as entertainment and set strict limits.
Education & entertainment only — not financial or legal advice. If you have a gambling problem, get help: ncpgambling.org