IntDivOut
Remember, out is actually an input that the user is expected to provide.
Answer
we assign and constraint the result of division to out
therefore, the circuit checks that the value of our provided out matches the value of the quotient
if so, the circuit passes.
The crucial thing is that the output signal is part of the witness - which we are expected to provide.
out
isn't the consequential output of the division computation.
Returning: Signal output out
out
is defined assignal output
when we talk about returning out; returning a value only applies from circuit to circuit. Not the outside world.
The circuit can't return a value outside of a circuit setup, to a solidity contract, for example.
Circuits just evaluate to true or false, depending if your pairing clears.
Last updated
Was this helpful?