Inspiration

To enable user to have fun without worrying about privacy, data,security.

What it does

This Project creates a peer vs peer data communication using libp2p library to leverage to create a peer vs peer game where data is transfer happens from peer1 to peer2 without any central server storing data and the game data after game finish is save to web3.storage and cid link is generated and shown to peer.

How we built it

This project uses Libp2p for peer to peer connection. The data communication happens using webrtc protocol and its a client side project with public peerRelay server to establish connection between peer1 and peer2. It uses a game protocol option provided by libp2p, to find specific peer using the p2pgame app. It uses web3.storage for storing game data.

Challenges we ran into

Setting up libp2p protocol

What's next for p2p game

Enable a smart contract option for peers to bet things on outcome of game and contract to settle bet on game outcome. Maintain each peer data independently and upload to ifps and compare cid as proof of trust to settle the smart contract.

Built With

Share this project:

Updates