|
@ -524,8 +524,8 @@ impl, ConstraintF: PrimeField> ToBitsGadget |
|
|
&self,
|
|
|
&self,
|
|
|
mut cs: CS,
|
|
|
mut cs: CS,
|
|
|
) -> Result<Vec<Boolean>, SynthesisError> {
|
|
|
) -> Result<Vec<Boolean>, SynthesisError> {
|
|
|
let mut c0 = self.c0.to_bits(&mut cs)?;
|
|
|
|
|
|
let mut c1 = self.c1.to_bits(cs)?;
|
|
|
|
|
|
|
|
|
let mut c0 = self.c0.to_bits(cs.ns(|| "c0"))?;
|
|
|
|
|
|
let mut c1 = self.c1.to_bits(cs.ns(|| "c1"))?;
|
|
|
c0.append(&mut c1);
|
|
|
c0.append(&mut c1);
|
|
|
Ok(c0)
|
|
|
Ok(c0)
|
|
|
}
|
|
|
}
|
|
@ -534,8 +534,8 @@ impl, ConstraintF: PrimeField> ToBitsGadget |
|
|
&self,
|
|
|
&self,
|
|
|
mut cs: CS,
|
|
|
mut cs: CS,
|
|
|
) -> Result<Vec<Boolean>, SynthesisError> {
|
|
|
) -> Result<Vec<Boolean>, SynthesisError> {
|
|
|
let mut c0 = self.c0.to_bits_strict(&mut cs)?;
|
|
|
|
|
|
let mut c1 = self.c1.to_bits_strict(cs)?;
|
|
|
|
|
|
|
|
|
let mut c0 = self.c0.to_bits_strict(cs.ns(|| "c0"))?;
|
|
|
|
|
|
let mut c1 = self.c1.to_bits_strict(cs.ns(|| "c1"))?;
|
|
|
c0.append(&mut c1);
|
|
|
c0.append(&mut c1);
|
|
|
Ok(c0)
|
|
|
Ok(c0)
|
|
|
}
|
|
|
}
|
|
|