provably-fair-dice
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
- concatenate:
user seed + '_' + current unix time + '_' + Math.random();
- take that concatenation, hash with sha256
- take hash, and get first 10 hex characters (40 bits)
- convert that hex string to decimal
- decimal mod 10,001 for game result