OpenCBDC Transaction Processor
|
#include "hash.hpp"
#include "crypto/sha256.h"
#include <cstring>
#include <iomanip>
#include <vector>
Go to the source code of this file.
Namespaces | |
namespace | cbdc |
Functions | |
auto | cbdc::to_string (const hash_t &val) -> std::string |
Converts a hash to a hexadecimal string. | |
auto | cbdc::hash_from_hex (const std::string &val) -> hash_t |
Parses a hexadecimal representation of a hash. | |
auto | cbdc::hash_data (const std::byte *data, size_t len) -> hash_t |
Calculates the SHA256 hash of the specified data. | |