simple_shield icon indicating copy to clipboard operation
simple_shield copied to clipboard

Error: Expected argument `nullifierHash`, but none was found

Open critesjosh opened this issue 1 year ago • 4 comments

Hey @vezenovm. I am working through the README and when I try nargo prove p or nargo verify p I see the following error:

Error: Expected argument `nullifierHash`, but none was found

Should this work out of the box or do I need to generate it somehow?

critesjosh avatar Apr 24 '23 18:04 critesjosh

Also, unrelated, but just as an fyi, I am working through updating this to work with the latest versions of Noir

critesjosh avatar Apr 24 '23 18:04 critesjosh

Should this work out of the box or do I need to generate it somehow?

Ah this is a bug. I updated the circuits to take in a nullifierHash input, but I forgot to update the Prover.toml files as I was mainly working in TS the last time I updated this repo. You can see me using the nullifierHash here in the TS. If you just print one of the example outputs from the TS test you should be able to update the Prover.toml to take in the correct ABI.

vezenovm avatar Apr 24 '23 18:04 vezenovm

Also, unrelated, but just as an fyi, I am working through updating this to work with the latest versions of Noir

Awesome thank you much appreciated :)! I have been meaning to do so as well but haven't had the chance to get around to it.

vezenovm avatar Apr 24 '23 18:04 vezenovm

still running into errors with this--i can't even get the test running, likely because of the state of the noir npm packages.

they should be in a better place toward the end of the month, so I will revisit around then

critesjosh avatar May 08 '23 15:05 critesjosh