← Lioness Poker

Checking whether the table server is logging hands on Storm…

How fairness works

This page describes what the code does today (v0.42) — not a promise. Storm devnet, test tokens with no money value. Where something is not guaranteed yet, it says so.

Two kinds of tables, two proofs

Tables vs house bots (in your browser)Multiplayer & REAL tables (table server)
Who shufflesYour browserThe table server
RandomnessStorm beacon + table entropyStorm beacon of a future block + server secret + a secret for every seated player
On StormThe finished hand record's SHA-256 (LIONESS/v1|hash) in a Storm tx, seconds after the handHAND_OPEN (commitments) before the deal, HAND_CLOSE (reveals + full action log) right after — status below
VerifyThe Proof button in your hand historyThe Verify a hand tool on this page, or realtime/verify.cjs

Table-server hands: the protocol (LIONESS/v2, "level 1")

1. Commit   serverSecret = 32 random bytes            serverCommit = SHA-256(serverSecret)
            for every seated player p: secret_p        commit_p     = SHA-256(secret_p)
            root = SHA-256(canonical sorted list of all commits)
2. HAND_OPEN tx on Storm (before any card exists):
            LIONESS/v2|open|table|handNo|root|targetHeight|{serverCommit, commits, roster, button, cfg}
            targetHeight = (latest Storm height when committing) + 8 blocks  (~1.6 s at 200 ms/block)
            The server deals ONLY if the HAND_OPEN tx was included in a block BELOW targetHeight; otherwise the
            hand is void (nothing dealt) and a new one is opened. Roster/button changes while waiting → void.
3. Beacon   R = Storm beacon value at targetHeight (a threshold-BLS signature of the validators)
4. Deal     seed = SHA-256( R | serverSecret | sorted(player secrets) joined by '|' )
            deck = Fisher–Yates over 2s 2h 2d 2c … As Ah Ad Ac, j = word mod (i+1), words from the chain
                   h₁ = SHA-256(seed), h₂ = SHA-256(h₁), … (eight 32-bit words per hash)
5. HAND_CLOSE tx right after the hand:
            LIONESS/v2|close|table|handNo|{serverSecret, clientSecrets, seed, deckHash, actionsHash,
                                             resultsHash, results, actions}
6. Verify   anyone: commitments match the secrets, open block < targetHeight, seed from the real beacon,
            deck → replay every action with the game engine → same cards, pots and stacks; chips conserved.

What is guaranteed

What is NOT guaranteed (yet) — honestly

LIONESS/v3 — hands that don't wait for Storm (PLAY tables; REAL and tournament tables stay on v2 for now)

When a table server runs v3, the verifier below shows "LIONESS/v3" and the claim "seed committed on Storm before the deal" does not apply to those hands. Instead:

Level 2 — roadmap

  1. Browser secrets on: every client sends secret before each hand (protocol already supports it).
  2. Mental poker: the deck is encrypted and shuffled by every player in turn (commutative encryption + zero-knowledge shuffle proofs); each hole card is opened only with the owner's key, so the server never sees your cards.
  3. Beacon BLS verification in the browser and in verify.cjs against Storm's pinned group key.
  4. On-chain liveness: a timeout/claim path so an abandoned hand settles from its last proven state.

Storm's randomness beacon

Storm produces a public random value Rh in every block (~200 ms): a threshold BLS signature by the validator set over (chainId, h, Rh−1), with Rh = SHA-256("STORM-BEACON-R|" ‖ σh). Blocks are final when produced (no reorgs). API: GET /v1/beacon/{height} (404 "not yet formed" for future heights). Sources: Storm RNG protocol & developer guide, Storm documentation. Lioness uses the beacon directly (its own commit-reveal above), not Storm's StormRngAnchor ticket protocol.

Verify a hand

Paste a hand id from your history (table#handNo, e.g. usdt-cub-6#42) — or the HAND_OPEN and HAND_CLOSE tx hashes. Everything is recomputed in this browser from Storm data.

Hands vs house bots: open your hand history → Proof (record hash in a Storm tx + in-browser replay).

Storm devnet · test tokens only · no real-money value