Line data Source code
1 : /**
2 : * Copyright Soramitsu Co., Ltd. All Rights Reserved.
3 : * SPDX-License-Identifier: Apache-2.0
4 : */
5 :
6 : #ifndef IROHA_SHARED_MODEL_SHA3_256_HPP
7 : #define IROHA_SHARED_MODEL_SHA3_256_HPP
8 :
9 : #include "crypto/hash_types.hpp"
10 : #include "cryptography/ed25519_sha3_impl/internal/sha3_hash.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 38156 : return Hash(iroha::sha3_256(blob.blob()).to_string());
19 0 : }
20 : };
21 : } // namespace crypto
22 : } // namespace shared_model
23 :
24 : #endif // IROHA_SHARED_MODEL_SHA3_256_HPP
|