provably-fair-dice icon indicating copy to clipboard operation
provably-fair-dice copied to clipboard

provably-fair dice game in React+Semantic. not real money, just an integer value on a screen. proof of concept. demo: https://dice-demo.herokuapp.com

Provably-fair dice game

This project was bootstrapped with Create React App.

demo

https://dice-demo.herokuapp.com

dev

npm run start

prod

npm run build

tests

npm run test

provably-fair

  1. concatenate: user seed + '_' + current unix time + '_' + Math.random();
  2. take that concatenation, hash with sha256
  3. take hash, and get first 10 hex characters (40 bits)
  4. convert that hex string to decimal
  5. decimal mod 10,001 for game result