You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function verifyProof(
uint256[8] calldata proof,
uint256[33] calldata input
) public view {
The input should only be uint256[32] calldata input. When generating a witness, it only outputs 32 bytes as expected and I am able to successfully prove and verify using gnark. Issue is only in the generated Solidity code.
I have no idea what element to add to the input to get it to work.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Trying to figure out why when I export the verifier key to Solidity, the witness requires an additional unknown element.
Started with a far more complicated circuit, but this is the simplest version that I could get to manifest the issue.
The input should only be
uint256[32] calldata input
. When generating a witness, it only outputs 32 bytes as expected and I am able to successfully prove and verify using gnark. Issue is only in the generated Solidity code.I have no idea what element to add to the input to get it to work.
Using gnark 0.9.1.
Beta Was this translation helpful? Give feedback.
All reactions