sw_bn254 emulated overflow #717
Unanswered
LautaroLasorsa
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Can you post full minimal example with the witness? It looks like you are doing scalar multiplication with constant one. It may be an edge case not covered. Does this also happen on other inputs? You are seeing the error when you only run the solver. We use challenge derived from the witness and proving key. But when you run the solver only (without proving), then it doesn't have access to proving key and uses a dummy value instead. It should be good when you run |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone, I'm having an error using the function ScalarMul with sw_emulated
I have the following code in the function define of my circuit:
cr, _ := sw_emulated.New[emulated.BN254Fp, emulated.BN254Fr](api, sw_emulated.GetCurveParams[emulated.BN254Fp]())
field, _ := emulated.NewField[emulated.BN254Fr](api)
alfa := field.One()
P1 = cr.ScalarMul(P1, alfa)
And when I try to test it I got the following error:
How can I solve it?
By the way, I deleted the cr.ScalarMul line and the test ran OK but I got the following error:
How can I avoid it? Does this error mean that the Circuit is useless?
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions