pub fn derive_location_and_keypair(passphrase: &str, password: &str) -> Result<(XorName, Keypair)> {
    let (passphrase, password, salt) = derive_secrets(passphrase.as_bytes(), password.as_bytes());

    let map_data_location = generate_network_address(&passphrase, &salt)?;

    let mut seed = password;
    seed.extend(salt.iter());
    let keypair = create_ed25519_keypair_from_seed(&seed);

    Ok((map_data_location, keypair))
}
/// Perform all derivations and seeding to deterministically obtain location and Keypair from input
Perform all derivations and seeding to deterministically obtain location and Keypair from input
Perform all derivations and seeding to deterministically obtain location and Keypair from input
pub fn derive_location_and_keypair(passphrase: &str, password: &str) -> Result<(XorName, Keypair)> {
    let (passphrase, password, salt) = derive_secrets(passphrase.as_bytes(), password.as_bytes());
    let map_data_location = generate_network_address(&passphrase, &salt)?;
    let mut seed = password;
    seed.extend(salt.iter());
    let keypair = create_ed25519_keypair_from_seed(&seed);
    Ok((map_data_location, keypair))
}
pub fn derive_location_and_keypair ( passphrase : & str , password : & str ) -> Result < ( XorName , Keypair ) > { let ( passphrase , password , salt ) = derive_secrets ( passphrase . as_bytes ( ) , password . as_bytes ( ) ) ; let map_data_location = generate_network_address ( & passphrase , & salt ) ? ; let mut seed = password ; seed . extend ( salt . iter ( ) ) ; let keypair = create_ed25519_keypair_from_seed ( & seed ) ; Ok ( ( map_data_location , keypair ) ) }
Perform all derivations and seeding to deterministically obtain location and Keypair from input
Perform all derivations and seeding to deterministically obtain location and Keypair from input
passphrase
&str
password
&str