pub fn create_account_path(
		&self,
		keychain_mask: Option<&SecretKey>,
		label: &str,
	) -> Result<Identifier, Error> {
		let mut w_lock = self.wallet_inst.lock();
		let w = w_lock.lc_provider()?.wallet_inst()?;
		owner::create_account_path(&mut **w, keychain_mask, label)
	}
/// Creates a new 'account', which is a mapping of a user-specified
/// label to a BIP32 path
///
/// # Arguments
///
/// * `keychain_mask` - Wallet secret mask to XOR against the stored wallet seed before using, if
/// being used.
/// * `label` - A human readable label to which to map the new BIP32 Path
///
/// # Returns
/// * Result Containing:
/// * A [Keychain Identifier](../mimble_keychain/struct.Identifier.html) for the new path
/// * or [`libwallet::Error`](../mimble_wallet_libwallet/struct.Error.html) if an error is encountered.
///
/// # Remarks
///
/// * Wallets should be initialised with the 'default' path mapped to `m/0/0`
/// * Each call to this function will increment the first element of the path
/// so the first call will create an account at `m/1/0` and the second at
/// `m/2/0` etc. . .
/// * The account path is used throughout as the parent key for most key-derivation
/// operations. See [`set_active_account`](struct.Owner.html#method.set_active_account) for
/// further details.
///
/// * This function does not need to use the root wallet seed or keychain.
///
/// # Example
/// Set up as in [`new`](struct.Owner.html#method.new) method above.
/// ```
/// # mimble_wallet_api::doctest_helper_setup_doc_env!(wallet, wallet_config);
///
/// let api_owner = Owner::new(wallet.clone(), None, None);
///
/// let result = api_owner.create_account_path(None, "account1");
///
/// if let Ok(identifier) = result {
///     //...
/// }
/// ```
Creates a new 'account', which is a mapping of a user-specified
label to a BIP32 path
Creates a new ' account ' which is a mapping of a user - specified label to a BIP32 path
pub fn create_account_path(
		&self,
		keychain_mask: Option<&SecretKey>,
		label: &str,
	) -> Result<Identifier, Error> {
		let mut w_lock = self.wallet_inst.lock();
		let w = w_lock.lc_provider()?.wallet_inst()?;
		owner::create_account_path(&mut **w, keychain_mask, label)
	}
pub fn create_account_path ( & self , keychain_mask : Option < & SecretKey > , label : & str , ) -> Result < Identifier , Error > { let mut w_lock = self . wallet_inst . lock ( ) ; let w = w_lock . lc_provider ( ) ? . wallet_inst ( ) ? ; owner :: create_account_path ( & mut * * w , keychain_mask , label ) }
Creates a new 'account', which is a mapping of a user-specified
label to a BIP32 path
Creates a new ' account ' which is a mapping of a user - specified label to a BIP32 path
&self
keychain_mask
Option<&SecretKey>
label
&str
Result Containing:
A [Keychain Identifier](../mimble_keychain/struct.Identifier.html) for the new path
or [`libwallet::Error`](../mimble_wallet_libwallet/struct.Error.html) if an error is encountered.
Result Containing : A [ Keychain Identifier ] ( .. / mimble_keychain / struct . Identifier . html ) for the new path or [ ` libwallet :: Error ` ] ( .. / mimble_wallet_libwallet / struct . Error . html ) if an error is encountered .
&self
keychain_mask
Option<&SecretKey>
label
&str
remarks
Wallets should be initialised with the 'default' path mapped to `m/0/0`
Each call to this function will increment the first element of the path
so the first call will create an account at `m/1/0` and the second at
`m/2/0` etc.

This function does not need to use the root wallet seed or keychain.
Wallets should be initialised with the ' default ' path mapped to ` m / 0 / 0 ` Each call to this function will increment the first element of the path so the first call will create an account at ` m / 1 / 0 ` and the second at ` m / 2 / 0 ` etc . This function does not need to use the root wallet seed or keychain .
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);
let api_owner = Owner::new(wallet.clone(), None, None).

let result = api_owner.create_account_path(None, "account1").

if let Ok(identifier) = result {

}
```
let api_owner = Owner :: new ( wallet . clone () None None ) . let result = api_owner . create_account_path ( None " account1 " ) . if let Ok ( identifier ) = result { } ` ` `