Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
bb::utils Namespace Reference

Functions

std::vector< uint8_t > hex_to_bytes (const std::string &hex)
 Routine to transform hexstring to vector of bytes.
 
template<typename... Ts>
size_t hash_as_tuple (const Ts &... ts)
 

Function Documentation

◆ hash_as_tuple()

template<typename... Ts>
size_t bb::utils::hash_as_tuple ( const Ts &...  ts)

Hashes a tuple of hasheable types. Intended to be used with C++ maps/sets, not for cryptographic purposes.

Definition at line 22 of file utils.hpp.

◆ hex_to_bytes()

std::vector< uint8_t > bb::utils::hex_to_bytes ( const std::string &  hex)

Routine to transform hexstring to vector of bytes.

Parameters
Hexadecimalstring representation.
Returns
Vector of uint8_t values.

Definition at line 5 of file utils.cpp.