Skip to content

Generalized zero-knowledge proof sudoku, in both Circom and ZoKrates

Notifications You must be signed in to change notification settings

kilyig/zkSudoku

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

zkSudoku

Implementation of a zero-knowledge prover for Sudoku, both in ZoKrates and Circom.

ZoKrates guide

In the zokrates folder, run

# compile
zokrates compile -i sudoku.zok

# perform the setup phase
zokrates setup

# execute the program
cat input.json | zokrates compute-witness --abi --stdin

# generate a proof of computation
zokrates generate-proof

# export a solidity verifier
zokrates export-verifier

# or verify natively
zokrates verify

Circom guide

# Compile the circuit
circom sudoku.circom --r1cs --wasm --sym --c

Related Work

https://github.com/akosba/xjsnark/tree/master/doc/code_previews#sudoku-9x9

About

Generalized zero-knowledge proof sudoku, in both Circom and ZoKrates

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published