The card you pull is decided by a number you can re-compute yourself. No trust required.
Before you rip, you see a hash of our secret seed. We can't change the seed without changing the hash.
The roll mixes our seed, your seed and a counter. Change your seed whenever you like.
Reveal the seed and every pull made with it can be re-computed, in your own browser.
Rip a pack first. Every pull gets its own Verify page.
// Node.js — the same check the Verify page runs in your browser
const { createHmac, createHash } = require("crypto");
// 1. The revealed seed must match the hash you saw before ripping
createHash("sha256").update(serverSeed).digest("hex") === serverSeedHash;
// 2. Re-compute the roll
const hex = createHmac("sha256", serverSeed)
.update(`${clientSeed}:${nonce}`)
.digest("hex");
const roll = parseInt(hex.slice(0, 13), 16) / 2 ** 52;