Skip to content

fiferstrong77/GameRoom

Repository files navigation

GameRoom

Ever wondered about GameRoom is the answer.

Comprehensive gaming platform with encrypted data. All gaming activities stay private.

What's the Problem?

Most dApps are like glass houses. GameRoom gives you walls.

The Approach

The system consists of 3 main contracts:

  • GamingPlatform.sol - Handles the core functionality
  • DataVault.sol - Handles the core functionality
  • AchievementTracker.sol - Handles the core functionality

Everything is encrypted using Zama's FHEVM. Your data stays private, but you can still perform operations on it. When you need to see the actual values, you authorize decryption through the Relayer SDK.

The Tech Stack

Under the hood, we're leveraging:

  • @fhevm/solidity v0.9.1 - For encrypted operations in Solidity
  • @zama-fhe/relayer-sdk v0.3.0 - Off-chain decryption service
  • Hardhat - Development and deployment
  • TypeScript - Type safety and better DX
  • Next.js - Frontend framework

Getting Started

Clone the repo and install dependencies:

npm install

Set up your .env file (copy from env.template) with your Sepolia RPC URL and private key.

Compile the contracts:

npx hardhat compile

Deploy to Sepolia:

npx hardhat run scripts/deploy.ts --network sepolia

Contract addresses will be saved to contracts.json.

Running the Frontend

The frontend is a Next.js app. Navigate to the rontend directory:

cd frontend
npm install

Create a .env.local file with your contract addresses, then:

npm run dev

Open http://localhost:3000 and connect your wallet.

What's Not Perfect Yet

Performance isn't perfect yet. Encryption operations take time and gas. The relayer is centralized. But hey, privacy isn't free, and we're making progress.

Future Plans

Next up: decentralized relayers, performance improvements, and expanding what we can do with encrypted data.

License

MIT - use it however you want. Just don't blame us if something breaks.

About

GameRoom - FHEVM dApp

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors