add not-equal operator to rct::key

This commit is contained in:
Thomas Winget 2022-04-26 12:28:38 -04:00
parent 827cb3fe6c
commit eaf29ac687
1 changed files with 2 additions and 1 deletions

View File

@ -79,7 +79,8 @@ namespace rct {
unsigned char operator[](int i) const {
return bytes[i];
}
bool operator==(const key &k) const { return !crypto_verify_32(bytes, k.bytes); }
bool operator==(const key& k) const { return !crypto_verify_32(bytes, k.bytes); }
bool operator!=(const key& k) const { return !operator==(k); }
unsigned char bytes[32];
};
typedef std::vector<key> keyV; //vector of keys