Skip to content

Commit

Permalink
ed25519 v2.0.0-pre.0
Browse files Browse the repository at this point in the history
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
  • Loading branch information
tarcieri committed Nov 20, 2022
1 parent 1789f19 commit 76f6ddb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ features = ["nightly", "batch"]

[dependencies]
curve25519-dalek = { version = "=4.0.0-pre.2", default-features = false }
ed25519 = { version = "1", default-features = false }
ed25519 = { version = "=2.0.0-pre.0", default-features = false }
merlin = { version = "3", default-features = false, optional = true }
rand = { version = "0.8", default-features = false, optional = true }
rand_core = { version = "0.6", default-features = false, optional = true }
Expand Down
3 changes: 1 addition & 2 deletions src/signature.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ use core::fmt::Debug;

use curve25519_dalek::edwards::CompressedEdwardsY;
use curve25519_dalek::scalar::Scalar;
use ed25519::signature::Signature as _;

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

fn try_from(sig: &ed25519::Signature) -> Result<InternalSignature, SignatureError> {
InternalSignature::from_bytes(sig.as_bytes())
InternalSignature::from_bytes(sig.as_ref())
}
}

Expand Down

0 comments on commit 76f6ddb

Please sign in to comment.