Skip to content

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

Notifications You must be signed in to change notification settings

jdleo/provably-fair-dice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published