Skip to content

Commit c7dce22

Browse files
jeffro256j-berman
andcommitted
ringct: add operator!= for key
Part of upstreaming Seraphis/Carrot Co-authored-by: j-berman <justinberman@protonmail.com>
1 parent 9866a0e commit c7dce22

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ringct/rctTypes.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ namespace rct {
8484
return bytes[i];
8585
}
8686
bool operator==(const key &k) const { return !crypto_verify_32(bytes, k.bytes); }
87+
bool operator!=(const key &k) const { return crypto_verify_32(bytes, k.bytes); }
8788
unsigned char bytes[32];
8889
};
8990
typedef std::vector<key> keyV; //vector of keys

0 commit comments

Comments
 (0)