mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-10 19:38:28 +01:00
Added IDENTITY_HASH_SIZE constant.
This commit is contained in:
parent
9ae8c1869a
commit
cbec85a21b
1 changed files with 3 additions and 1 deletions
|
@ -22,7 +22,9 @@ namespace i2p
|
|||
{
|
||||
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)
|
||||
{
|
||||
return ident.ToBase64 ().substr (0, 4);
|
||||
|
|
Loading…
Add table
Reference in a new issue