GithubHelp home page GithubHelp logo

delta-mpc / delta-zk Goto Github PK

View Code? Open in Web Editor NEW
11.0 3.0 2.0 61 KB

The zero knowledge proof system used in Delta.

License: Apache License 2.0

Makefile 10.56% JavaScript 86.18% Dockerfile 3.25%
circom plonk zero-knowledge-proofs zk-snarks snarkjs

delta-zk's Introduction

delta-zk

The zero knowledge proof system used in Delta.

Dependency

  1. Docker

  2. docker-compose(optional)

  3. nodejs && yarn

  4. snarksjs

    npm install -g snarkjs@latest
  5. circom (v2.0.6)

    wget https://github.com/iden3/circom/releases/download/v2.0.6/circom-linux-amd64 /usr/local/bin/circom
    chmod +x /usr/local/bin/circom

Setup

The user should provide the value of ${input_size}, which is the feature dimension of the dataset

All of the setup files will be generated under directory circuits/main/${input_size}

setup with docker

docker run --rm -it --name delta-zk-setup -v ${PWD}/circuits/main:/app/circuits/main deltampc/delta-zk:dev yarn setup ${input_size}

setup with yarn

download snarkjs Ptau file

wget https://hermez.s3-eu-west-1.amazonaws.com/powersOfTau28_hez_final_20.ptau ./ptau/pot_final.ptau
yarn install && yarn setup ${input_size}

Docker image

build

docker build -t deltampc/delta-zk:dev .

docker hub

docker pull deltampc/delta-zk:dev

Run gRPC service

run with docker

docker run --name delta-zk -v ${PWD}/circuits/main:/app/circuits/main -p 4500:4500 -d deltampc/delta-zk:dev

or

docker compose up -d

run with yarn

yarn server

delta-zk's People

Contributors

cblk avatar lencyforce avatar mh739025250 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

delta-zk's Issues

执行test.js

缺少input.json,执行哪一步才会出现input.json呢

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.