Provably Fair Gaming

Secret
Hash
Result
Time
Powered by FarolGaming.com
 

1. Round Secret

This is the SHA1 hash of the Round Hash player get before bets are placed. After round finishes, Game Result and Round Hash are revealed.

2. Round Hash

This is the unique, unrepeatable encrypted result information for a given round. Applying SHA1 hash on this information must match Round Secret, so it proofs Round Hash was generated and available before.

3. Game Result

This is the decrypted Game Result extracted from the Round Hash. Value from 0-1.000.000 which is interpreted for each specific game.

JavaScript game result decryption method sample:

function roundToResult(round_id){ 
    const s = (x)=>x.toString().padStart(2,"0");
    const d = (i)=>s(parseInt(round_id.substr(i, 2), 16));
    const r = (i,c)=>parseInt(round_id.substr(i, c), 16);
    return {
        result: r(20, 5) - r(-4, 4),
        salt: r(-4, 4),
        year: d(18) + d(16),
        month: d(12),
        day: d(8),
        hour: d(6),
        minute: d(4),
        second: d(0),
        ms: d(2),
    };
}
Powered by FarolGaming.com