ChangeDestinationSourceSync

Trait ChangeDestinationSourceSync 

Source
pub trait ChangeDestinationSourceSync {
    // Required method
    fn get_change_destination_script(&self) -> Result<ScriptBuf, ()>;
}
Expand description

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

Required Methods§

Source

fn get_change_destination_script(&self) -> Result<ScriptBuf, ()>

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

Implementors§