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),