Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/golemfactory/yazinc
Zinc zero-knowledge proofs on Yagna
https://github.com/golemfactory/yazinc
golem
Last synced: about 1 month ago
JSON representation
Zinc zero-knowledge proofs on Yagna
- Host: GitHub
- URL: https://github.com/golemfactory/yazinc
- Owner: golemfactory
- Created: 2020-09-24T08:07:34.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-09-24T08:25:21.000Z (over 4 years ago)
- Last Synced: 2024-10-08T10:04:03.268Z (4 months ago)
- Topics: golem
- Language: Python
- Homepage:
- Size: 1.95 KB
- Stars: 2
- Watchers: 5
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# yazinc
Zinc zero-knowledge proofs on Yagna## Project structure
* `requestor` contains files needed to run a requestor - this is what most people would need
* `provider` contains files needed to recreate image used by provider - you will only need them if you want to modify the way providers work## Running
0. Install requirements: `pip install -r requestor/requirements.txt`
1. Install Zinc and execute preliminary steps as described in https://zinc.matterlabs.dev/02-getting-started/01-first-circuit.html (the `zargo prove` step is optional as we will run it on Golem)2. Assuming your yagna daemon is already running, run the requestor script (mutatis mutandis)
```
python /path/to/yazinc/prove.py --circuit build/default.znb --proving-key data/proving-key --public-data data/public-data.json --witness data/witness.json
```(NB the options are identical to these of `zvm prove`)
3. Verify the generated `proof.txt`:
```
zargo verify < proof.txt
```