6 #ifndef IROHA_TRANSACTION_BATCH_HELPERS_HPP 7 #define IROHA_TRANSACTION_BATCH_HELPERS_HPP 28 template <
typename Collection>
30 const Collection &reduced_hashes) {
31 std::stringstream concatenated_hash;
32 for (
const auto &
hash : reduced_hashes) {
33 concatenated_hash <<
hash.hex();
41 #endif // IROHA_TRANSACTION_BATCH_HELPERS_HPP
hash256_t hash(const T &pb)
Definition: pb_common.hpp:43
Definition: command_executor.hpp:13
Definition: transaction_batch_helpers.hpp:19
static Hash fromHexString(const std::string &hex)
Definition: hash.cpp:22
static types::HashType calculateReducedBatchHash(const Collection &reduced_hashes)
Definition: transaction_batch_helpers.hpp:29