3 #include <crypto/Sha256.h> 12 std::string toHex(std::vector<uint8_t>
const & v);
15 std::string toHex(uint8_t
const * v,
size_t length);
19 std::string toHex(std::array<uint8_t, N>
const & a)
21 return toHex(a.data(), a.size());
25 std::vector<uint8_t> fromHex(std::string
const & x);
28 std::vector<uint8_t> fromHex(
char const * x,
size_t length);
31 std::string toHexR(std::vector<uint8_t>
const & v);
34 std::string toHexR(uint8_t
const * v,
size_t length);
37 std::vector<uint8_t> fromHexR(std::string
const & x);
40 std::vector<uint8_t> fromHexR(
char const * x,
size_t length);
44 std::string toHexR(std::array<uint8_t, N>
const & a)
46 return toHexR(a.data(), a.size());
50 std::string shorten(std::string
const & in,
size_t size = 11);