From 1b867e7f4087378a04a0b94d720d3bed8505e245 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Thu, 24 May 2018 20:14:09 +0100 Subject: precalc the ge_p3 representation of H --- tests/unit_tests/ringct.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests/unit_tests/ringct.cpp') 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; -- cgit v1.2.3