14using Byte = std::byte;
19enum class Byte : std::uint_least8_t {};
24[[maybe_unused]] std::ostream& operator<<(std::ostream& str, ipfs::Byte b) {
25 return str << std::hex << std::setw(2) << std::setfill(
'0')
26 <<
static_cast<unsigned>(b);
32[[maybe_unused]] std::uint8_t to_integer(ipfs::Byte b) {
33 return static_cast<std::uint8_t
>(b);
38inline bool operator==(Byte a, Byte b) {
39 return to_integer(a) == to_integer(b);