@zktable/liars-dice
v0.1.1
Published
Liar's Dice: hidden ZK-proven-fair rolls + escalating bluff bids, the zkTable `dice` + `sealed` showcase (defineGame + real ZK-verified dice)
Readme
@zktable/liars-dice
Liar's Dice — hidden, provably-fair rolls plus escalating bluff bids. The
zkTable dice + sealed showcase: each roll is ZK-proven fair, unpredictable,
and bound to a commitment before any bidding starts.
Part of zkTable — a TypeScript SDK for building trustless, privacy-preserving board games on Stellar.
Install
npm install @zktable/liars-dice @zktable/coreWhat's inside
- The
defineGamedefinition for Liar's Dice (thedice+sealedprimitives), its AI strategies, and a headless testnet runner. - 2-player, single-round elimination — the referee is intentionally locked to exactly 2 players.
Play it on live testnet
LIARS_TESTNET=1 pnpm --filter @zktable/liars-dice playDeploys a fresh verifier + referee to Stellar testnet, plays a real game (real proofs, real transactions), and prints a full move-by-move transcript.
License
MIT — see LICENSE.
