Skip to content

Commit

Permalink
use ed25519_dalek::Signature::from instead of deprecated new
Browse files Browse the repository at this point in the history
  • Loading branch information
franziskuskiefer committed Oct 11, 2022
1 parent 54da6f4 commit 942d69f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openmls_rust_crypto/src/provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 942d69f

Please sign in to comment.