Replies: 2 comments 7 replies
-
Gnark doesn't directly read circom circuits unfortunately. I think I have seen a few projects trying to achieve this goal. See for example: There is also a way to transpiler circom circuits into gnark circuits. See for reference https://www.notamonadtutorial.com/how-to-use-the-consenyss-gnark-zero-knowledge-proof-library-and-disclosure-of-a-ddos-bug/#:~:text=the%20dark%20side-,Low%2Dlevel%20API,-Located%20in%20the where they construct constraints manually. You could extend the idea by reading the circom circuit description and then manually creating a circuit from every circom row. I think I have seen such transpiler in the wild, but currently cannot find it anymore. I definitely recommend searching Github for it (a la circom to gnark, r1cs to gnark etc.). |
Beta Was this translation helpful? Give feedback.
-
This might help you @cliff0412 https://github.com/vocdoni/circom2gnark |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am using circuits that are implemented in circom/snarkjs, and don't have the time or resources to port them. Is there an example of taking the .r1cs file generated by snark.js, and loading it as a Gnark constraint system? It seems like it should be possible, but when I try:
the error is:
unsupported gnark version 8589934595.815276040.37752762531841
which makes it seem like Gnark can only read files that it has formatted itself
Is there a working example of loading an R1CS from another proving system?
Beta Was this translation helpful? Give feedback.
All reactions