Skip to content

LetsVerify/pyzktools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyzktools

A zk-SNARK toolkit

FEATURES

  • Groth16
  • PLONK (TODO)
  • R1CS/Arithmetic(TODO)
  • TRUSTED SETUP (TODO)

Installation

Basic

python -m pip install -e .

Development

python -m pip install -e ".[dev]"

Activate BLS12-381

python -m pip install -e ".[pyecc]"

or install both dev dependencies and BLS12-381 support:

python -m pip install -e ".[dev,pyecc]"

Examples

Groth16(QAP-eval-only):

python examples/groth16_qap_mock.py

"a^2 + b^2 = c^2" demo(QAP-eval-only):

python examples/groth16_pythagorean.py

Groth16(QAP-eval-only)pairing (BLS12-381 via py_ecc):

```bash
python -m pip install -e ".[pyecc]"
python examples/groth16_pairing_identity.py

License

MIT

Thanks

About

Aiming to implement a native python toolkit for zk-Snarks

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages