Merge pull request #9556

c7dce22 ringct: add operator!= for key (jeffro256)
This commit is contained in:
luigi1111 2024-12-23 10:52:08 -05:00
commit 7f4ae309f4
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010

View File

@ -84,6 +84,7 @@ namespace rct {
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); }
unsigned char bytes[32];
};
typedef std::vector<key> keyV; //vector of keys