pub async fn calculate_txn_hash(
    txn_serial: &TxnSerial
) -> Result<[u8; 32], Error>