pub fn generate_network_address(passphrase: &[u8], salt: &[u8]) -> Result<XorName> {
    let mut id = XorName([0; XOR_NAME_LEN]);

    const ITERATIONS: u32 = 10_000u32;

    pbkdf2::pbkdf2::<Hmac<Sha3_256>>(passphrase, &salt, ITERATIONS, &mut id.0[..]);

    Ok(id)
}
/// Generates User's Identity for the network using supplied credentials in
/// a deterministic way.  This is similar to the username in various places.
Generates User's Identity for the network using supplied credentials in
a deterministic way.  This is similar to the username in various places.
Generates User ' s Identity for the network using supplied credentials in a deterministic way . This is similar to the username in various places .
pub fn generate_network_address(passphrase: &[u8], salt: &[u8]) -> Result<XorName> {
    let mut id = XorName([0; XOR_NAME_LEN]);
    const ITERATIONS: u32 = 10_000u32;
    pbkdf2::pbkdf2::<Hmac<Sha3_256>>(passphrase, &salt, ITERATIONS, &mut id.0[..]);
    Ok(id)
}
pub fn generate_network_address ( passphrase : & [ u8 ] , salt : & [ u8 ] ) -> Result < XorName > { let mut id = XorName ( [ 0 ; XOR_NAME_LEN ] ) ; const ITERATIONS : u32 = 10_000u32 ; pbkdf2 :: pbkdf2 :: < Hmac < Sha3_256 > > ( passphrase , & salt , ITERATIONS , & mut id . 0 [ .. ] ) ; Ok ( id ) }
Generates User's Identity for the network using supplied credentials in
a deterministic way.
Generates User ' s Identity for the network using supplied credentials in a deterministic way .
passphrase
&[u8]
salt
&[u8]