pub fn determine_input_length(tx_in: &[u8]) -> Result<usize, SPVError> {
    let script_sig_len = extract_script_sig_len(&TxIn(tx_in))?;
    // 40 = 36 (outpoint) + 4 (sequence)
    Ok(40 + script_sig_len.serialized_length() + script_sig_len.as_usize())
}
/// Determines the length of an input from its scriptsig:
/// 36 for outpoint, 1 for scriptsig length, 4 for sequence.
///
/// # Arguments
///
/// * `tx_in` - The input as a u8 array
Determines the length of an input from its scriptsig:
36 for outpoint, 1 for scriptsig length, 4 for sequence.
Determines the length of an input from its scriptsig : 36 for outpoint 1 for scriptsig length 4 for sequence .
pub fn determine_input_length(tx_in: &[u8]) -> Result<usize, SPVError> {
    let script_sig_len = extract_script_sig_len(&TxIn(tx_in))?;
    // 40 = 36 (outpoint) + 4 (sequence)
    Ok(40 + script_sig_len.serialized_length() + script_sig_len.as_usize())
}
pub fn determine_input_length ( tx_in : & [ u8 ] ) -> Result < usize , SPVError > { let script_sig_len = extract_script_sig_len ( & TxIn ( tx_in ) ) ? ; // 40 = 36 (outpoint) + 4 (sequence) Ok ( 40 + script_sig_len . serialized_length ( ) + script_sig_len . as_usize ( ) ) }
Determines the length of an input from its scriptsig:
36 for outpoint, 1 for scriptsig length, 4 for sequence.
Determines the length of an input from its scriptsig : 36 for outpoint 1 for scriptsig length 4 for sequence .
tx_in
&[u8]
tx_in
&[u8]