pub fn change_password(
		&self,
		name: Option<&str>,
		old: ZeroingString,
		new: ZeroingString,
		wallet_data_dir: Option<&str>,
	) -> Result<(), Error> {
		let mut w_lock = self.wallet_inst.lock();
		let lc = w_lock.lc_provider()?;
		lc.change_password(name, old, new, wallet_data_dir)
	}
/// Changes a wallet's password, meaning the old seed file is decrypted with the old password,
/// and a new seed file is created with the same mnemonic and encrypted with the new password.
///
/// This function temporarily backs up the old seed file until a test-decryption of the new
/// file is confirmed to contain the same seed as the original seed file, at which point the
/// backup is deleted. If this operation fails for an unknown reason, the backup file will still
/// exist in the wallet's data directory encrypted with the old password.
///
/// # Arguments
///
/// * `name`: Reserved for future use, use `None` for the time being.
/// * `old`: The password used to encrypt the existing seed file (i.e. old password)
/// * `new`: The password to be used to encrypt the new seed file
///
/// # Returns
/// * Ok(()) if successful
/// * or [`libwallet::Error`](../mimble_wallet_libwallet/struct.Error.html) if an error is encountered.
///
/// # Example
/// Set up as in [`new`](struct.Owner.html#method.new) method above.
/// ```
/// # mimble_wallet_api::doctest_helper_setup_doc_env!(wallet, wallet_config);
///
/// use mimble_core::global::ChainTypes;
///
/// // Set up as above
/// # let api_owner = Owner::new(wallet.clone(), None, None);
///
///	let old = ZeroingString::from("my_password");
///	let new = ZeroingString::from("new_password");
/// let res = api_owner.change_password(None, old, new, None);
///
/// if let Ok(mne) = res {
///     // ...
/// }
/// ```
Changes a wallet's password, meaning the old seed file is decrypted with the old password,
and a new seed file is created with the same mnemonic and encrypted with the new password.

This function temporarily backs up the old seed file until a test-decryption of the new
file is confirmed to contain the same seed as the original seed file, at which point the
backup is deleted. If this operation fails for an unknown reason, the backup file will still
exist in the wallet's data directory encrypted with the old password.
Changes a wallet ' s password meaning the old seed file is decrypted with the old password and a new seed file is created with the same mnemonic and encrypted with the new password . This function temporarily backs up the old seed file until a test - decryption of the new file is confirmed to contain the same seed as the original seed file at which point the backup is deleted . If this operation fails for an unknown reason the backup file will still exist in the wallet ' s data directory encrypted with the old password .
pub fn change_password(
		&self,
		name: Option<&str>,
		old: ZeroingString,
		new: ZeroingString,
		wallet_data_dir: Option<&str>,
	) -> Result<(), Error> {
		let mut w_lock = self.wallet_inst.lock();
		let lc = w_lock.lc_provider()?;
		lc.change_password(name, old, new, wallet_data_dir)
	}
pub fn change_password ( & self , name : Option < & str > , old : ZeroingString , new : ZeroingString , wallet_data_dir : Option < & str > , ) -> Result < ( ) , Error > { let mut w_lock = self . wallet_inst . lock ( ) ; let lc = w_lock . lc_provider ( ) ? ; lc . change_password ( name , old , new , wallet_data_dir ) }
Changes a wallet's password, meaning the old seed file is decrypted with the old password,
and a new seed file is created with the same mnemonic and encrypted with the new password.
Changes a wallet ' s password meaning the old seed file is decrypted with the old password and a new seed file is created with the same mnemonic and encrypted with the new password .
&self
name
Option<&str>
old
ZeroingString
new
ZeroingString
wallet_data_dir
Option<&str>
Ok(()) if successful
or [`libwallet::Error`](../mimble_wallet_libwallet/struct.Error.html) if an error is encountered.
Ok (( )) if successful or [ ` libwallet :: Error ` ] ( .. / mimble_wallet_libwallet / struct . Error . html ) if an error is encountered .
&self
name
Option<&str>
old
ZeroingString
new
ZeroingString
wallet_data_dir
Option<&str>
example
Set up as in [`new`](struct.Owner.html#method.new) method above.
Set up as in [ ` new ` ] ( struct . Owner . html#method . new ) method above .
mimble_wallet_api::doctest_helper_setup_doc_env!(wallet, wallet_config);
use mimble_core::global::ChainTypes.

Set up as above
use mimble_core :: global :: ChainTypes . Set up as above
let api_owner = owner::new(wallet.clone(), none, none);
let old = ZeroingString::from("my_password");
let new = ZeroingString::from("new_password");
let res = api_owner.change_password(None, old, new, None).


let old = ZeroingString :: from ( " my_password " ) ; let new = ZeroingString :: from ( " new_password " ) ; let res = api_owner . change_password ( None old new None ) .