Added IDENTITY_HASH_SIZE constant.

This commit is contained in:
Chad Fraleigh 2023-07-05 15:30:02 -07:00
parent 9ae8c1869a
commit cbec85a21b
No known key found for this signature in database
GPG key ID: 2415C39758458A8F

View file

@ -22,7 +22,9 @@ namespace i2p
{ {
namespace data namespace data
{ {
typedef Tag<32> IdentHash; const uint8_t IDENTITY_HASH_SIZE = 32;
typedef Tag<IDENTITY_HASH_SIZE> IdentHash;
inline std::string GetIdentHashAbbreviation (const IdentHash& ident) inline std::string GetIdentHashAbbreviation (const IdentHash& ident)
{ {
return ident.ToBase64 ().substr (0, 4); return ident.ToBase64 ().substr (0, 4);