text: #pragma once
  
  // Copyright 2014 fotono Development Foundation and contributors. Licensed
  // under the Apache License, Version 2.0. See the COPYING file at the root
  // of this distribution or at http://www.apache.org/licenses/LICENSE-2.0
  
  #include "crypto/ByteSlice.h"
  #include "xdr/fotono-types.h"
  
  namespace fotono
  {
  
  // Hex-encode a ByteSlice.
  std::string binToHex(ByteSlice const& bin);
  
  // Hex-encode a ByteSlice and return a 6-character prefix of it (for logging).
  std::string hexAbbrev(ByteSlice const& bin);
  
  // Hex-decode bytes from a hex string.
  std::vector<uint8_t> hexToBin(std::string const& hex);
  
  // Hex-decode exactly 32 bytes from a hex string, throw if not 32 bytes.
  uint256 hexToBin256(std::string const& encoded);
  }
  