From c7dce222f8f8581ca302bef81c97a447766aa2bd Mon Sep 17 00:00:00 2001 From: jeffro256 Date: Wed, 6 Nov 2024 02:59:57 -0600 Subject: [PATCH] ringct: add operator!= for `key` Part of upstreaming Seraphis/Carrot Co-authored-by: j-berman --- src/ringct/rctTypes.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ringct/rctTypes.h b/src/ringct/rctTypes.h index 247f25fff..20b952c5e 100644 --- a/src/ringct/rctTypes.h +++ b/src/ringct/rctTypes.h @@ -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 keyV; //vector of keys