pub fn new<R>(rng: &mut R) -> Self
    where
        R: CryptoRng + RngCore,
    {
        let mut bytes = [0; 64];
        rng.fill_bytes(&mut bytes);
        let hiding = Scalar::from_bytes_wide(&bytes);

        let mut bytes = [0; 64];
        rng.fill_bytes(&mut bytes);
        let binding = Scalar::from_bytes_wide(&bytes);

        Self { hiding, binding }
    }
/// Generates a new signing nonce.
///
/// Each participant generates signing nonces before performing a signing
/// operation.
Generates a new signing nonce.
Each participant generates signing nonces before performing a signing
operation.
Generates a new signing nonce . Each participant generates signing nonces before performing a signing operation .
pub fn new<R>(rng: &mut R) -> Self
    where
        R: CryptoRng + RngCore,
    {
        let mut bytes = [0; 64];
        rng.fill_bytes(&mut bytes);
        let hiding = Scalar::from_bytes_wide(&bytes);
        let mut bytes = [0; 64];
        rng.fill_bytes(&mut bytes);
        let binding = Scalar::from_bytes_wide(&bytes);
        Self { hiding, binding }
    }
pub fn new < R > ( rng : & mut R ) -> Self where R : CryptoRng + RngCore , { let mut bytes = [ 0 ; 64 ] ; rng . fill_bytes ( & mut bytes ) ; let hiding = Scalar :: from_bytes_wide ( & bytes ) ; let mut bytes = [ 0 ; 64 ] ; rng . fill_bytes ( & mut bytes ) ; let binding = Scalar :: from_bytes_wide ( & bytes ) ; Self { hiding , binding } }
Generates a new signing nonce.
Generates a new signing nonce .
rng
&mut R