From 055ca55bcb71d0f6f9c7d811e8f8b14ed109cd55 Mon Sep 17 00:00:00 2001 From: Duy Do Date: Sun, 15 Jun 2025 21:01:41 +0700 Subject: [PATCH] Remove confusing docs (#772) --- ed25519-dalek/src/signing.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/ed25519-dalek/src/signing.rs b/ed25519-dalek/src/signing.rs index 5416274..d54ecb0 100644 --- a/ed25519-dalek/src/signing.rs +++ b/ed25519-dalek/src/signing.rs @@ -198,12 +198,6 @@ impl SigningKey { /// # Input /// /// A CSPRNG with a `fill_bytes()` method, e.g. `rand_os::OsRng`. - /// - /// The caller must also supply a hash function which implements the - /// `Digest` and `Default` traits, and which returns 512 bits of output. - /// The standard hash function used for most ed25519 libraries is SHA-512, - /// which is available with `use sha2::Sha512` as in the example above. - /// Other suitable hash functions include Keccak-512 and Blake2b-512. #[cfg(any(test, feature = "rand_core"))] pub fn generate(csprng: &mut R) -> SigningKey { let mut secret = SecretKey::default();