Tobet Crash Verify

玩家种子(Player Seed):

GameId+BetPlayersCount+BetAmount+LastBetTime

玩家签名种子(Player Signature):

Sign(GameId+BetPlayersCount+BetAmount+LastBetTime)

签名公钥(Public Key):

结果(Result):

公式(Formula):

hash = SHA256(Player Signature);

hashSixInt = hexToInt(hash.substring(0,6))

if (hashSixInt % 101 === 0) {

    return 1;

  }

h = parseInt(hash.slice(0, 52 / 4), 16);

e = Math.pow(2, 52);

result = (Math.floor((100 * e - h) / (e - h))) / 100;