/// Generate a new AccountMetadata for the scrypt key scheme, including generating a new salt
Generate a new AccountMetadata for the scrypt key scheme, including generating a new salt
Generate a new AccountMetadata for the scrypt key scheme including generating a new salt
pub fn new_scrypt(name: String) -> AccountMetadata {
        // Generate a new random salt
        let mut salt = [0u8; 16];
        zx::cprng_draw(&mut salt);
        let meta = AuthenticatorMetadata::ScryptOnly(ScryptOnlyMetadata {
            scrypt_params: ScryptParams { salt, log_n: 15, r: 8, p: 1 },
        });
        AccountMetadata { name, authenticator_metadata: meta }
    }
pub fn new_scrypt ( name : String ) -> AccountMetadata { // Generate a new random salt let mut salt = [ 0u8 ; 16 ] ; zx :: cprng_draw ( & mut salt ) ; let meta = AuthenticatorMetadata :: ScryptOnly ( ScryptOnlyMetadata { scrypt_params : ScryptParams { salt , log_n : 15 , r : 8 , p : 1 } , } ) ; AccountMetadata { name , authenticator_metadata : meta } }
Generate a new AccountMetadata for the scrypt key scheme, including generating a new salt
Generate a new AccountMetadata for the scrypt key scheme including generating a new salt
name
String