diff options
author | luigi1111 <luigi1111w@gmail.com> | 2020-05-02 15:14:41 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2020-05-02 15:14:41 -0500 |
commit | 8185054db7acc3e7c514ac55bceb0d82611a5b9a (patch) | |
tree | c2245ed862d9045433a60fda02d1e3049854194d /tests/unit_tests | |
parent | Merge pull request #6460 (diff) | |
parent | Bulletproofs: verification speedup (diff) | |
download | monero-8185054db7acc3e7c514ac55bceb0d82611a5b9a.tar.xz |
Merge pull request #6451
4ed60b6 Bulletproofs: verification speedup (SarangNoether)
Diffstat (limited to 'tests/unit_tests')
-rw-r--r-- | tests/unit_tests/ringct.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/unit_tests/ringct.cpp b/tests/unit_tests/ringct.cpp index 075aeac40..64fcbba4c 100644 --- a/tests/unit_tests/ringct.cpp +++ b/tests/unit_tests/ringct.cpp @@ -1077,8 +1077,16 @@ TEST(ringct, H) TEST(ringct, mul8) { + ge_p3 p3; + rct::key key; ASSERT_EQ(rct::scalarmult8(rct::identity()), rct::identity()); + rct::scalarmult8(p3,rct::identity()); + ge_p3_tobytes(key.bytes, &p3); + ASSERT_EQ(key, rct::identity()); ASSERT_EQ(rct::scalarmult8(rct::H), rct::scalarmultKey(rct::H, rct::EIGHT)); + rct::scalarmult8(p3,rct::H); + ge_p3_tobytes(key.bytes, &p3); + ASSERT_EQ(key, rct::scalarmultKey(rct::H, rct::EIGHT)); ASSERT_EQ(rct::scalarmultKey(rct::scalarmultKey(rct::H, rct::INV_EIGHT), rct::EIGHT), rct::H); } |