From cbec85a21bfe0201fcc7a149827cf4aacf7e7435 Mon Sep 17 00:00:00 2001 From: Chad Fraleigh Date: Wed, 5 Jul 2023 15:30:02 -0700 Subject: [PATCH] Added IDENTITY_HASH_SIZE constant. --- libi2pd/Identity.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libi2pd/Identity.h b/libi2pd/Identity.h index 97d596d8..46f53ec2 100644 --- a/libi2pd/Identity.h +++ b/libi2pd/Identity.h @@ -22,7 +22,9 @@ namespace i2p { namespace data { - typedef Tag<32> IdentHash; + const uint8_t IDENTITY_HASH_SIZE = 32; + + typedef Tag IdentHash; inline std::string GetIdentHashAbbreviation (const IdentHash& ident) { return ident.ToBase64 ().substr (0, 4);