mirror of https://github.com/oxen-io/oxen-core.git
add not-equal operator to rct::key
This commit is contained in:
parent
827cb3fe6c
commit
eaf29ac687
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue