Open critesjosh opened 1 year ago
@critesjosh are you able to demonstrate this with simple test failure or snippet?
There are steps to reproduce at the bottom of the issue description.
@critesjosh I guess what @kobyhallx meant is a minimally reproducible Noir program to ease the uncovering of the underlying bug.
And just to clarify, is this verification failing with bb.js's verify API in Next.js directly? (I.e. Not through a Solidity verifier?)
Correct, this is verification failure with bb.js, not via the Solidity verifier.
@critesjosh are you able to demonstrate this with simple test failure or snippet?
This implementation of Relu Circuit is giving an error. The circuit essentially maps each element of the array using the mapping f(x) = max(0, x)
. Since all field elements are non-negative, a compconstant
is selected. All numbers below it are defined to be positive and the numbers above it are defined to be negative.
I am able to generate proofs for the circuit in the browser, but verification fails.
Here is the circuit.
The circuit is compiled with nargo version
Here is the error:
To reproduce:
next-hardhat
, install dependencies with yarngit submodule update --init --recursive
yarn dev