diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-11-21 14:13:20 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-12-07 19:23:08 +0000 |
commit | d43eef6def9b1ae06c2f9f12eb5a141cfc22f7c8 (patch) | |
tree | c43ae75cb8047aa8e508bc53d83a6c4c19f630c0 /src/ringct/rctOps.cpp | |
parent | sc_mul and sc_muladd (diff) | |
download | monero-d43eef6def9b1ae06c2f9f12eb5a141cfc22f7c8.tar.xz |
ringct: add a version of addKeys which returns the result
Diffstat (limited to 'src/ringct/rctOps.cpp')
-rw-r--r-- | src/ringct/rctOps.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ringct/rctOps.cpp b/src/ringct/rctOps.cpp index d0e0964b6..292bb8f37 100644 --- a/src/ringct/rctOps.cpp +++ b/src/ringct/rctOps.cpp @@ -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 |