Skip to content

Latest commit

 

History

History
39 lines (23 loc) · 858 Bytes

README.md

File metadata and controls

39 lines (23 loc) · 858 Bytes

ZK Minesweeper

An implementation of the popular Minesweeper game as a smart contract for the Bitcoin blockchain. ZK-SNARKS are used to keep information (i.e. mine locations) hidden.

⚠️ Disclaimer: This is a demo implementation. Currently both the players and game server logic run on the same client, namely the browser. In a production ready implementation the two should be separated.

Setup

Install sCrypt Compiler:

Your can install sCrypt Compiler by installing sCrypt IDE.

Or just install the compiler binary :

npm install
npx scryptlib download

Install the ZoKrates CLI:

curl -Ls https://scrypt.io/scripts/setup-zokrates.sh | sh

Setup and check the zkSNARK verifier:

npm run setup

Start

npm run app:start