|
|
3 年之前 | |
|---|---|---|
| .. | ||
| README.md | 3 年之前 | |
| opcodes.no-nipoint.zk | 3 年之前 | |
| opcodes.zk | 3 年之前 | |
| set_v1.zk | 3 年之前 | |
| zkrunner.py | 3 年之前 | |
zkrunner is a simple Python script that calls into the Darkfi Python SDK.
The Python SDK provides APIs such as creating a circuit, assigning the witness to the circuit and more.
zkrunner uses the Python SDK to create a developement environment for zkas developer where:
This is so developers have an easier time to test their zkas circuit.
Follow the guide in src/sdk/python/README.md to install the Python bindings and virtual environment.
Compile the ZKAS source to ZKAS binary
cd <darkmap>
zkas proof/set_v1.zk
Open up zkrunner.py, read over the TODOs and comments, provide the path to zkas binary code, witness and assign accordingly.
After installing Python bindings in your Python installation, simply run python zkrunner.py [--verbose].