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 /tests/unit_tests/ringct.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 'tests/unit_tests/ringct.cpp')
-rw-r--r-- | tests/unit_tests/ringct.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/unit_tests/ringct.cpp b/tests/unit_tests/ringct.cpp index d4e942176..360529b9e 100644 --- a/tests/unit_tests/ringct.cpp +++ b/tests/unit_tests/ringct.cpp @@ -1086,6 +1086,13 @@ TEST(ringct, zeroCommmit) ASSERT_EQ(z, manual); } +TEST(ringct, H) +{ + ge_p3 p3; + ASSERT_EQ(ge_frombytes_vartime(&p3, rct::H.bytes), 0); + ASSERT_EQ(memcmp(&p3, &ge_p3_H, sizeof(ge_p3)), 0); +} + TEST(ringct, aggregated) { static const size_t N_PROOFS = 16; |