project screenshot 1
project screenshot 2
project screenshot 3
project screenshot 4
project screenshot 5
project screenshot 6

Power Clash

Step into the world of fair gaming with our blockchain-powered game which is built on top of ZkNoid SDK

Power Clash

Created At

ETHGlobal Singapore

Winner of

Mina Protocol - zkGaming on Mina 3rd place

Project Description

This project is a decentralized Dynamite-Alien-Cockroach-Water wave-Sponge ( a variation of Rock-Paper-Scissor) game built on top of Mina Protocol using the ZKnoid SDK and ProtoKit. The backend is powered by the o1js library, implementing secure game logic and state management. PowerClash integrates zk proofs to ensure move privacy and verify fairness without revealing sensitive data. A commit-reveal scheme is employed for each move, guaranteeing that players cannot alter their choices after seeing their opponent's move, thus reinforcing trust in the game's integrity. The game utilizes Mina's succinct blockchain to efficiently store game states and manage player interactions. The frontend, built with TypeScript and React, provides an intuitive and interactive interface. Key features include:

  1. Real-time matchmaking for quick opponent pairing
  2. Secure move submission using cryptographic commitments
  3. Automated winnings distribution via smart contracts
  4. A timeout mechanism to handle unresponsive players
  5. On-chain game state retrieval for transparency By combining zero-knowledge proofs, blockchain technology, and a user-friendly interface, PowerClash demonstrates the potential of decentralized technologies in delivering provably fair and engaging online gaming experiences

How it's Made

Partner Technologies: • zknoid SDK and Protokit allowed for easy integration of zk proofs, lobby creation, match making, significantly reducing the complexity of incorporating zero-knowledge components. • Mina Protocol provided the ideal environment for deploying zk-based decentralized applications, benefiting from its lightweight and privacy-focused approach.

Technologies Used: • Mina Protocol: The blockchain platform used to deploy the Dynamite-Alien-Cockroach-Water wave-Sponge game, ensuring decentralized and lightweight operation. • Protokit: It is used to structure the smart contract and handle on-chain state management. • ZkNoid SDK: It is used for building zero-knowledge applications and integrating zk proofs into the game for verifiable fairness, importing matchmaking and lobby from sdk. • o1js Library: Used for cryptographic operations and interfacing with the Mina blockchain. • TypeScript and React: Used for developing the frontend, providing a dynamic and interactive user experience.

Architecture and Integration: • PowerClash integrates Mina Protocol as the blockchain foundation, with ZKnoid SDK for zero-knowledge proofs and ProtoKit for smart contract development. • The o1js library handles cryptographic operations and blockchain interactions. • The backend, written in TypeScript, manages game logic and state. • React powers the frontend, providing an interactive UI. • WebSockets enable real-time updates, while GraphQL facilitates efficient data fetching between frontend and backend.

background image mobile

Join the mailing list

Get the latest news and updates