Trait dlc_manager::Signer

source ·
pub trait Signer {
    // Required methods
    fn sign_tx_input(
&self,
tx: &mut Transaction,
input_index: usize,
tx_out: &TxOut,
redeem_script: Option<Script>
) -> Result<(), Error>; fn get_secret_key_for_pubkey(
&self,
pubkey: &PublicKey
) -> Result<SecretKey, Error>; }
Expand description

Provides signing related functionalities.

Required Methods§

source

fn sign_tx_input(
&self,
tx: &mut Transaction,
input_index: usize,
tx_out: &TxOut,
redeem_script: Option<Script>
) -> Result<(), Error>

Signs a transaction input

source

fn get_secret_key_for_pubkey(
&self,
pubkey: &PublicKey
) -> Result<SecretKey, Error>

Get the secret key associated with the provided public key.

Implementors§