🐇 BunnBattle

A PvP on-chain game based on Scroll and validation of actions through ZK proofs

Website
  • 16,000 Raised
  • 1,103 Views
  • 1 Judges

Categories

  • Bounty - Scroll

Gallery

Description

Figma presentation 
https://www.figma.com/proto/uWWMWjVuj6aAFUBZ3vFccp/22%25-Idea?page-id=95%3A4583&node-id=104-5011&viewport=1872%2C4658%2C0.22&t=gGG2DAeu5YhVWJ1R-1&scaling=contain&content-scaling=fixed

Summary

BunnBattle integrates zk-SNARKs to create a secure and fair version of the classic Battleship game. The project involves writing smart contracts in Solidity and using libraries like Circom and Snarkjs to implement the zk-SNARK logic. The project aims to demonstrate how zk-SNARKs can be used to ensure fairness and privacy in a decentralized environment and PvP games.

Key points

  • Zero-knowledge proofs prove a game board's validity and move without revealing any additional information.
  • Smart contracts written on Solidity ensure game integrity on the Scroll blockchain. 
  • The project utilizes circom for defining arithmetic circuits and snarkjs for proof generation and verification. 
  • Board creation and move verification via proofs ensure no cheating and maintain game state privacy.


Links

Source code:  https://github.com/Space-zee/dumb-battle

Deployed contracts on Scroll testnet: 

Attachments