From 64df1c65d22b013c990d610c2cb5488588049a7a Mon Sep 17 00:00:00 2001 From: moana Date: Fri, 19 May 2023 16:19:21 +0200 Subject: [PATCH] Remove scalar GENERATOR Resolves: #100 --- CHANGELOG.md | 5 +++++ src/lib.rs | 2 +- src/scalar.rs | 3 --- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 44625b46..4f4fc8be 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Removed + +- Remove scalar field generator [#100] + ## [0.11.3] - 2023-05-17 ### Changed @@ -181,6 +185,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Rename `S` to `TWO_ADACITY` and export it +[#100]: (https://github.com/dusk-network/bls12_381/issues/100) [#93]: (https://github.com/dusk-network/bls12_381/issues/93) [#75]: (https://github.com/dusk-network/bls12_381/issues/75) [#84]: (https://github.com/dusk-network/bls12_381/issues/84) diff --git a/src/lib.rs b/src/lib.rs index e509fc74..c0c53553 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -47,7 +47,7 @@ mod choice; mod scalar; pub use scalar::Scalar as BlsScalar; -pub use scalar::{GENERATOR, ROOT_OF_UNITY, TWO_ADACITY}; +pub use scalar::{ROOT_OF_UNITY, TWO_ADACITY}; #[cfg(feature = "rkyv-impl")] pub use scalar::{ArchivedScalar as ArchivedBlsScalar, ScalarResolver as BlsScalarResolver}; diff --git a/src/scalar.rs b/src/scalar.rs index 3651e991..391511ca 100644 --- a/src/scalar.rs +++ b/src/scalar.rs @@ -353,9 +353,6 @@ pub const ROOT_OF_UNITY: Scalar = Scalar([ 0x5bf3adda19e9b27b, ]); -/// Generator of the Scalar field -pub const GENERATOR: Scalar = Scalar([7, 0, 0, 0]); - impl Product for Scalar where T: Borrow,