From b3b9c39b3113395604c50a248dfd3b9bbaa034fa Mon Sep 17 00:00:00 2001 From: Elichai Turkel Date: Wed, 12 May 2021 16:40:03 +0300 Subject: [PATCH] Bump version to 0.7.0 (#115) * Bump dependencies * remove unnecessary extern crates and rustfmt * Bump version to 0.7.0 --- Cargo.toml | 12 ++++++------ src/cryptographic_primitives/hashing/hash_sha256.rs | 4 +--- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index efcde22d..196ee0dd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "curv" -version = "0.6.2" +version = "0.7.0" edition = "2018" authors = ["Omer Shlomovits"] license = "MIT" @@ -14,12 +14,12 @@ crate-type = ["lib"] blake2b_simd = "0.5.7" cryptoxide = "0.1.2" curve25519-dalek = "1.2.3" -derivative = "2.1.1" +derivative = "2.2" digest = "0.8.1" ff-zeroize = "0.6.3" funty = "=1.1.0" generic-array = "0.14" -hex = "^0.3" +hex = "0.4" hmac = "0.7.1" merkle-sha3 = "^0.1" lazy_static = "1.4.0" @@ -36,11 +36,11 @@ sha3 = "0.8.2" zeroize = "1" rust-gmp-kzen = { version = "0.5", features = ["serde_support"], optional = true } -num-bigint = { version = "0.3", features = ["serde"], optional = true } +num-bigint = { version = "0.4", features = ["serde"], optional = true } [dependencies.secp256k1] -version = "0.15.3" -features = ["serde"] +version = "0.20" +features = ["serde", "rand-std"] [dependencies.p256] version = "0.5" diff --git a/src/cryptographic_primitives/hashing/hash_sha256.rs b/src/cryptographic_primitives/hashing/hash_sha256.rs index addc3f94..09ebba36 100644 --- a/src/cryptographic_primitives/hashing/hash_sha256.rs +++ b/src/cryptographic_primitives/hashing/hash_sha256.rs @@ -50,12 +50,10 @@ impl Hash for HSha256 { mod tests { use super::HSha256; use super::Hash; + use crate::arithmetic::traits::*; use crate::elliptic::curves::traits::ECPoint; use crate::elliptic::curves::traits::ECScalar; use crate::BigInt; - extern crate hex; - extern crate sha2; - use crate::arithmetic::traits::*; use sha2::Digest; use sha2::Sha256;