diff options
author | Riccardo Spagni <ric@spagni.net> | 2015-08-10 20:02:36 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2015-08-10 20:02:38 +0200 |
commit | ef15e909f5f935e84d5e4c867b99a6bee59db63f (patch) | |
tree | 6199ee504482abac3b764c4018b614a8339c8de7 /src/crypto/hash.h | |
parent | Merge pull request #359 (diff) | |
parent | encrypted payment ids are now 64 bit, instead of 256 bit (diff) | |
download | monero-ef15e909f5f935e84d5e4c867b99a6bee59db63f.tar.xz |
Merge pull request #361
a2d7a5f encrypted payment ids are now 64 bit, instead of 256 bit (moneromooo-monero)
e40cfc4 Encrypted payment IDs (moneromooo-monero)
Diffstat (limited to 'src/crypto/hash.h')
-rw-r--r-- | src/crypto/hash.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/crypto/hash.h b/src/crypto/hash.h index 2f91a5358..1ce2f9816 100644 --- a/src/crypto/hash.h +++ b/src/crypto/hash.h @@ -45,9 +45,13 @@ namespace crypto { POD_CLASS hash { char data[HASH_SIZE]; }; + POD_CLASS hash8 { + char data[8]; + }; #pragma pack(pop) static_assert(sizeof(hash) == HASH_SIZE, "Invalid structure size"); + static_assert(sizeof(hash8) == 8, "Invalid structure size"); /* Cryptonight hash functions @@ -74,3 +78,4 @@ namespace crypto { } CRYPTO_MAKE_HASHABLE(hash) +CRYPTO_MAKE_COMPARABLE(hash8) |