libsnark-tutorial icon indicating copy to clipboard operation
libsnark-tutorial copied to clipboard

Feature request: Adding writing of circuits

Open nicola opened this issue 8 years ago • 2 comments

Hey @howardwu, great to see this tutorial, I wonder if you could add few more paragraphs on how to write circuits, in particular what are the different functions/methods/strategies for writing circuits, let us know how the community can also support this!

nicola avatar Jan 09 '18 19:01 nicola

+1

oleiba avatar Mar 25 '18 10:03 oleiba

@nicola I think you should take a look at the tutorial.cpp file of gadget2lib directory of libsnark library. It seems to be a construction of R1CS. I can't tell more for now but I think if we understand how to manage with this file then we have to replace the line : r1cs_gg_ppzksnark_keypair<ppT> keypair = r1cs_gg_ppzksnark_generator<ppT>(example.constraint_system);

I will go back if I have news

ariary avatar Apr 20 '18 14:04 ariary