From 5f99c52143c07857d22978622880fdfca91de435 Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Sat, 22 Aug 2020 11:46:27 +0100 Subject: [PATCH] bls12_381 0.2.0 --- bellman/Cargo.toml | 2 +- bls12_381/Cargo.toml | 7 +++++-- bls12_381/RELEASES.md | 32 ++++++++++++++++++++++++++++++++ jubjub/Cargo.toml | 2 +- zcash_client_backend/Cargo.toml | 2 +- zcash_primitives/Cargo.toml | 2 +- zcash_proofs/Cargo.toml | 2 +- 7 files changed, 42 insertions(+), 7 deletions(-) diff --git a/bellman/Cargo.toml b/bellman/Cargo.toml index f6abb911f..81ec8cdd3 100644 --- a/bellman/Cargo.toml +++ b/bellman/Cargo.toml @@ -24,7 +24,7 @@ byteorder = "1" subtle = "2.2.1" [dev-dependencies] -bls12_381 = { version = "0.1", path = "../bls12_381" } +bls12_381 = { version = "0.2", path = "../bls12_381" } hex-literal = "0.2" rand = "0.7" rand_xorshift = "0.2" diff --git a/bls12_381/Cargo.toml b/bls12_381/Cargo.toml index 585713424..441140142 100644 --- a/bls12_381/Cargo.toml +++ b/bls12_381/Cargo.toml @@ -1,12 +1,15 @@ [package] -authors = ["Sean Bowe "] +authors = [ + "Sean Bowe ", + "Jack Grigg ", +] description = "Implementation of the BLS12-381 pairing-friendly elliptic curve construction" documentation = "https://docs.rs/bls12_381/" homepage = "https://github.com/zkcrypto/bls12_381" license = "MIT/Apache-2.0" name = "bls12_381" repository = "https://github.com/zkcrypto/bls12_381" -version = "0.1.1" +version = "0.2.0" edition = "2018" [package.metadata.docs.rs] diff --git a/bls12_381/RELEASES.md b/bls12_381/RELEASES.md index 85fcd4ae5..5f314c437 100644 --- a/bls12_381/RELEASES.md +++ b/bls12_381/RELEASES.md @@ -1,3 +1,35 @@ +# 0.2.0 + +This release adds implementations of the `ff`, `group`, and `pairing` traits (with the +latter two being gated by the `groups` and `pairings` feature flags respectively). +Additional trait implementations (for standard traits) have been added where the `ff`, +`group`, and `pairing` trait bounds require them. + +## Added +* `bls12_381::Bls12`, a `pairing::Engine` for BLS12-381 pairing operations. It implements + the following traits: + * `pairing::{Engine, MultiMillerLoop}` +* New trait implementations for `bls12_381::G1Projective`: + * `group::{Curve, Group, GroupEncoding, WnafGroup}` + * `group::prime::{PrimeCurve, PrimeGroup}` +* New trait implementations for `bls12_381::G1Affine`: + * `group::{GroupEncoding, UncompressedEncoding}` + * `group::prime::PrimeCurveAffine` + * `pairing::PairingCurveAffine` +* New trait implementations for `bls12_381::G2Projective`: + * `group::{Curve, Group, GroupEncoding, WnafGroup}` + * `group::prime::{PrimeCurve, PrimeGroup}` +* New trait implementations for `bls12_381::G2Affine`: + * `group::{GroupEncoding, UncompressedEncoding}` + * `group::prime::PrimeCurveAffine` + * `pairing::PairingCurveAffine` +* New trait implementations for `bls12_381::Gt`: + * `group::Group` +* New trait implementations for `bls12_381::MillerLoopResult`: + * `pairing::MillerLoopResult` +* New trait implementations for `bls12_381::Scalar`: + * `ff::{Field, PrimeField}` + # 0.1.1 Added `clear_cofactor` methods to `G1Projective` and `G2Projective`. If the crate feature `endo` diff --git a/jubjub/Cargo.toml b/jubjub/Cargo.toml index 5fdd35ef0..af07bfd9a 100644 --- a/jubjub/Cargo.toml +++ b/jubjub/Cargo.toml @@ -15,7 +15,7 @@ edition = "2018" [dependencies.bls12_381] path = "../bls12_381" -version = "0.1" +version = "0.2" default-features = false [dependencies.byteorder] diff --git a/zcash_client_backend/Cargo.toml b/zcash_client_backend/Cargo.toml index 3163d83e8..c5de72508 100644 --- a/zcash_client_backend/Cargo.toml +++ b/zcash_client_backend/Cargo.toml @@ -13,7 +13,7 @@ edition = "2018" [dependencies] bech32 = "0.7" -bls12_381 = { version = "0.1", path = "../bls12_381" } +bls12_381 = { version = "0.2", path = "../bls12_381" } bs58 = { version = "0.3", features = ["check"] } ff = { version = "0.7", path = "../ff" } group = { version = "0.7", path = "../group" } diff --git a/zcash_primitives/Cargo.toml b/zcash_primitives/Cargo.toml index 6973ccae3..c18a95628 100644 --- a/zcash_primitives/Cargo.toml +++ b/zcash_primitives/Cargo.toml @@ -18,7 +18,7 @@ all-features = true aes = "0.5" blake2b_simd = "0.5" blake2s_simd = "0.5" -bls12_381 = { version = "0.1", path = "../bls12_381" } +bls12_381 = { version = "0.2", path = "../bls12_381" } byteorder = "1" crypto_api_chachapoly = "0.4" equihash = { version = "0.1", path = "../components/equihash" } diff --git a/zcash_proofs/Cargo.toml b/zcash_proofs/Cargo.toml index 8f7ee8dda..ae297dbbc 100644 --- a/zcash_proofs/Cargo.toml +++ b/zcash_proofs/Cargo.toml @@ -17,7 +17,7 @@ all-features = true [dependencies] bellman = { version = "0.6", path = "../bellman", default-features = false, features = ["groth16"] } blake2b_simd = "0.5" -bls12_381 = { version = "0.1", path = "../bls12_381" } +bls12_381 = { version = "0.2", path = "../bls12_381" } byteorder = "1" directories = { version = "3", optional = true } ff = { version = "0.7", path = "../ff" }