/// 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
Hashes transaction to get txid.
Hashes transaction to get txid .
pub fn calculate_txid(
    version: &[u8; 4],
    vin: &Vin,
    vout: &Vout,
    locktime: &[u8; 4],
) -> Hash256Digest {
    btcspv::hash256(&[version, vin.as_ref(), vout.as_ref(), locktime])
}
pub fn calculate_txid ( version : & [ u8 ; 4 ] , vin : & Vin , vout : & Vout , locktime : & [ u8 ; 4 ] , ) -> Hash256Digest { btcspv :: hash256 ( & [ version , vin . as_ref ( ) , vout . as_ref ( ) , locktime ] ) }
Hashes transaction to get txid.
Hashes transaction to get txid .
version
&[u8; 4]
vin
&Vin
vout
&Vout
locktime
&[u8; 4]