hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
sha3_512.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_SHARED_MODEL_SHA3_512_HPP
7 #define IROHA_SHARED_MODEL_SHA3_512_HPP
8 
9 #include "common/types.hpp"
11 
12 namespace shared_model {
13  namespace crypto {
14  class Sha3_512 {
15  public:
16  static Hash makeHash(const Blob &blob) {
17  return Hash(iroha::sha3_512(blob.blob()).to_string());
18  }
19  };
20  } // namespace crypto
21 } // namespace shared_model
22 #endif // IROHA_SHARED_MODEL_SHA3_512_HPP
Definition: hash.hpp:18
Definition: blob.hpp:25
void sha3_512(uint8_t *output, const uint8_t *input, size_t in_size)
Definition: sha3_hash.cpp:17
Definition: sha3_512.hpp:14
static Hash makeHash(const Blob &blob)
Definition: sha3_512.hpp:16
virtual const Bytes & blob() const
Definition: blob.cpp:41
Definition: command_executor.hpp:12