aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-05-14 12:21:08 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-08-28 21:27:24 +0100
commitb656001030bb0eb383c4b095227c50c7193f80ee (patch)
treec8141d40d6d51e88ba49e7a49ca08650edba78c0
parenttests: add Shen Noether's basic ringct tests (diff)
downloadmonero-b656001030bb0eb383c4b095227c50c7193f80ee.tar.xz
ringct: add convenience operators to key
-rw-r--r--src/ringct/rctTypes.h4
1 files changed, 4 insertions, 0 deletions
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<key> keyV; //vector of keys