Code Monkey home page Code Monkey logo

gkr's People

Contributors

jeong0982 avatar therealyingtong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

gkr's Issues

Detach proving scheme from aggregation flow

Currently, GKR is used for many schemes to use its fast proving time. It will be helpful if it can provide proving scheme api and circuit construction by itself (cause it is hard to extract arithmetic circuit from circom itself).

Separate sumcheck protocol

Current status

  • GKR prover can be run with circuit, function $D$ that is claimed to equal $W_0$, and returns proof.
  • GKR verifier can be run with circuit, proof, z.
  • Integrated sumcheck protocol is implemented.

TODO

For now, sumcheck is integrated with prover and verifier.
To get sumcheck proof, it should be separate. With this, structure of GKR proof should be fixed.

  • Implement verify_sumcheck, prove_sumcheck
  • Define GKR proof structure

Structure of GKR circuit

GKR circuit

GKR generates proofs for the data-parallel execution of a layered arithmetic circuit.
But users who want to make new circuit for using GKR may have difficulty for designing layered circuit.
For usability of GKR protocol, it should have programmable and intuitive abstract structure for circuit.

Naive approach

Just make Node and make directed acyclic graph with that. Users should make DAG on their own from Node.
For now, it will be okay but it should be revised. It is hard to build circuit with layer for large program.

From circom

Start from circom rust library, it have dag library inside. It can make DAG, but it would be implemented after implementation of whole protocol. If this circom -> GKR -> circom flow is implemented, recursive proof can be made from this.

Own IR and further

It is kind of ambitious work. Making IR for circuit. And it can be optimized to GKR protocol. (maybe)
[ZLW+ 21] proposed GKR protocol that applies directly to non-layered circuits.
Not sure for if it is available to implement, but it can be helpful for exploring way to use general circuit with GKR protocol.

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.