pub fn receive_tx<T: ?Sized, C, K>(
	wallet: &mut T,
	slate: &mut Slate,
	parent_key_id: &Identifier,
	message: Option<String>,
) -> Result<(), Error>
where
	T: WalletBackend<C, K>,
	C: NodeClient,
	K: Keychain,
{
	// create an output using the amount in the slate
	let (_, mut context, receiver_create_fn) =
		selection::build_recipient_output_with_slate(wallet, slate, parent_key_id.clone())?;

	// fill public keys
	let _ = slate.fill_round_1(
		wallet.keychain(),
		&mut context.sec_key,
		&context.sec_nonce,
		1,
		message,
	)?;

	// perform partial sig
	let _ = slate.fill_round_2(wallet.keychain(), &context.sec_key, &context.sec_nonce, 1)?;

	// Save output in wallet
	let _ = receiver_create_fn(wallet);

	Ok(())
}
/// Receive a transaction, modifying the slate accordingly (which can then be
/// sent back to sender for posting)
Receive a transaction, modifying the slate accordingly (which can then be
sent back to sender for posting)
Receive a transaction modifying the slate accordingly ( which can then be sent back to sender for posting )
pub fn receive_tx<T: ?Sized, C, K>(
	wallet: &mut T,
	slate: &mut Slate,
	parent_key_id: &Identifier,
	message: Option<String>,
) -> Result<(), Error>
where
	T: WalletBackend<C, K>,
	C: NodeClient,
	K: Keychain,
{
	// create an output using the amount in the slate
	let (_, mut context, receiver_create_fn) =
		selection::build_recipient_output_with_slate(wallet, slate, parent_key_id.clone())?;
	// fill public keys
	let _ = slate.fill_round_1(
		wallet.keychain(),
		&mut context.sec_key,
		&context.sec_nonce,
		1,
		message,
	)?;
	// perform partial sig
	let _ = slate.fill_round_2(wallet.keychain(), &context.sec_key, &context.sec_nonce, 1)?;
	// Save output in wallet
	let _ = receiver_create_fn(wallet);
	Ok(())
}
pub fn receive_tx < T : ? Sized , C , K > ( wallet : & mut T , slate : & mut Slate , parent_key_id : & Identifier , message : Option < String > , ) -> Result < ( ) , Error > where T : WalletBackend < C , K > , C : NodeClient , K : Keychain , { // create an output using the amount in the slate let ( _ , mut context , receiver_create_fn ) = selection :: build_recipient_output_with_slate ( wallet , slate , parent_key_id . clone ( ) ) ? ; // fill public keys let _ = slate . fill_round_1 ( wallet . keychain ( ) , & mut context . sec_key , & context . sec_nonce , 1 , message , ) ? ; // perform partial sig let _ = slate . fill_round_2 ( wallet . keychain ( ) , & context . sec_key , & context . sec_nonce , 1 ) ? ; // Save output in wallet let _ = receiver_create_fn ( wallet ) ; Ok ( ( ) ) }
Receive a transaction, modifying the slate accordingly (which can then be
sent back to sender for posting)
Receive a transaction modifying the slate accordingly ( which can then be sent back to sender for posting )
wallet
&mut T
slate
&mut Slate
parent_key_id
&Identifier
message
Option<String>