Kagome
Polkadot Runtime Engine in C++17
sha256.hpp
Go to the documentation of this file.
1 
6 #ifndef KAGOME_SHA256_HPP
7 #define KAGOME_SHA256_HPP
8 
9 #include <string_view>
10 
11 #include <gsl/span>
12 #include "common/blob.hpp"
13 
14 namespace kagome::crypto {
20  common::Hash256 sha256(std::string_view input);
21 
27  common::Hash256 sha256(gsl::span<const uint8_t> input);
28 } // namespace kagome::crypto
29 
30 #endif // KAGOME_SHA256_HPP
Blob< 32 > Hash256
Definition: blob.hpp:230
common::Hash256 sha256(std::string_view input)
Definition: sha256.cpp:11