Step into the world of fair gaming with our blockchain-powered game which is built on top of ZkNoid SDK
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:
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.