diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-05-24 20:14:09 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-09-11 13:37:42 +0000 |
commit | 1b867e7f4087378a04a0b94d720d3bed8505e245 (patch) | |
tree | 65bd4603578568d88972030614b369a93427cd78 /src/ringct/rctOps.cpp | |
parent | performance_tests: document the tested bulletproof layouts (diff) | |
download | monero-1b867e7f4087378a04a0b94d720d3bed8505e245.tar.xz |
precalc the ge_p3 representation of H
Diffstat (limited to 'src/ringct/rctOps.cpp')
-rw-r--r-- | src/ringct/rctOps.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/ringct/rctOps.cpp b/src/ringct/rctOps.cpp index 50693bad7..fe0ad8747 100644 --- a/src/ringct/rctOps.cpp +++ b/src/ringct/rctOps.cpp @@ -193,10 +193,8 @@ namespace rct { //Computes aH where H= toPoint(cn_fast_hash(G)), G the basepoint key scalarmultH(const key & a) { - ge_p3 A; ge_p2 R; - CHECK_AND_ASSERT_THROW_MES_L1(ge_frombytes_vartime(&A, H.bytes) == 0, "ge_frombytes_vartime failed at "+boost::lexical_cast<std::string>(__LINE__)); - ge_scalarmult(&R, a.bytes, &A); + ge_scalarmult(&R, a.bytes, &ge_p3_H); key aP; ge_tobytes(aP.bytes, &R); return aP; |