Fix ed25519 test
This commit is contained in:
@@ -446,7 +446,7 @@ mod test {
|
|||||||
#[cfg(feature = "ed25519")]
|
#[cfg(feature = "ed25519")]
|
||||||
fn test_new_ed25519_from_bytes() {
|
fn test_new_ed25519_from_bytes() {
|
||||||
let mut env = TestEnv::new();
|
let mut env = TestEnv::new();
|
||||||
let private_key = PrivateKey::new(env.rng(), SignatureAlgorithm::EDDSA);
|
let private_key = PrivateKey::new(&mut env, SignatureAlgorithm::EDDSA);
|
||||||
let key_bytes = private_key.to_bytes();
|
let key_bytes = private_key.to_bytes();
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
PrivateKey::new_ed25519_from_bytes(&key_bytes),
|
PrivateKey::new_ed25519_from_bytes(&key_bytes),
|
||||||
|
|||||||
Reference in New Issue
Block a user