PROVABLY FAIR
PROVABLY FAIR
GrailCart cannot choose or change your result after you play. Every result is created using information supplied by both you and GrailCart.
HOW IT WORKS
We commit our secret first. You contribute your seed. Together they create a result neither side can change after the fact.
01 · WE COMMIT
We lock in our secret server seed.
Before you play, we publish its SHA-256 hash. Think of the hash as a tamper-evident fingerprint: it does not reveal the seed, but changing even one character would create a completely different fingerprint.
02 · YOU CONTRIBUTE
You provide the client seed.
Your client seed is your contribution to the result, and you can change it at any time. This means GrailCart does not control every input used to generate your roll.
03 · THE ROLL
Both seeds and the bet number create the result.
The server seed, client seed and nonce are combined using HMAC-SHA256. This creates a roll between 0 and 1, which is matched against the published odds for that pack, battle or upgrade. The nonce changes every play, so each result is unique.
04 · REVEAL & VERIFY
You can reproduce the result yourself.
Reveal the server seed to retire it and commit a fresh one. Packs and upgrades can be revealed whenever you choose; battle seeds are revealed when the battle settles. Every completed result remains independently verifiable.
If we changed the server seed, the hash would not match. If we changed the roll or result, the calculation would fail. Verification runs in your browser, so you can reproduce it without trusting our answer.
Enter a revealed server seed, your client seed and the nonce below to reproduce the roll directly in your browser.
async function verify(serverSeed, clientSeed, nonce) {
const key = await crypto.subtle.importKey(
"raw", new TextEncoder().encode(serverSeed),
{ name: "HMAC", hash: "SHA-256" }, false, ["sign"]);
const sig = await crypto.subtle.sign(
"HMAC", key, new TextEncoder().encode(`${clientSeed}:${nonce}`));
const hex = [...new Uint8Array(sig)]
.map(b => b.toString(16).padStart(2, "0")).join("");
return parseInt(hex.slice(0, 13), 16) / 2 ** 52; // uniform in [0, 1)
}Paste a rip or upgrade ID to see its full record — committed hash, seeds, nonce, and the exact odds snapshot the roll ran against.