hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
sha3_256.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_SHARED_MODEL_SHA3_256_HPP
7 #define IROHA_SHARED_MODEL_SHA3_256_HPP
8 
9 #include "crypto/hash_types.hpp"
11 #include "cryptography/hash.hpp"
12 
13 namespace shared_model {
14  namespace crypto {
15  class Sha3_256 {
16  public:
17  static Hash makeHash(const Blob &blob) {
18  return Hash(iroha::sha3_256(blob.blob()).to_string());
19  }
20  };
21  } // namespace crypto
22 } // namespace shared_model
23 
24 #endif // IROHA_SHARED_MODEL_SHA3_256_HPP
Definition: hash.hpp:18
std::string to_string(const Collection &collection, Lambda transform)
Definition: logger.hpp:78
Definition: sha3_256.hpp:15
Definition: blob.hpp:24
void sha3_256(uint8_t *output, const uint8_t *input, size_t in_size)
Definition: sha3_hash.cpp:13
static Hash makeHash(const Blob &blob)
Definition: sha3_256.hpp:17
virtual const Bytes & blob() const
Definition: blob.cpp:41
Definition: command_executor.hpp:12