Skip to content

Commit ec870e6

Browse files
committed
@jeffro256 comment
1 parent 99226e7 commit ec870e6

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

src/ringct/rctOps.cpp

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
// THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3030

3131
#include <boost/lexical_cast.hpp>
32+
#include "crypto/generators.h"
3233
#include "misc_log_ex.h"
3334
#include "rctOps.h"
3435
using namespace crypto;
@@ -243,21 +244,6 @@ const std::vector<ge_cached>& H_TABLE()
243244
return out.h_table;
244245
}
245246

246-
247-
const ge_p3& G_GE_P3()
248-
{
249-
struct static_g_ge_pe3
250-
{
251-
ge_p3 g_ge_p3;
252-
static_g_ge_pe3()
253-
{
254-
CHECK_AND_ASSERT_THROW_MES(ge_frombytes_vartime(&g_ge_p3, rct::G.bytes) == 0, "ge_frombytes_vartime failed for G");
255-
}
256-
};
257-
static const static_g_ge_pe3 out;
258-
return out.g_ge_p3;
259-
}
260-
261247
namespace rct {
262248

263249
//Various key initialization functions
@@ -369,7 +355,7 @@ namespace rct {
369355
{
370356
return it->commitment;
371357
}
372-
ge_p3 res_ge_p3 = G_GE_P3();
358+
ge_p3 res_ge_p3 = get_G_p3();
373359
static_assert(sizeof(xmr_amount) * 8 == H_TABLE_SIZE, "unexpected size of h table");
374360
for (size_t i = 0; i < H_TABLE_SIZE; ++i)
375361
{

0 commit comments

Comments
 (0)