Trait lightning_signer::wallet::Wallet [−][src]
pub trait Wallet {
fn can_spend(
&self,
child_path: &Vec<u32>,
script_pubkey: &Script
) -> Result<bool, Status>;
fn allowlist_contains(&self, script_pubkey: &Script) -> bool;
fn network(&self) -> Network;
}
Expand description
A layer-1 wallet used by Validator
Required methods
True if the wallet can spend the given output with a derived key
fn allowlist_contains(&self, script_pubkey: &Script) -> bool
fn allowlist_contains(&self, script_pubkey: &Script) -> bool
True if the script_pubkey is in the node’s allowlist