Skip to content

Commit

Permalink
Merge pull request #9556
Browse files Browse the repository at this point in the history
c7dce22 ringct: add operator!= for key (jeffro256)
  • Loading branch information
luigi1111 committed Dec 23, 2024
2 parents 0495baa + c7dce22 commit 7f4ae30
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ringct/rctTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7f4ae30

Please sign in to comment.