Git Product home page Git Product logo

fawkes-crypto's People

Contributors

gnull avatar snjax avatar voidxnull avatar wafflelapkin avatar

Stargazers

 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  avatar  avatar

fawkes-crypto's Issues

Add fast wittness generation for r1cs

Currently, fawkes-crypto decide, should it create new signals or not, by calling as_const method of Signal trait (see example here ) and build both witness and constraint system ([1], [2]).

Signals have complex structures (CNum definition), so, operations with them are not fast.

Also, the constraint system is circuit specific (it does not change at multiple calls), and witness depends on the values of internal signals.

For better performance, we need to split constraint system building and witness building. And prover should work with preloaded from the file constraint system and as_const calls cache.

The as_const calls cache could be stored inside the bit-vector. Also, this data and an additional flag for using the pre-computed constant system could be stored here.

In the case of using precomputed CS, all heavy constraint system-related things when we work on CNum, like LC operations, enforce and enforce_pub should be omitted.

In addition, it is better to store r1cs data in snarkjs-compatible format (look at zkutil for example).

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.