OpenCBDC Transaction Processor
Loading...
Searching...
No Matches
hash.cpp File Reference
#include "hash.hpp"
#include "crypto/sha256.h"
#include <cstring>
#include <iomanip>
#include <vector>
Include dependency graph for util/common/hash.cpp:

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.