zkdrops icon indicating copy to clipboard operation
zkdrops copied to clipboard

Proof Verification Failing

Open TalDerei opened this issue 3 years ago • 3 comments

So upon running "npx hardhat compile" and "npx hardhat test", all of the tests pass normally (with existing keys and verification contract already generated in the repo).

But when regenerating the keys and verification contract by running "./build_scripts/build_all.sh", and then running "npx hardhat compile" and "npx hardhat test", the proof verification fails. This wasn't an issue a few months ago, but I suspect there's been an update to snarkjs/circom, or the solidity verifier contract that modifies the solidity call data. Nothing in your core repos / library has changed otherwise.

In any regard, if you try rerunning the test-cases in this repo, you'll find it fails. Double checked this on 2020 M1 and Ubuntu VM Instance (20.04) machines. Running circom v2.0.4, [email protected], node v16.15.0.

Screen Shot 2022-05-11 at 12 57 35 AM

TalDerei avatar May 11 '22 04:05 TalDerei

There might be an issue with [email protected] https://github.com/iden3/snarkjs/issues/145

tomoima525 avatar May 11 '22 14:05 tomoima525

There might be an issue with [email protected] iden3/snarkjs#145

I think you might be on to something. I woke up this morning, and the repo randomly started working on my M1 again, but is failing on Linux distros. Interesting ~

TalDerei avatar May 11 '22 15:05 TalDerei

Same issue. Changing snarkjs version to "^0.4.26" fixed it.

remi-gai avatar Sep 01 '22 23:09 remi-gai

Should be resolved.

sragss avatar Feb 02 '23 19:02 sragss