ringct: add convenience operators to key

release-v0.4.0.1
moneromooo-monero 8 years ago
parent 2d6303fb2c
commit b656001030
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

@ -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

Loading…
Cancel
Save