From b656001030bb0eb383c4b095227c50c7193f80ee Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Sat, 14 May 2016 12:21:08 +0100 Subject: [PATCH] ringct: add convenience operators to key --- src/ringct/rctTypes.h | 4 ++++ 1 file changed, 4 insertions(+) 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