pub fn accounts(
		&self,
		keychain_mask: Option<&SecretKey>,
	) -> Result<Vec<AcctPathMapping>, Error> {
		let mut w_lock = self.wallet_inst.lock();
		let w = w_lock.lc_provider()?.wallet_inst()?;
		// Test keychain mask, to keep API consistent
		let _ = w.keychain(keychain_mask)?;
		owner::accounts(&mut **w)
	}
/// Returns a list of accounts stored in the wallet (i.e. mappings between
/// user-specified labels and BIP32 derivation paths.
/// # Arguments
/// * `keychain_mask` - Wallet secret mask to XOR against the stored wallet seed before using, if
/// being used.
///
/// # Returns
/// * Result Containing:
/// * A Vector of [`AcctPathMapping`](../mimble_wallet_libwallet/types/struct.AcctPathMapping.html) data
/// * or [`libwallet::Error`](../mimble_wallet_libwallet/struct.Error.html) if an error is encountered.
///
/// # Remarks
///
/// * A wallet should always have the path with the label 'default' path defined,
/// with path m/0/0
/// * This method does not need to use the 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.accounts(None);
///
/// if let Ok(accts) = result {
///     //...
/// }
/// ```
Returns a list of accounts stored in the wallet (i.e. mappings between
user-specified labels and BIP32 derivation paths.
Returns a list of accounts stored in the wallet ( i . e . mappings between user - specified labels and BIP32 derivation paths .
pub fn accounts(
		&self,
		keychain_mask: Option<&SecretKey>,
	) -> Result<Vec<AcctPathMapping>, Error> {
		let mut w_lock = self.wallet_inst.lock();
		let w = w_lock.lc_provider()?.wallet_inst()?;
		// Test keychain mask, to keep API consistent
		let _ = w.keychain(keychain_mask)?;
		owner::accounts(&mut **w)
	}
pub fn accounts ( & self , keychain_mask : Option < & SecretKey > , ) -> Result < Vec < AcctPathMapping > , Error > { let mut w_lock = self . wallet_inst . lock ( ) ; let w = w_lock . lc_provider ( ) ? . wallet_inst ( ) ? ; // Test keychain mask, to keep API consistent let _ = w . keychain ( keychain_mask ) ? ; owner :: accounts ( & mut * * w ) }
Returns a list of accounts stored in the wallet (i.e.
Returns a list of accounts stored in the wallet ( i . e .
&self
keychain_mask
Option<&SecretKey>
Result Containing:
A Vector of [`AcctPathMapping`](../mimble_wallet_libwallet/types/struct.AcctPathMapping.html) data
or [`libwallet::Error`](../mimble_wallet_libwallet/struct.Error.html) if an error is encountered.
Result Containing : A Vector of [ ` AcctPathMapping ` ] ( .. / mimble_wallet_libwallet / types / struct . AcctPathMapping . html ) data or [ ` libwallet :: Error ` ] ( .. / mimble_wallet_libwallet / struct . Error . html ) if an error is encountered .
&self
keychain_mask
Option<&SecretKey>
remarks
A wallet should always have the path with the label 'default' path defined,
with path m/0/0
This method does not need to use the wallet seed or keychain.
A wallet should always have the path with the label ' default ' path defined with path m / 0 / 0 This method does not need to use the 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.accounts(None).

if let Ok(accts) = result {

}
```
let api_owner = Owner :: new ( wallet . clone () None None ) . let result = api_owner . accounts ( None ) . if let Ok ( accts ) = result { } ` ` `