pub fn generate_keypair() -> (NoisePrivKey, NoisePubKey) {
        let mut noise_privkey = NoisePrivKey([0u8; KEY_SIZE]);

        sodiumoxide::init().expect("Initing libsodium");
        noise_privkey
            .0
            .copy_from_slice(&sodiumoxide::randombytes::randombytes(32));

        let noise_pubkey = noise_privkey.pubkey();
        (noise_privkey, noise_pubkey)
    }
/// Revault must specify the SodiumResolver to use sodiumoxide as the cryptography provider
/// when generating a static key pair for secure communication.
Revault must specify the SodiumResolver to use sodiumoxide as the cryptography provider
when generating a static key pair for secure communication.
Revault must specify the SodiumResolver to use sodiumoxide as the cryptography provider when generating a static key pair for secure communication .
pub fn generate_keypair() -> (NoisePrivKey, NoisePubKey) {
        let mut noise_privkey = NoisePrivKey([0u8; KEY_SIZE]);
        sodiumoxide::init().expect("Initing libsodium");
        noise_privkey
            .0
            .copy_from_slice(&sodiumoxide::randombytes::randombytes(32));
        let noise_pubkey = noise_privkey.pubkey();
        (noise_privkey, noise_pubkey)
    }
pub fn generate_keypair ( ) -> ( NoisePrivKey , NoisePubKey ) { let mut noise_privkey = NoisePrivKey ( [ 0u8 ; KEY_SIZE ] ) ; sodiumoxide :: init ( ) . expect ( " " ) ; noise_privkey . 0 . copy_from_slice ( & sodiumoxide :: randombytes :: randombytes ( 32 ) ) ; let noise_pubkey = noise_privkey . pubkey ( ) ; ( noise_privkey , noise_pubkey ) }
Revault must specify the SodiumResolver to use sodiumoxide as the cryptography provider
when generating a static key pair for secure communication.
Revault must specify the SodiumResolver to use sodiumoxide as the cryptography provider when generating a static key pair for secure communication .