mirror of
https://github.com/arnaucube/ark-r1cs-std.git
synced 2026-01-09 23:41:33 +01:00
Fix error
This commit is contained in:
committed by
Pratyush Mishra
parent
3cb1ed06d6
commit
cba74c09d9
@@ -236,8 +236,8 @@ pub trait FieldGadget<F: Field, ConstraintF: Field>:
|
||||
if found_one {
|
||||
res.square_in_place(cs.ns(|| format!("square for bit {:?}", i)))?;
|
||||
}
|
||||
|
||||
if !bit {
|
||||
|
||||
if bit {
|
||||
found_one = true;
|
||||
res.mul_in_place(cs.ns(|| format!("mul for bit {:?}", i)), self)?;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user