/// Extracts the LE sequence bytes from an input.
/// Sequence is used for relative time locks.
///
/// # Arguments
///
/// * `tx_in` - The LEGACY input
Extracts the LE sequence bytes from an input.
Sequence is used for relative time locks.
Extracts the LE sequence bytes from an input . Sequence is used for relative time locks .
pub fn extract_sequence_le(tx_in: &TxIn) -> Result<[u8; 4], SPVError> {
    let script_sig_len = extract_script_sig_len(tx_in)?;
    let offset: usize = 36 + script_sig_len.serialized_length() + script_sig_len.as_usize();
    let mut sequence = [0u8; 4];
    sequence.copy_from_slice(&tx_in[offset..offset + 4]);
    Ok(sequence)
}
pub fn extract_sequence_le ( tx_in : & TxIn ) -> Result < [ u8 ; 4 ] , SPVError > { let script_sig_len = extract_script_sig_len ( tx_in ) ? ; let offset : usize = 36 + script_sig_len . serialized_length ( ) + script_sig_len . as_usize ( ) ; let mut sequence = [ 0u8 ; 4 ] ; sequence . copy_from_slice ( & tx_in [ offset .. offset + 4 ] ) ; Ok ( sequence ) }
Extracts the LE sequence bytes from an input.
Extracts the LE sequence bytes from an input .
tx_in
&TxIn