pub fn extract_script_sig_len(tx_in: &TxIn) -> Result<CompactInt, SPVError> {
    if tx_in.len() < 37 {
        return Err(SPVError::ReadOverrun);
    }
    parse_compact_int(&tx_in[36..])
}
/// Determines the length of a scriptSig in an input.
/// Will return 0 if passed a witness input.
///
/// # Arguments
///
/// * `tx_in` - The LEGACY input
Determines the length of a scriptSig in an input.
Will return 0 if passed a witness input.
Determines the length of a scriptSig in an input . Will return 0 if passed a witness input .
pub fn extract_script_sig_len(tx_in: &TxIn) -> Result<CompactInt, SPVError> {
    if tx_in.len() < 37 {
        return Err(SPVError::ReadOverrun);
    }
    parse_compact_int(&tx_in[36..])
}
pub fn extract_script_sig_len ( tx_in : & TxIn ) -> Result < CompactInt , SPVError > { if tx_in . len ( ) < 37 { return Err ( SPVError :: ReadOverrun ) ; } parse_compact_int ( & tx_in [ 36 .. ] ) }
Determines the length of a scriptSig in an input.
Determines the length of a scriptSig in an input .
tx_in
&TxIn
tx_in
&TxIn