ringct: add a version of addKeys which returns the result

This commit is contained in:
moneromooo-monero
2017-11-21 14:13:20 +00:00
parent 7ff07928ad
commit d43eef6def
2 changed files with 6 additions and 0 deletions

View File

@@ -220,6 +220,11 @@ namespace rct {
ge_p3_tobytes(AB.bytes, &A2);
}
rct::key addKeys(const key &A, const key &B) {
key k;
addKeys(k, A, B);
return k;
}
//addKeys1
//aGB = aG + B where a is a scalar, G is the basepoint, and B is a point