From 1e935b0b94664e3ad769942f639041881fb0599b Mon Sep 17 00:00:00 2001 From: Pratyush Mishra Date: Wed, 16 Dec 2020 10:35:53 -0800 Subject: [PATCH] Fix `to_non_unique_bytes` for `BLS12::G1Prepared` --- src/groups/curves/short_weierstrass/bls12/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)