Provably Fair
Every BC Originals result can be checked with the server seed, the client seed and the nonce. Pick a game to see how its result is calculated.
Twist
ValidateFairness Verification
Q: How is the game result generated?
A random number between 0 and 99,999 is generated using a provably fair algorithm. That process is described below.
The random number (between 0 and 99,999) is then matched to the probability table and the corresponding symbol from the table is the game result.
Q: How is the random number generated?
First, combine the server seed, client seed and the nonce to get the SHA512 hash.
- We use the combination to compute the HMAC_SHA512 hash. This gives us a 128-character hex string: hash = HMAC_SHA512 (clientSeed:nonce, serverSeed)
- Then we take the first 5 characters of the 128 character hex string and convert them to a decimal number from 0 to 1,048,575 (16 ^ 5-1). If it is less than 1 million, it is used as the random number. If it is more than 1 million, we use the next five characters from the same 128 character hex string. We are able to repeat the process up to 25 times.
- In very rare cases ((48,576 / 1,000,000) ^ 25) When converting to decimal, none of the 25 trials are below 1 million, we use the remaining 3 characters and convert them to your random number
Code example:
The following code example can be used to verify bets:
function get (serverSeed, clientSeed, nonce) {
var hash = hmac_sha512(this.client_seed + ":" +this.nonce, this.server_seed);
var index = 0;
do {
var lucky = parseInt (hash.substr (index, 5), 16);
index + = 5;
} while (lucky> = 1000000);
return lucky;
}How to use the probability table ?
- Layer = How high you climbed each of the three columns and the effect it has on the probability range of each symbol.
Example: You currently have 2 layers of Green gems, 1 layer of Purple gems, and 3 layers of Red gems. This means that the layer for reference on the next spin is layer 213. The random number you obtained from the SHA512 hash, converted to decimal, as described above, is 503140. The corresponding layer in your table is Layer 213. The range is Dark gem [200800 + 122711 + 92033, 200800 + 122711 + 92033 +146113)
Action Spin:
If the top circle reaches the top level, the first 10 characters of the HMAC_SHA512 hash value are converted into decimal numbers and modulo 5 to get a random number of [0,4], which corresponds to 100-500 times the prize in turn.
Code example:
function get (serverSeed, clientSeed, nonce) {
var hash = hmac_sha512(this.client_seed + ":" +this.nonce, this.server_seed);
var lucky = parseInt (hash.substr (0, 10), 16);
return lucky%5;
}