diff --git a/CHANGELOG.md b/CHANGELOG.md index 2b1f8eff7..5dc0fc7a6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,16 @@ ### Breaking changes +### Features + +### Improvements + +### Bug fixes + +## v0.3.0 + +### Breaking changes + - [\#285](https://github.com/arkworks-rs/algebra/pull/285) (ark-ec) Remove `ATE_LOOP_COUNT_IS_NEGATIVE` from BN curve parameter trait. - [\#292](https://github.com/arkworks-rs/algebra/pull/292) (ark-ec) Remove `CycleEngine`. - [\#293](https://github.com/arkworks-rs/algebra/pull/293) (ark-ff) Remove `ark_ff::test_rng`. diff --git a/ec/Cargo.toml b/ec/Cargo.toml index edc7e1adb..866a63586 100644 --- a/ec/Cargo.toml +++ b/ec/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ark-ec" -version = "0.2.0" +version = "0.3.0" authors = [ "arkworks contributors" ] description = "A library for elliptic curves and pairings" homepage = "https://arkworks.rs" @@ -13,9 +13,9 @@ license = "MIT/Apache-2.0" edition = "2018" [dependencies] -ark-std = { version = "0.2.0", default-features = false } -ark-serialize = { version = "^0.2.0", path = "../serialize", default-features = false } -ark-ff = { version = "^0.2.0", path = "../ff", default-features = false } +ark-std = { version = "^0.3.0", default-features = false } +ark-serialize = { version = "^0.3.0", path = "../serialize", default-features = false } +ark-ff = { version = "^0.3.0", path = "../ff", default-features = false } derivative = { version = "2", features = ["use_core"] } num-traits = { version = "0.2", default-features = false } rayon = { version = "1", optional = true } diff --git a/ff-asm/Cargo.toml b/ff-asm/Cargo.toml index f85d57918..0d61841f2 100644 --- a/ff-asm/Cargo.toml +++ b/ff-asm/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ark-ff-asm" -version = "0.2.0" +version = "0.3.0" authors = [ "arkworks contributors" ] description = "A library for generating x86-64 assembly for finite field multiplication" homepage = "https://arkworks.rs" diff --git a/ff-macros/Cargo.toml b/ff-macros/Cargo.toml index 676c71049..e199abd18 100644 --- a/ff-macros/Cargo.toml +++ b/ff-macros/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ark-ff-macros" -version = "0.2.0" +version = "0.3.0" authors = [ "arkworks contributors" ] description = "A library for generating x86-64 assembly for finite field multiplication" homepage = "https://arkworks.rs" diff --git a/ff/Cargo.toml b/ff/Cargo.toml index e49f25289..fc293a88d 100644 --- a/ff/Cargo.toml +++ b/ff/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ark-ff" -version = "0.2.0" +version = "0.3.0" authors = [ "arkworks contributors" ] description = "A library for finite fields" homepage = "https://arkworks.rs" @@ -14,10 +14,10 @@ edition = "2018" build = "build.rs" [dependencies] -ark-ff-asm = { version = "^0.2.0", path = "../ff-asm" } -ark-ff-macros = { version = "^0.2.0", path = "../ff-macros" } -ark-std = { version = "0.2.0", default-features = false } -ark-serialize = { version = "^0.2.0", path = "../serialize", default-features = false } +ark-ff-asm = { version = "^0.3.0", path = "../ff-asm" } +ark-ff-macros = { version = "^0.3.0", path = "../ff-macros" } +ark-std = { version = "^0.3.0", default-features = false } +ark-serialize = { version = "^0.3.0", path = "../serialize", default-features = false } derivative = { version = "2", features = ["use_core"] } num-traits = { version = "0.2", default-features = false } paste = "1.0" diff --git a/poly-benches/Cargo.toml b/poly-benches/Cargo.toml index 905196ce8..7883f0f34 100644 --- a/poly-benches/Cargo.toml +++ b/poly-benches/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ark-poly-benches" -version = "0.2.0" +version = "0.3.0" authors = [ "arkworks contributors" ] description = "A library for benchmarking finite-field FFTs" include = ["Cargo.toml", "src", "README.md", "LICENSE-APACHE", "LICENSE-MIT"] @@ -9,10 +9,10 @@ edition = "2018" publish = false [dependencies] -ark-ff = { version = "^0.2.0", path = "../ff" } -ark-poly = { version = "^0.2.0", path = "../poly" } -ark-std = { version = "0.2.0", default-features = false } -ark-test-curves = { version = "^0.2.0", path = "../test-curves", default-features = false, features = [ "bls12_381_scalar_field", "mnt4_753_curve" ] } +ark-ff = { version = "^0.3.0", path = "../ff" } +ark-poly = { version = "^0.3.0", path = "../poly" } +ark-std = { version = "^0.3.0", default-features = false } +ark-test-curves = { version = "^0.3.0", path = "../test-curves", default-features = false, features = [ "bls12_381_scalar_field", "mnt4_753_curve" ] } criterion = "0.3.1" rayon = { version = "1", optional = true } diff --git a/poly-benches/benches/dense_uv_polynomial.rs b/poly-benches/benches/dense_uv_polynomial.rs index ef4807547..6d123cebd 100644 --- a/poly-benches/benches/dense_uv_polynomial.rs +++ b/poly-benches/benches/dense_uv_polynomial.rs @@ -46,7 +46,7 @@ fn bench_sparse_poly_evaluate(b: &mut Bencher, non_zero_entries: &usiz let mut rng = &mut ark_std::test_rng(); let mut inner: Vec<(usize, F)> = Vec::with_capacity(*non_zero_entries); (0..*non_zero_entries) - .for_each(|_| inner.push((rng.gen_range(0, MAX_DEGREE), F::rand(&mut rng)))); + .for_each(|_| inner.push((rng.gen_range(0..MAX_DEGREE), F::rand(&mut rng)))); let poly = SparsePolynomial::::from_coefficients_vec(inner); b.iter(|| { // Per benchmark iteration diff --git a/poly/Cargo.toml b/poly/Cargo.toml index a4ecb4ec9..83b694f42 100644 --- a/poly/Cargo.toml +++ b/poly/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ark-poly" -version = "0.2.0" +version = "0.3.0" authors = [ "arkworks contributors" ] description = "A library for efficient polynomial arithmetic via FFTs over finite fields" homepage = "https://arkworks.rs" @@ -13,9 +13,9 @@ license = "MIT/Apache-2.0" edition = "2018" [dependencies] -ark-ff = { version = "^0.2.0", path = "../ff", default-features = false } -ark-serialize = { version = "^0.2.0", path = "../serialize", default-features = false, features = ["derive"] } -ark-std = { version = "0.2.0", default-features = false } +ark-ff = { version = "^0.3.0", path = "../ff", default-features = false } +ark-serialize = { version = "^0.3.0", path = "../serialize", default-features = false, features = ["derive"] } +ark-std = { version = "^0.3.0", default-features = false } rayon = { version = "1", optional = true } derivative = { version = "2", default-features = false, features = [ "use_core" ] } hashbrown = { version = "0.11.1"} diff --git a/poly/src/polynomial/multivariate/sparse.rs b/poly/src/polynomial/multivariate/sparse.rs index 650c4962e..a5f48695d 100644 --- a/poly/src/polynomial/multivariate/sparse.rs +++ b/poly/src/polynomial/multivariate/sparse.rs @@ -253,7 +253,7 @@ mod tests { /// Generate random `l`-variate polynomial of maximum individual degree `d` fn rand_poly(l: usize, d: usize, rng: &mut R) -> SparsePolynomial { let mut random_terms = Vec::new(); - let num_terms = rng.gen_range(1, 1000); + let num_terms = rng.gen_range(1..1000); // For each term, randomly select up to `l` variables with degree // in [1,d] and random coefficient random_terms.push((Fr::rand(rng), SparseTerm::new(vec![]))); @@ -261,7 +261,7 @@ mod tests { let term = (0..l) .map(|i| { if rng.gen_bool(0.5) { - Some((i, rng.gen_range(1, d + 1))) + Some((i, rng.gen_range(1..(d + 1)))) } else { None } diff --git a/serialize-derive/Cargo.toml b/serialize-derive/Cargo.toml index ba1676273..79cbc0c81 100644 --- a/serialize-derive/Cargo.toml +++ b/serialize-derive/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ark-serialize-derive" -version = "0.2.0" +version = "0.3.0" authors = [ "arkworks Contributors" ] description = "A library for deriving serialization traits for the arkworks ecosystem" homepage = "https://arkworks.rs" diff --git a/serialize/Cargo.toml b/serialize/Cargo.toml index 991deed1a..3c4675983 100644 --- a/serialize/Cargo.toml +++ b/serialize/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ark-serialize" -version = "0.2.0" +version = "0.3.0" authors = [ "arkworks contributors" ] description = "A library for serializing types in the arkworks ecosystem" homepage = "https://arkworks.rs" @@ -13,8 +13,8 @@ license = "MIT/Apache-2.0" edition = "2018" [dependencies] -ark-serialize-derive = { version = "^0.2.0", path = "../serialize-derive", optional = true } -ark-std = { version = "0.2.0", default-features = false } +ark-serialize-derive = { version = "^0.3.0", path = "../serialize-derive", optional = true } +ark-std = { version = "^0.3.0", default-features = false } digest = { version = "0.9", default-features = false } [dev-dependencies] diff --git a/test-curves/Cargo.toml b/test-curves/Cargo.toml index 9c91ae360..1222ef980 100644 --- a/test-curves/Cargo.toml +++ b/test-curves/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ark-test-curves" -version = "0.2.0" +version = "0.3.0" authors = [ "arkworks contributors" ] description = "A library for testing ark-ec & ark-poly" homepage = "https://arkworks.rs" @@ -13,13 +13,13 @@ license = "MIT/Apache-2.0" edition = "2018" [dependencies] -ark-std = { version = "^0.2.0", default-features = false } -ark-ff = { version = "^0.2.0", path = "../ff", default-features = false } -ark-ec = { version = "^0.2.0", path = "../ec", default-features = false } +ark-std = { version = "^0.3.0", default-features = false } +ark-ff = { version = "^0.3.0", path = "../ff", default-features = false } +ark-ec = { version = "^0.3.0", path = "../ec", default-features = false } [dev-dependencies] -ark-serialize = { version = "^0.2.0", path = "../serialize", default-features = false } -ark-algebra-test-templates = { version = "^0.2.0", path = "../test-templates", default-features = false } +ark-serialize = { version = "^0.3.0", path = "../serialize", default-features = false } +ark-algebra-test-templates = { version = "^0.3.0", path = "../test-templates", default-features = false } [features] default = [] diff --git a/test-templates/Cargo.toml b/test-templates/Cargo.toml index 2c9c74956..bdb91409d 100644 --- a/test-templates/Cargo.toml +++ b/test-templates/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ark-algebra-test-templates" -version = "0.2.0" +version = "0.3.0" authors = [ "arkworks contributors" ] description = "A library for tests for finite fields, elliptic curves, and pairings" homepage = "https://arkworks.rs" @@ -13,10 +13,10 @@ license = "MIT/Apache-2.0" edition = "2018" [dependencies] -ark-std = { version = "0.2.0", default-features = false } -ark-serialize = { version = "^0.2.0", path = "../serialize", default-features = false } -ark-ff = { version = "^0.2.0", path = "../ff", default-features = false } -ark-ec = { version = "^0.2.0", path = "../ec", default-features = false } +ark-std = { version = "^0.3.0", default-features = false } +ark-serialize = { version = "^0.3.0", path = "../serialize", default-features = false } +ark-ff = { version = "^0.3.0", path = "../ff", default-features = false } +ark-ec = { version = "^0.3.0", path = "../ec", default-features = false } [features] default = []