dizk icon indicating copy to clipboard operation
dizk copied to clipboard

Feature request: read R1CS as serialized by libsnark

Open kobigurk opened this issue 7 years ago • 4 comments

DIZK is an awesome concept, and I'd really want to try this out for some of the larger constraint systems I work on - some of these are in libsnark.

It would be awesome if we could read in R1CS constraint systems as they are serialized in libsnark, so DIZK could be used with a lot of the existing circuits out there.

kobigurk avatar Oct 20 '18 12:10 kobigurk

That sounds neat. Do you mean you construct circuits in libsnark (using something like gadgetlib) and would find it useful to export it to DIZK for running the setup and prover?

howardwu avatar Nov 08 '18 23:11 howardwu

Exactly what I mean. I also mean additionally using libsnark to generate the witness.

kobigurk avatar Dec 23 '18 15:12 kobigurk

We are doing that. We modified ZoKrates to include a JSON output of the R1CS, and then read it back into DIZK. But our work in general is still in a rough state, and not really ready for sharing.

alexpArtos avatar Feb 19 '19 15:02 alexpArtos

You may consider using this format instead, and hopefully support multiple frontends at once: https://github.com/QED-it/gadget_standard

naure avatar Feb 20 '19 10:02 naure