项目作者: golemfactory

项目描述 :
Zinc zero-knowledge proofs on Yagna
高级语言: Python
项目地址: git://github.com/golemfactory/yazinc.git
创建时间: 2020-09-24T08:07:34Z
项目社区:https://github.com/golemfactory/yazinc

开源协议:

下载


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

  1. Install requirements: pip install -r requestor/requirements.txt
  2. 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)

  3. Assuming your yagna daemon is already running, run the requestor script (mutatis mutandis)

  1. 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)

  1. Verify the generated proof.txt:
  1. zargo verify < proof.txt