File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -909,6 +909,17 @@ pub trait SignerProvider {
909
909
fn get_shutdown_scriptpubkey ( & self ) -> Result < ShutdownScript , ( ) > ;
910
910
}
911
911
912
+ /// A helper trait that describes an on-chain wallet capable of returning a (change) destination
913
+ /// script.
914
+ pub trait ChangeDestinationSource {
915
+ /// Returns a script pubkey which can be used as a change destination for
916
+ /// [`OutputSpender::spend_spendable_outputs`].
917
+ ///
918
+ /// This method should return a different value each time it is called, to avoid linking
919
+ /// on-chain funds controlled to the same user.
920
+ fn get_change_destination_script ( & self ) -> Result < ScriptBuf , ( ) > ;
921
+ }
922
+
912
923
/// A simple implementation of [`WriteableEcdsaChannelSigner`] that just keeps the private keys in memory.
913
924
///
914
925
/// This implementation performs no policy checks and is insufficient by itself as
You can’t perform that action at this time.
0 commit comments