Trait ChangeDestinationSource

Source
pub trait ChangeDestinationSource {
    // Required method
    fn get_change_destination_script<'a>(
        &'a self,
    ) -> AsyncResult<'a, ScriptBuf, ()>;
}
Expand description

A helper trait that describes an on-chain wallet capable of returning a (change) destination script.

This is not exported to bindings users as async is only supported in Rust.

Required Methods§

Source

fn get_change_destination_script<'a>(&'a self) -> AsyncResult<'a, ScriptBuf, ()>

Returns a script pubkey which can be used as a change destination for OutputSpender::spend_spendable_outputs.

This method should return a different value each time it is called, to avoid linking on-chain funds controlled to the same user.

Implementors§