YPC  0.2.0
crypto_prefix.h
1 #pragma once
2 #include <cstdint>
3 
4 namespace ypc {
5 namespace utc {
6 typedef uint32_t crypto_prefix_t;
7 
8 constexpr static uint32_t crypto_prefix_length = sizeof(uint32_t);
9 
10 constexpr static crypto_prefix_t crypto_prefix_forward = 0x1;
11 constexpr static crypto_prefix_t crypto_prefix_arbitrary = 0x2;
12 constexpr static crypto_prefix_t crypto_prefix_backup = 0x4;
13 constexpr static crypto_prefix_t crypto_prefix_host_data = 0x6;
14 constexpr static crypto_prefix_t crypto_prefix_host_data_private_key = 0x8;
15 
16 } // namespace utc
17 } // namespace ypc