Coin Battles
Dice
Wheel
Roulette
Coin Flip
Ladder
Turtle Race
Baccarat
Bitto
Races

Fairness

Hashchain

Peergame uses a secret key with SHA-256 to generate a chain of 1,000,000 hashes, and each game seed’s hash equals the previous game seed.

Next game’s seed

a84c9d1c4365c1aa….

----- SHA256 Hash ---⤍

Current game’s Seed

c445edbfb36fab61….

Game Result

Random number for the game result is derived from a hash of the current game seed + all participated transaction ID in each game. Then the random number is divided by 6, which results in six different race scenarios. Please see the image below.

Hash (current game’s seed + users’ bet TxIDs) = Random number

d9c057dc462ae53a….

Game result = Random number % mod 6 = 0 ~ 5

1st2nd3rd
0
1
2
3
4
5
Example

1. 100th game’s seed is:

a84c9d1c4365c1aa7c828d02582585b205d39a61dba446dfeb1d8f510cc0d983

2. Hash’ed 100th game’s seed becomes the current (99th) game’s seed

c445edbfb36fab617aeef9ee0e00cf6aba1158d18eb1d86843f3031390a14315

3. Combine the current game’s seed with all TxIDs that users made in the 99th round

c445edbfb36fab617aeef9ee0e00cf6aba1158d18eb1d86843f3031390a14315

5fdefd49eacd58282950b8fb02e5ab90bdbda18784d6cd65ddef6fb63b078d29

05052f8f5f72f2561b15564099e23f75e8bee17ab8734ef3792b577f3d091caa

391cd172817c842992e63036e333d80a6edd35a996683c98911c566c3dcbf287

4. Hash (current game’s seed + TxIDs) is divided by 6

d9c057dc462ae53ab62ac469fd8b60a7ddd2892ea78b7d29ed79a20aecedfd34

  % 6

= 0 (Game result)

GamesRacesPromotions
Peergame PartnersBlogFairnessHelp CenterContact