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§
sourcefn sign_tx_input(
&self,
tx: &mut Transaction,
input_index: usize,
tx_out: &TxOut,
redeem_script: Option<Script>
) -> Result<(), Error>
fn sign_tx_input(
&self,
tx: &mut Transaction,
input_index: usize,
tx_out: &TxOut,
redeem_script: Option<Script>
) -> Result<(), Error>
Signs a transaction input
sourcefn get_secret_key_for_pubkey(
&self,
pubkey: &PublicKey
) -> Result<SecretKey, Error>
fn get_secret_key_for_pubkey(
&self,
pubkey: &PublicKey
) -> Result<SecretKey, Error>
Get the secret key associated with the provided public key.