CSWYN

Provably fair

Don't trust us. Verify us.

Every CSWYN Original is generated with HMAC-SHA256 from a server seed, your client seed and a nonce. Here is how it works.

Server seed

Before you bet, we commit to a secret server seed and show you its SHA-256 hash. We cannot change it afterwards without the hash changing.

Client seed

You control the client seed. Change it any time so that we cannot predict the combination in advance.

Nonce

Every bet increments the nonce, so each result is unique even with the same seed pair.

Verify

Rotate your seeds to reveal the old server seed, then recompute any result with the verifier below.

The formula

bytes  = HMAC_SHA256(serverSeed, clientSeed + ":" + nonce + ":" + cursor)
float  = b0/256 + b1/256^2 + b2/256^3 + b3/256^4      // 4 bytes per float
dice   = floor(float * 10001) / 100                    // 0.00 to 100.00
crash  = max(1, floor(99 / (1 - float)) / 100)         // 1% house edge

Verify a bet