pub fn satisfy<S: Satisfier<Pk>>(
        &self,
        txin: &mut elements::TxIn,
        satisfier: S,
    ) -> Result<(), Error> {
        let (witness, script_sig) = self.get_satisfication(satisfier)?;
        txin.witness = elements::TxInWitness::default();
        txin.witness.script_witness = witness;
        txin.script_sig = script_sig;
        Ok(())
    }
/// Attempts to produce a satisfying witness and scriptSig to spend an
/// output controlled by the given descriptor; add the data to a given
/// `TxIn` output.
Attempts to produce a satisfying witness and scriptSig to spend an
output controlled by the given descriptor; add the data to a given
`TxIn` output.
Attempts to produce a satisfying witness and scriptSig to spend an output controlled by the given descriptor ; add the data to a given ` TxIn ` output .
pub fn satisfy<S: Satisfier<Pk>>(
        &self,
        txin: &mut elements::TxIn,
        satisfier: S,
    ) -> Result<(), Error> {
        let (witness, script_sig) = self.get_satisfication(satisfier)?;
        txin.witness = elements::TxInWitness::default();
        txin.witness.script_witness = witness;
        txin.script_sig = script_sig;
        Ok(())
    }
pub fn satisfy < S : Satisfier < Pk > > ( & self , txin : & mut elements :: TxIn , satisfier : S , ) -> Result < ( ) , Error > { let ( witness , script_sig ) = self . get_satisfication ( satisfier ) ? ; txin . witness = elements :: TxInWitness :: default ( ) ; txin . witness . script_witness = witness ; txin . script_sig = script_sig ; Ok ( ( ) ) }
Attempts to produce a satisfying witness and scriptSig to spend an
output controlled by the given descriptor; add the data to a given
`TxIn` output.
Attempts to produce a satisfying witness and scriptSig to spend an output controlled by the given descriptor ; add the data to a given ` TxIn ` output .
&self
txin
&mut elements::TxIn
satisfier
S
&self
txin
&mut elements::TxIn
satisfier
S