Skip to content

Flip a coin with your friends without the need for a trusted third party.

Notifications You must be signed in to change notification settings

antonis19/peer-flip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PeerFlip

PeerFlip protocol

PeerFlip is a decentralized method to simulate a coin toss among (N) participants. Except for the room server which participants use to join the same room and the STUN server that is needed for the participants to establish the initial P2P connections to each other, the protocol does not rely on any centralized party to calculate the coin flip outcome.

How to run

To run the frontend :

cd peer-flip-frontend
npm install
npm start

If you want to run the backend locally (for room management) :

Set REACT_APP_SERVER_URL to 'wss://localhost:9090' in the .env file inside peer-flip-frontend .

Then run:

cd peer-flip-backend
npm install
npx tsc *.ts 
node server.js

About

Flip a coin with your friends without the need for a trusted third party.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published