Skip to content

Latest commit

 

History

History
44 lines (27 loc) · 1.05 KB

README.md

File metadata and controls

44 lines (27 loc) · 1.05 KB

zkSudoku smart contracts

This folder was generated using Hardhat and contains all the smart contracts used in the zkSudoku application.

There are two smart contracts:

  • Sudoku: for game logic (generate boards, verify boards).
  • sudokuPlonkVerifier: to verify the zk proof (this contract was generated using snarkjs).

Install dependencies

yarn install

Run tests

npx hardhat test

When you run tests you will see something like this:

RunTestsPlonk

Deploy on Sepolia

Create a .env file and add to it:

PRIVATE_KEY=<yourPrivateKey>

where yourPrivateKey is the private key of your wallet.

To deploy on Sepolia run:

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

zkSudoku contracts graph

zkSudoku