From b75da3d8dca5e3068fdaca872fa4f5e8e8531086 Mon Sep 17 00:00:00 2001 From: Alex Vlasov Date: Sun, 2 Jun 2019 16:55:34 +0300 Subject: [PATCH] fix BE to LE --- src/bls12_381/ec.rs | 4 ++-- src/bn256/ec.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/bls12_381/ec.rs b/src/bls12_381/ec.rs index 7eabb53..3d505de 100644 --- a/src/bls12_381/ec.rs +++ b/src/bls12_381/ec.rs @@ -775,8 +775,8 @@ pub mod g1 { { let mut reader = ©[..]; - x.read_be(&mut reader).unwrap(); - y.read_be(&mut reader).unwrap(); + x.read_le(&mut reader).unwrap(); + y.read_le(&mut reader).unwrap(); } Ok(G1Affine { diff --git a/src/bn256/ec.rs b/src/bn256/ec.rs index e60f757..02fcbc0 100644 --- a/src/bn256/ec.rs +++ b/src/bn256/ec.rs @@ -669,8 +669,8 @@ pub mod g1 { { let mut reader = ©[..]; - x.read_be(&mut reader).unwrap(); - y.read_be(&mut reader).unwrap(); + x.read_le(&mut reader).unwrap(); + y.read_le(&mut reader).unwrap(); } Ok(G1Affine {