Closed lispc closed 3 years ago
Thank you @lispc ! I faced the same issue here: https://github.com/weijiekoh/circom_sha256 Your script made it work. Anyway, I've contacted Jordi to let him know that this issue exists.
I also added an end2end test.sh for this.
https://github.com/Fluidex/circom_zkutil/blob/master/test.sh
A new version for this script https://github.com/Fluidex/zkutil/blob/master/contrib/process_circom_files.mjs
Hi @lispc , I think the latest version of circom (0.5.32 onwards) has fixed this issue at the compiler level. Hopefully there's no need to run the script now.
Thanks for the information ! I just deleted related codes in our PLONK zkutil.
I encountered a similar problem. Then I found circom did not optimize some unused variables away. So I wrote an adhoc script to deal with this. It worked.
( Of course, the right solution would be to optimize this in circom and make a PR into it. )