diff --git a/src/ringct/rctTypes.h b/src/ringct/rctTypes.h index f3e8cb98a..9cdcb800e 100644 --- a/src/ringct/rctTypes.h +++ b/src/ringct/rctTypes.h @@ -75,6 +75,10 @@ namespace rct { unsigned char & operator[](int i) { return bytes[i]; } + unsigned char operator[](int i) const { + return bytes[i]; + } + bool operator==(const key &k) const { return !memcmp(bytes, k.bytes, sizeof(bytes)); } unsigned char bytes[32]; }; typedef vector keyV; //vector of keys