ed25519 v2.0.0-pre.0 (#222)

Bumps the `ed25519` crate to the v2.0.0-pre.0 prerelease.

This version notably uses the `signature` crate's v2 API:

https://github.com/RustCrypto/traits/pull/1141
This commit is contained in:
Tony Arcieri 2022-11-21 15:21:05 -07:00 committed by GitHub
parent ae4bd2c81e
commit d4cffc7d05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -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 }

View File

@ -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::*;
@ -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())
}
}