pub fn extract_script_sig<'a>(tx_in: &'a TxIn) -> Result<ScriptSig<'a>, SPVError> {
    let script_sig_len = extract_script_sig_len(tx_in)?;
    let length = script_sig_len.serialized_length() + script_sig_len.as_usize();
    Ok(ScriptSig(&tx_in[36..36 + length]))
}
/// Extracts the CompactInt-prepended scriptSig from the input in a tx.
/// Will return `vec![0]` if passed a witness input.
///
/// # Arguments
///
/// * `tx_in` - The LEGACY input
Extracts the CompactInt-prepended scriptSig from the input in a tx.
Will return `vec![0]` if passed a witness input.
Extracts the CompactInt - prepended scriptSig from the input in a tx . Will return ` vec! [ 0 ] ` if passed a witness input .
pub fn extract_script_sig<'a>(tx_in: &'a TxIn) -> Result<ScriptSig<'a>, SPVError> {
    let script_sig_len = extract_script_sig_len(tx_in)?;
    let length = script_sig_len.serialized_length() + script_sig_len.as_usize();
    Ok(ScriptSig(&tx_in[36..36 + length]))
}
pub fn extract_script_sig < ' a > ( tx_in : & ' a TxIn ) -> Result < ScriptSig < ' a > , SPVError > { let script_sig_len = extract_script_sig_len ( tx_in ) ? ; let length = script_sig_len . serialized_length ( ) + script_sig_len . as_usize ( ) ; Ok ( ScriptSig ( & tx_in [ 36 .. 36 + length ] ) ) }
Extracts the CompactInt-prepended scriptSig from the input in a tx.
Extracts the CompactInt - prepended scriptSig from the input in a tx .
tx_in
&'a TxIn
tx_in
&'a TxIn