|
@ -236,8 +236,8 @@ pub trait FieldGadget: |
|
|
if found_one {
|
|
|
if found_one {
|
|
|
res.square_in_place(cs.ns(|| format!("square for bit {:?}", i)))?;
|
|
|
res.square_in_place(cs.ns(|| format!("square for bit {:?}", i)))?;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
if !bit {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if bit {
|
|
|
found_one = true;
|
|
|
found_one = true;
|
|
|
res.mul_in_place(cs.ns(|| format!("mul for bit {:?}", i)), self)?;
|
|
|
res.mul_in_place(cs.ns(|| format!("mul for bit {:?}", i)), self)?;
|
|
|
}
|
|
|
}
|
|
|