pub fn new<T: CryptoRng + Rng>(rng: &mut T) -> Self {
        let ed25519 = Ed25519Keypair::generate(rng);

        Self { ed25519, bls: None }
    }
/// Constructs a `NodeKeypairs` with a random Ed25519 keypair and no BLS keys.
Constructs a `NodeKeypairs` with a random Ed25519 keypair and no BLS keys.
Constructs a ` NodeKeypairs ` with a random Ed25519 keypair and no BLS keys .
pub fn new<T: CryptoRng + Rng>(rng: &mut T) -> Self {
        let ed25519 = Ed25519Keypair::generate(rng);
        Self { ed25519, bls: None }
    }
pub fn new < T : CryptoRng + Rng > ( rng : & mut T ) -> Self { let ed25519 = Ed25519Keypair :: generate ( rng ) ; Self { ed25519 , bls : None } }
Constructs a `NodeKeypairs` with a random Ed25519 keypair and no BLS keys.
Constructs a ` NodeKeypairs ` with a random Ed25519 keypair and no BLS keys .
rng
&mut T
rng
&mut T