mirror of
https://github.com/monero-project/monero.git
synced 2025-01-08 03:49:31 +00:00
Merge pull request #9556
c7dce22
ringct: add operator!= for key (jeffro256)
This commit is contained in:
commit
7f4ae309f4
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue