Function calculate_tx_hash

pub fn calculate_tx_hash(tx_hex: &str) -> Result<String, WError>