Skip to content

Commit 403a074

Browse files
committed
ed25519 v2.0.0-pre.0
Bumps the `ed25519` crate to the v2.0.0-pre.0 prerelease. This version notably uses the `signature` crate's v2 API: RustCrypto/traits#1141
1 parent ae4bd2c commit 403a074

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ features = ["nightly", "batch"]
2323

2424
[dependencies]
2525
curve25519-dalek = { version = "=4.0.0-pre.2", default-features = false }
26-
ed25519 = { version = "1", default-features = false }
26+
ed25519 = { version = "=2.0.0-pre.0", default-features = false }
2727
merlin = { version = "3", default-features = false, optional = true }
2828
rand = { version = "0.8", default-features = false, optional = true }
2929
rand_core = { version = "0.6", default-features = false, optional = true }

src/signature.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ use core::fmt::Debug;
1414

1515
use curve25519_dalek::edwards::CompressedEdwardsY;
1616
use curve25519_dalek::scalar::Scalar;
17-
use ed25519::signature::Signature as _;
1817

1918
use crate::constants::*;
2019
use crate::errors::*;
@@ -194,7 +193,7 @@ impl TryFrom<&ed25519::Signature> for InternalSignature {
194193
type Error = SignatureError;
195194

196195
fn try_from(sig: &ed25519::Signature) -> Result<InternalSignature, SignatureError> {
197-
InternalSignature::from_bytes(sig.as_bytes())
196+
InternalSignature::from_bytes(sig.as_ref())
198197
}
199198
}
200199

0 commit comments

Comments
 (0)