Some variables shown as unresolved #705
Replies: 5 comments 3 replies
-
hi!
|
Beta Was this translation helpful? Give feedback.
-
Can you first try running using the test engine? For example: func TestCircuitt(t *testing.T) {
witness := verifyactivationcode{}
// define witness
err := test.IsSolved(&verifyactivationcode{}, &witness, ecc.BN254.ScalarField())
if err != nil {
t.Log(err)
}
} Please also provide valid witness for testing. I also see that line |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot for helping. a) This is for the statement --> b) Biassum values in the clear are as follows. When I check the biassum values in the calculated in the circuit through a debugger, I see the exact values for the 0th and 1st indices (i.e. 2, 4 from the above array) but when it comes to negative integers I see weird stuff. For eg. the 2nd index value should be -204353 but what I see in the debugger for biassum[2] is the follows : Suddenly for i=2, biassum[2] has four rows, while for biassum[0] and biassum[1] I could see a single value. This is correct right based on how gnark treats negative numbers? In that case, how do I do the biassum[i]>=0 check? c) I do the println calls as -> api.Println(biassum).. Is this the wrong way of calling? @gbotrel d) I had missed a line for activation_code_array initialization in the circuit above, added that (It existed in my copy of the code). @ivokub |
Beta Was this translation helpful? Give feedback.
-
I think the main issue is that in the clear the |
Beta Was this translation helpful? Give feedback.
-
Also how come you use if statements in the circuits here - https://github.com/ConsenSys/gnark/blob/master/std/math/emulated/field_test.go |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have the following code:
After adding api.Println statements, I see the following
and type of biassum is
expr.LinearExpression
.I am running a for loop three times. For the first 2, I see unsolved for all 0-23. but for the last one I see some unsolved and some zeros. Cannot figure out what is going wrong.
Beta Was this translation helpful? Give feedback.
All reactions