pub fn generate_keypair() -> Keypair {
        let noise_params = "Noise_KK_25519_ChaChaPoly_SHA256"
            .parse()
            .map_err(|e| Error::Noise(format!("Invalid Noise Pattern: {}", e)))
            .unwrap();
        Builder::with_resolver(noise_params, Box::new(SodiumResolver::default()))
            .generate_keypair()
            .unwrap()
    }
/// 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() -> Keypair {
        let noise_params = "Noise_KK_25519_ChaChaPoly_SHA256"
            .parse()
            .map_err(|e| Error::Noise(format!("Invalid Noise Pattern: {}", e)))
            .unwrap();
        Builder::with_resolver(noise_params, Box::new(SodiumResolver::default()))
            .generate_keypair()
            .unwrap()
    }
pub fn generate_keypair ( ) -> Keypair { let noise_params = " " . parse ( ) . map_err ( | e | Error :: Noise ( format ! ( " " e ) ) ) . unwrap ( ) ; Builder :: with_resolver ( noise_params , Box :: new ( SodiumResolver :: default ( ) ) ) . generate_keypair ( ) . unwrap ( ) }
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 .