alexcambose / provably-fair-example

Provably fair implementation done in javascript.
https://medium.com/@alexcambose/provably-fair-system-in-javascript-6457e028d2aa
MIT License
36 stars 18 forks source link
betting blockchain casino dice fairness gambling hash javascript legal nonce provable-things provably-fair pseudo-random random seed

Provably fair example

A provably fair example build with express, and plain javascript.

What is provably fair

A provably fair algorithm allows users to check and analyze the legitimacy of every roll and confirm that the server/house did not alter them in their favor. By using a provably fair algorithm to generate random numbers neither players nor the operator of the site can know the result of the game before it starts.

For more information about the techincal details of the implementation check out this article

Provably fair system in javascript - What is and how to build a provably fair system in javascript

Getting Started

Prerequisites

Nodejs 8+ installed

Installation

Clone this repo

$ npm install

How to use?

$ npm run start

Open you favourite browser on localhost:3000.

License

This project is licensed under the MIT License - see the LICENSE file for details