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).
yarn install
npx hardhat test
When you run tests you will see something like this:
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