Account
Fairness
Change your client seed
This is a random string that is used (in combination with the server seed, and a nonce) to generate a random number. You can change your client seed at any time.
Server seed hash
This is the hashed representation of the random string that is used (in combination with the client seed, and a nonce) to generate a random number. The unhashed server seed will be revealed after each purchase in your purchase history. You can use the unhashed server seed to verify the fairness of the random number generator. The server seed is updated after each purchase.
Verify randomness
To maintain transparency, we provide a set of functions that can be used to verify the fairness of your outcomes. You can use these functions to verify the VRF result you received after purchase. The server seed, client seed, and nonce used for a Pack opening or battle can be found in your pack purchase and/or battle history.
import crypto from 'crypto'
export const sha512 = (value: string) => crypto.createHash('sha512').update(value).digest('hex')
export const combineSeeds = (clientSeed: string, serverSeed: string, nonce: number) =>
sha512(`${clientSeed}-${serverSeed}-${nonce}`)
export const extractFloat = (hash: string, index: number = 0) => {
const slice = hash.substring(index * 8, (index + 1) * 8)
const decimal = parseInt(slice, 16)
return decimal / 0xffffffff
}