mirror of
https://github.com/wownero/wownero-ng.git
synced 2026-10-18 08:01:29 +02:00
ringct: add convenience operators to key
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user