Zeth - Zerocash on Ethereum  0.8
Reference implementation of the Zeth protocol by Clearmatics
Namespaces | Functions
utils.cpp File Reference
#include "libzeth/core/utils.hpp"
#include <cassert>
#include <stdexcept>
Include dependency graph for utils.cpp:

Go to the source code of this file.

Namespaces

 libzeth
 

Functions

uint8_t libzeth::char_to_nibble (const char c)
 
void libzeth::hex_to_bytes (const std::string &hex, void *dest, size_t bytes)
 Convert hex to bytes (first chars at lowest address) More...
 
void libzeth::hex_to_bytes_reversed (const std::string &hex, void *dest, size_t bytes)
 
std::string libzeth::hex_to_bytes (const std::string &s)
 Decode hexadecimal string to an std::string of bytes. More...
 
std::string libzeth::bytes_to_hex (const void *bytes, size_t num_bytes, bool prefix)
 
std::string libzeth::bytes_to_hex_reversed (const void *bytes, size_t num_bytes, bool prefix)