SOLA
Loading...
Searching...
No Matches
uuid.h
1// Copyright The SOLA Contributors
2//
3// Licensed under the MIT License.
4// For details on the licensing terms, see the LICENSE file.
5// SPDX-License-Identifier: MIT
6
7#ifndef SOLANET_UUID_H_
8#define SOLANET_UUID_H_
9
10#include <array>
11#include <cstdint>
12#include <string>
13
14namespace solanet {
15
16namespace detail {
17static constexpr uint32_t kUuidByteLength = 16; // 16 byte = 128 bit
18}
19
20using UUID = std::array<uint8_t, detail::kUuidByteLength>;
21
23std::string uuidToString(UUID uuid);
24} // namespace solanet
25
26#endif // SOLANET_UUID_H_