Game fairness and provably fair

Lesson 4 of 9

Lessons completed: 0 of 9 (0%)

Commit-reveal: how a seed is fixed in advance

Commit-reveal is the order in which the server first publishes a commitment and shows the original value later. You check the fingerprint match, not the intention.

8

Commit-reveal: how a seed is fixed in advance

Seven steps

1. The server creates a Server Seed. 2. It calculates the hash. 3. It publishes the hash before the game cycle. 4. The rounds take place. 5. The server reveals the original Server Seed. 6. The user calculates the hash of the revealed value. 7. The user compares it with the published hash.

A match means the revealed value produces that same published fingerprint. A mismatch means the value shown does not correspond to the commitment published earlier. If the seed or the hash is missing, the comparison cannot be made: there is not enough data.

A match confirms that this revealed value corresponds to the hash published earlier. By itself it does not prove that the whole game system, the payouts and the other games are correct. A hash match is not proof of the whole casino.

A simulator of two moments

Before the check, only the hash is visible. After the reveal, the Server Seed appears. The check button calculates SHA-256 again. Changing one character should produce a mismatch. The teaching seed academy-demo-server has SHA-256 21a89480e9344c166ee6fe60e732652bb47aee497fec8888ae177b836895aaf7.

What to watch: a green check applies only to this seed and hash pair, not to every game on the site.

Remember

  • The hash is published first, and the seed is revealed later.
  • A match compares this pair of values.
  • A mismatch means the seed shown does not produce the published hash.
  • An empty set of data does not start a check.

Check yourself

1. What does a hash match confirm in commit-reveal?
2. The seed field is empty, and a hash is on the screen. What follows?
3. An extra character is added to the revealed seed. What should happen?
4. More than one answer is correct. What is part of the commit-reveal order?
5. The teaching SHA-256 of the string academy-demo-server starts with...