From 942d69fd967645fc90f96e59fe458dd113999e56 Mon Sep 17 00:00:00 2001 From: Franziskus Kiefer Date: Tue, 11 Oct 2022 13:24:29 +0200 Subject: [PATCH] use ed25519_dalek::Signature::from instead of deprecated new --- openmls_rust_crypto/src/provider.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openmls_rust_crypto/src/provider.rs b/openmls_rust_crypto/src/provider.rs index 5218d883e2..859e05c008 100644 --- a/openmls_rust_crypto/src/provider.rs +++ b/openmls_rust_crypto/src/provider.rs @@ -269,7 +269,7 @@ impl OpenMlsCrypto for RustCrypto { } let mut sig = [0u8; ed25519_dalek::SIGNATURE_LENGTH]; sig.clone_from_slice(signature); - k.verify_strict(data, &ed25519_dalek::Signature::new(sig)) + k.verify_strict(data, &ed25519_dalek::Signature::from(sig)) .map_err(|_| CryptoError::InvalidSignature) } _ => Err(CryptoError::UnsupportedSignatureScheme),