Fray Engine
Loading...
Searching...
No Matches
uid.hpp File Reference
#include <algorithm>
#include <array>
#include <cstdint>
#include <string>
#include <boost/uuid/uuid_generators.hpp>

Go to the source code of this file.

Namespaces

namespace  fray
namespace  fray::identity

Typedefs

using fray::identity::Uid = std::array<std::uint8_t, 16>
 A 128-bit identifier shared by routing and stored entries.

Functions

Uid fray::identity::generate ()
 Generates a random, globally unique identifier.
std::string fray::identity::hex (const Uid &uid)
 Formats a routing UID as lowercase hexadecimal.
bool fray::identity::valid (const std::string &uid)
 Validates the canonical text form of an assigned UID.