diff --git a/src/groups/curves/short_weierstrass/bls12/mod.rs b/src/groups/curves/short_weierstrass/bls12/mod.rs index bafa68c..a9384a2 100644 --- a/src/groups/curves/short_weierstrass/bls12/mod.rs +++ b/src/groups/curves/short_weierstrass/bls12/mod.rs @@ -90,9 +90,9 @@ impl ToBytesGadget for G1PreparedVar

{ #[tracing::instrument(target = "r1cs")] fn to_non_unique_bytes(&self) -> Result>, SynthesisError> { - let mut bytes = self.0.x.to_bytes()?; - let y_bytes = self.0.y.to_bytes()?; - let inf_bytes = self.0.infinity.to_bytes()?; + let mut bytes = self.0.x.to_non_unique_bytes()?; + let y_bytes = self.0.y.to_non_unique_bytes()?; + let inf_bytes = self.0.infinity.to_non_unique_bytes()?; bytes.extend_from_slice(&y_bytes); bytes.extend_from_slice(&inf_bytes); Ok(bytes)