ringct: add operator!= for key

Part of upstreaming Seraphis/Carrot

Co-authored-by: j-berman <justinberman@protonmail.com>
This commit is contained in:
jeffro256 2024-11-06 02:59:57 -06:00
parent 9866a0e902
commit c7dce222f8
No known key found for this signature in database
GPG Key ID: 6F79797A6E392442

View File

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