mirror of
https://github.com/monero-project/monero.git
synced 2024-12-26 00:49:24 -05:00
Merge pull request #9556
c7dce22
ringct: add operator!= for key (jeffro256)
This commit is contained in:
commit
7f4ae309f4
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user