pub fn generate_private() -> Self {
        use rand_core::{OsRng, RngCore};

        let mut bytes = [0u8; 32];
        OsRng.fill_bytes(&mut bytes);

        // Apply key clamping.
        bytes[0] &= 248;
        bytes[31] &= 127;
        bytes[31] |= 64;
        Self(bytes)
    }
/// Generates and returns a new private key.
Generates and returns a new private key.
Generates and returns a new private key .
pub fn generate_private() -> Self {
        use rand_core::{OsRng, RngCore};
        let mut bytes = [0u8; 32];
        OsRng.fill_bytes(&mut bytes);
        // Apply key clamping.
        bytes[0] &= 248;
        bytes[31] &= 127;
        bytes[31] |= 64;
        Self(bytes)
    }
pub fn generate_private ( ) -> Self { use rand_core :: { OsRng , RngCore } ; let mut bytes = [ 0u8 ; 32 ] ; OsRng . fill_bytes ( & mut bytes ) ; // Apply key clamping. bytes [ 0 ] &= 248 ; bytes [ 31 ] &= 127 ; bytes [ 31 ] |= 64 ; Self ( bytes ) }
Generates and returns a new private key.
Generates and returns a new private key .