Possibility of increasing time taken to execute gnark object creation functions #778
Unanswered
namrapatel
asked this question in
Q&A
Replies: 1 comment
-
Have you tried using |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
I'm working on a cloud function that generates proofs for circuits written using gnark. The reason I'm using a cloud function is because I want everything to be exceedingly fast and I've narrowed down my bottleneck to the functions that are implemented for creating gnark objects from a buffer. The code below explains the problem, I'm wondering if you know of any way I can create the same gnark objects in a speedier manner?
I've flagged the two lines that are taking around ~1000ms to execute and would love to hear if anyone has any ideas to make them faster. I've tried using the
msgpack.Unmarshal
from the msgpack library to try and build the same Constraint System and Proving Key objects, but then my proof fails to verify saying that "pairings do not match".I'm happy to answer more questions if there are any clarifications I can make.
Beta Was this translation helpful? Give feedback.
All reactions