diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-05-14 12:21:08 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-08-28 21:27:24 +0100 |
commit | b656001030bb0eb383c4b095227c50c7193f80ee (patch) | |
tree | c8141d40d6d51e88ba49e7a49ca08650edba78c0 /src/ringct | |
parent | tests: add Shen Noether's basic ringct tests (diff) | |
download | monero-b656001030bb0eb383c4b095227c50c7193f80ee.tar.xz |
ringct: add convenience operators to key
Diffstat (limited to 'src/ringct')
-rw-r--r-- | src/ringct/rctTypes.h | 4 |
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 |