pub fn account_create(&self, bip39_passphrase: Option<String>, snapshot_password: &str) -> Account {
        if snapshot_password.is_empty() {
            panic!("Invalid parameters: Password is missing");
        }
        let account = Account::new(bip39_passphrase);
        self.account_save(&account, snapshot_password);
        account
    }
/// Creates new account saving it
///
/// Given an optional `bip39 passphrase` and a required `snapshot password`, creates a new account saving it in the
/// snapshot file.
///
/// If you use `bip39 passphrase`, it will salt the generated mnemonic according to BIP39.
///
/// `snapshot password` will be used for decrypt/encrypt the data in the snapshot file.
/// # Example
/// ```no_run
/// use stronghold::Stronghold;
/// let stronghold = Stronghold::new("savings.snapshot");
/// let bip39_passphrase = Some(String::from("ieu73jdumf"));
/// let snapshot_password = "c/7f5cf@faaf$e2c%c588d";
/// let account = stronghold.account_create(bip39_passphrase, &snapshot_password);
/// ```
Creates new account saving it
Given an optional `bip39 passphrase` and a required `snapshot password`, creates a new account saving it in the
snapshot file.

If you use `bip39 passphrase`, it will salt the generated mnemonic according to BIP39.

`snapshot password` will be used for decrypt/encrypt the data in the snapshot file.
Creates new account saving it Given an optional ` bip39 passphrase ` and a required ` snapshot password ` creates a new account saving it in the snapshot file . If you use ` bip39 passphrase ` it will salt the generated mnemonic according to BIP39 . ` snapshot password ` will be used for decrypt / encrypt the data in the snapshot file .
pub fn account_create(&self, bip39_passphrase: Option<String>, snapshot_password: &str) -> Account {
        if snapshot_password.is_empty() {
            panic!("Invalid parameters: Password is missing");
        }
        let account = Account::new(bip39_passphrase);
        self.account_save(&account, snapshot_password);
        account
    }
pub fn account_create ( & self , bip39_passphrase : Option < String > , snapshot_password : & str ) -> Account { if snapshot_password . is_empty ( ) { panic ! ( " " ) ; } let account = Account :: new ( bip39_passphrase ) ; self . account_save ( & account , snapshot_password ) ; account }
Creates new account saving it
Given an optional `bip39 passphrase` and a required `snapshot password`, creates a new account saving it in the
snapshot file.
Creates new account saving it Given an optional ` bip39 passphrase ` and a required ` snapshot password ` creates a new account saving it in the snapshot file .
&self
bip39_passphrase
Option<String>
snapshot_password
&str
example
```no_run
use stronghold::Stronghold;
let stronghold = Stronghold::new("savings.snapshot");
let bip39_passphrase = Some(String::from("ieu73jdumf"));
let snapshot_password = "c/7f5cf@faaf$e2c%c588d";
let account = stronghold.account_create(bip39_passphrase, &snapshot_password);
```
` ` ` no_run use stronghold :: Stronghold ; let stronghold = Stronghold :: new ( " savings . snapshot " ) ; let bip39_passphrase = Some ( String :: from ( " ieu73jdumf " )) ; let snapshot_password = " c / 7f5cf@faaf$e2c%c588d " ; let account = stronghold . account_create ( bip39_passphrase &snapshot_password ) ; ` ` `