[−][src]Function bitcoin_spv::btcspv::extract_input_at_index
pub fn extract_input_at_index(vin: &Vec<u8>, index: u8) -> Vec<u8>
Extracts the nth input from the vin (0-indexed).
Iterates over the vin. If you need to extract several, write a custom function.
Arguments
vin
- The vin as a tightly-packed u8 arrayindex
- The 0-indexed location of the input to extract