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
But when I try to test this, it panics with the message:
interface conversion: frontend.Variable is uint, not expr.LinearExpression
Exact message depends on the way the circuit is compiled (e.g. r1cs or scs, groth16 or plonk, which curve, etc), e.g. may say:
interface conversion: frontend.Variable is int, not expr.TermToRefactor
For (R1CS, Groth16, BN254), I tracked this down to the mustBeLessOrEqVar function in frontend/cs/r1cs/api_assertions.go, on line 131, where we attempt to do a type assertion of aBits[i].(expr.LinearExpression). When I was debugging this, it seemed that aBits[i] was a frontend.Variable wrapped around a uint, not a expr.LinearExpression.
Please let me know what other info I can provide to help with this, I'm not much of a Go guru so I'm not sure why this type assertion is failing, or what the fix should be
The text was updated successfully, but these errors were encountered:
… as first param (#511)
* fix: closes#509 api did not handle AssertIsLessOrEqual with constant as first param
* style: remove useless MarkBoolean on non-returned bits
One of my circuits attempts to do the following:
But when I try to test this, it panics with the message:
Exact message depends on the way the circuit is compiled (e.g. r1cs or scs, groth16 or plonk, which curve, etc), e.g. may say:
For (R1CS, Groth16, BN254), I tracked this down to the
mustBeLessOrEqVar
function infrontend/cs/r1cs/api_assertions.go
, on line 131, where we attempt to do a type assertion ofaBits[i].(expr.LinearExpression)
. When I was debugging this, it seemed thataBits[i]
was afrontend.Variable
wrapped around auint
, not aexpr.LinearExpression
.Please let me know what other info I can provide to help with this, I'm not much of a Go guru so I'm not sure why this type assertion is failing, or what the fix should be
The text was updated successfully, but these errors were encountered: