Skip to content

Commit 3829d87

Browse files
conradoplgteor2345
andauthored
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 <[email protected]> --------- Co-authored-by: teor <[email protected]>
1 parent 0db5c8e commit 3829d87

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
Entries are listed in reverse chronological order.
44

5+
# 4.0.1
6+
7+
* Fix no-std build with serde activated (#87)
8+
* Update `curve25519-dalek` to `4.0.0-rc.3`
9+
510
# 4.0.0
611

712
* `Signature` is now an alias for `ed25519::Signature`

Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
name = "ed25519-zebra"
33
# Before publishing:
44
# - update CHANGELOG.md
5-
version = "4.0.0"
5+
version = "4.0.1"
66
rust-version = "1.65.0"
7-
authors = ["Henry de Valence <[email protected]>"]
7+
authors = ["Henry de Valence <[email protected]>", "Zcash Foundation <[email protected]>"]
88
license = "MIT OR Apache-2.0"
99
edition = "2018"
1010
repository = "https://github.com/ZcashFoundation/ed25519-zebra"
@@ -16,7 +16,7 @@ features = ["nightly"]
1616

1717
[dependencies]
1818
# "digest" is exempt from SemVer, so we should always use a specific version
19-
curve25519-dalek = { version = "=4.0.0-rc.2", default-features = false, features = ["alloc", "digest", "zeroize", "precomputed-tables"] }
19+
curve25519-dalek = { version = "=4.0.0-rc.3", default-features = false, features = ["alloc", "digest", "zeroize", "precomputed-tables"] }
2020
der = { version = "0.7.1", optional = true }
2121
ed25519 = { version = "2.2.0", default-features = false }
2222
hashbrown = "0.14.0"

src/signing_key.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ impl From<[u8; 32]> for SigningKey {
112112
scalar_bytes[0] &= 248;
113113
scalar_bytes[31] &= 127;
114114
scalar_bytes[31] |= 64;
115-
Scalar::from_bits(scalar_bytes)
115+
Scalar::from_bytes_mod_order(scalar_bytes)
116116
};
117117

118118
// Extract and cache the high half.

0 commit comments

Comments
 (0)