pub fn verify_slate_messages(
		&self,
		keychain_mask: Option<&SecretKey>,
		slate: &Slate,
	) -> Result<(), 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::verify_slate_messages(slate)
	}
/// Verifies all messages in the slate match their public keys.
///
/// The optional messages themselves are part of the `participant_data` field within the slate.
/// Messages are signed with the same key used to sign for the paricipant's inputs, and can thus be
/// verified with the public key found in the `public_blind_excess` field. This function is a
/// simple helper to returns whether all signatures in the participant data match their public
/// keys.
///
/// # Arguments
///
/// * `keychain_mask` - Wallet secret mask to XOR against the stored wallet seed before using, if
/// being used.
/// * `slate` - The transaction [`Slate`](../mimble_wallet_libwallet/slate/struct.Slate.html).
///
/// # Returns
/// * `Ok(())` if successful and the signatures validate
/// * 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);
///
/// let mut api_owner = Owner::new(wallet.clone(), None, None);
/// let args = InitTxArgs {
///     src_acct_name: None,
///     amount: 2_000_000_000,
///     minimum_confirmations: 10,
///     max_outputs: 500,
///     num_change_outputs: 1,
///     selection_strategy_is_use_all: false,
///     message: Some("Just verify messages".to_owned()),
///     ..Default::default()
/// };
/// let result = api_owner.init_send_tx(
/// 	None,
/// 	args,
/// 	None,
/// 	1,
/// );
///
/// if let Ok(slate) = result {
///		// Send slate somehow
///		// ...
///		// Lock our outputs if we're happy the slate was (or is being) sent
///		let res = api_owner.tx_lock_outputs(None, &slate, None, 0);
///		//
///		// Retrieve slate back from recipient
///		//
///		let res = api_owner.verify_slate_messages(None, &slate);
/// }
/// ```
Verifies all messages in the slate match their public keys.
The optional messages themselves are part of the `participant_data` field within the slate.
Messages are signed with the same key used to sign for the paricipant's inputs, and can thus be
verified with the public key found in the `public_blind_excess` field. This function is a
simple helper to returns whether all signatures in the participant data match their public
keys.
Verifies all messages in the slate match their public keys . The optional messages themselves are part of the ` participant_data ` field within the slate . Messages are signed with the same key used to sign for the paricipant ' s inputs and can thus be verified with the public key found in the ` public_blind_excess ` field . This function is a simple helper to returns whether all signatures in the participant data match their public keys .
pub fn verify_slate_messages(
		&self,
		keychain_mask: Option<&SecretKey>,
		slate: &Slate,
	) -> Result<(), 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::verify_slate_messages(slate)
	}
pub fn verify_slate_messages ( & self , keychain_mask : Option < & SecretKey > , slate : & Slate , ) -> Result < ( ) , 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 :: verify_slate_messages ( slate ) }
Verifies all messages in the slate match their public keys.
Verifies all messages in the slate match their public keys .
&self
keychain_mask
Option<&SecretKey>
slate
&Slate
`Ok(())` if successful and the signatures validate
or [`libwallet::Error`](../mimble_wallet_libwallet/struct.Error.html) if an error is encountered.
` Ok (( )) ` if successful and the signatures validate or [ ` libwallet :: Error ` ] ( .. / mimble_wallet_libwallet / struct . Error . html ) if an error is encountered .
&self
keychain_mask
Option<&SecretKey>
slate
&Slate
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 mut api_owner = Owner::new(wallet.clone(), None, None);
let args = InitTxArgs {
src_acct_name: None,
amount: 2_000_000_000,
minimum_confirmations: 10,
max_outputs: 500,
num_change_outputs: 1,
selection_strategy_is_use_all: false,
message: Some("Just verify messages".to_owned()),
Default::default()
};
let result = api_owner.init_send_tx(
None,
args,
None,
1,
).

if let Ok(slate) = result {
Send slate somehow

Lock our outputs if we're happy the slate was (or is being) sent
let res = api_owner.tx_lock_outputs(None, &slate, None, 0).

Retrieve slate back from recipient

let res = api_owner.verify_slate_messages(None, &slate);
}
```
let mut api_owner = Owner :: new ( wallet . clone () None None ) ; let args = InitTxArgs { src_acct_name : None amount : 2_000_000_000 minimum_confirmations : 10 max_outputs : 500 num_change_outputs : 1 selection_strategy_is_use_all : false message : Some ( " Just verify messages " . to_owned () ) Default :: default () } ; let result = api_owner . init_send_tx ( None args None 1 ) . if let Ok ( slate ) = result { Send slate somehow Lock our outputs if we ' re happy the slate was ( or is being ) sent let res = api_owner . tx_lock_outputs ( None &slate None 0 ) . Retrieve slate back from recipient let res = api_owner . verify_slate_messages ( None &slate ) ; } ` ` `