[][src]Function bitcoin_spv::validatespv::calculate_txid

pub fn calculate_txid(
    version: &Vec<u8>,
    vin: &Vec<u8>,
    vout: &Vec<u8>,
    locktime: &Vec<u8>
) -> Hash256Digest

Hashes transaction to get txid.

Arguments

  • version - 4-bytes version
  • vin - Raw bytes length-prefixed input vector
  • vout - Raw bytes length-prefixed output vector
  • locktime - 4-byte tx locktime