Browse Source

Added IDENTITY_HASH_SIZE constant.

pull/1941/head
Chad Fraleigh 1 year ago
parent
commit
cbec85a21b
No known key found for this signature in database
GPG Key ID: 2415C39758458A8F
  1. 4
      libi2pd/Identity.h

4
libi2pd/Identity.h

@ -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);

Loading…
Cancel
Save