mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
ringct: add convenience operators to key
This commit is contained in:
parent
2d6303fb2c
commit
b656001030
1 changed files with 4 additions and 0 deletions
|
@ -75,6 +75,10 @@ namespace rct {
|
||||||
unsigned char & operator[](int i) {
|
unsigned char & operator[](int i) {
|
||||||
return bytes[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];
|
unsigned char bytes[32];
|
||||||
};
|
};
|
||||||
typedef vector<key> keyV; //vector of keys
|
typedef vector<key> keyV; //vector of keys
|
||||||
|
|
Loading…
Reference in a new issue