From 3829d875b641df951c8865b49c739da5692ea378 Mon Sep 17 00:00:00 2001 From: Conrado Gouvea Date: Thu, 6 Jul 2023 22:08:44 -0300 Subject: [PATCH] update curve25519-dalek to 4.0.0-rc.3; bump version to 4.0.1 (#88) * update curve25519-dalek to 4.0.0-rc.3; bump version to 4.0.1 * Apply suggestions from code review Co-authored-by: teor --------- Co-authored-by: teor --- CHANGELOG.md | 5 +++++ Cargo.toml | 6 +++--- src/signing_key.rs | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ff6ec1b..1d77998 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ Entries are listed in reverse chronological order. +# 4.0.1 + +* Fix no-std build with serde activated (#87) +* Update `curve25519-dalek` to `4.0.0-rc.3` + # 4.0.0 * `Signature` is now an alias for `ed25519::Signature` diff --git a/Cargo.toml b/Cargo.toml index 7a8eff0..817fbdc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,9 +2,9 @@ name = "ed25519-zebra" # Before publishing: # - update CHANGELOG.md -version = "4.0.0" +version = "4.0.1" rust-version = "1.65.0" -authors = ["Henry de Valence "] +authors = ["Henry de Valence ", "Zcash Foundation "] license = "MIT OR Apache-2.0" edition = "2018" repository = "https://github.com/ZcashFoundation/ed25519-zebra" @@ -16,7 +16,7 @@ features = ["nightly"] [dependencies] # "digest" is exempt from SemVer, so we should always use a specific version -curve25519-dalek = { version = "=4.0.0-rc.2", default-features = false, features = ["alloc", "digest", "zeroize", "precomputed-tables"] } +curve25519-dalek = { version = "=4.0.0-rc.3", default-features = false, features = ["alloc", "digest", "zeroize", "precomputed-tables"] } der = { version = "0.7.1", optional = true } ed25519 = { version = "2.2.0", default-features = false } hashbrown = "0.14.0" diff --git a/src/signing_key.rs b/src/signing_key.rs index c51187f..7679495 100644 --- a/src/signing_key.rs +++ b/src/signing_key.rs @@ -112,7 +112,7 @@ impl From<[u8; 32]> for SigningKey { scalar_bytes[0] &= 248; scalar_bytes[31] &= 127; scalar_bytes[31] |= 64; - Scalar::from_bits(scalar_bytes) + Scalar::from_bytes_mod_order(scalar_bytes) }; // Extract and cache the high half.