Electroneum
Loading...
Searching...
No Matches
test_range_proof< a_verify > Class Template Reference

#include <range_proof.h>

Public Member Functions

bool init ()
bool test ()

Static Public Attributes

static const size_t loop_count = 50
static const bool verify = a_verify

Detailed Description

template<bool a_verify>
class test_range_proof< a_verify >

Definition at line 36 of file range_proof.h.

Member Function Documentation

◆ init()

template<bool a_verify>
bool test_range_proof< a_verify >::init ( )
inline

Definition at line 42 of file range_proof.h.

43 {
45 sig = rct::proveRange(C, mask, 84932483243793);
46 return true;
47 }
rangeSig proveRange(key &C, key &mask, const etn_amount &amount)
Definition rctSigs.cpp:336
Here is the call graph for this function:

◆ test()

template<bool a_verify>
bool test_range_proof< a_verify >::test ( )
inline

Definition at line 49 of file range_proof.h.

50 {
51 bool ret = true;
53 if (verify)
54 ret = rct::verRange(C, sig);
55 else
56 rct::proveRange(C, mask, 84932483243793);
57 return ret;
58 }
static const bool verify
Definition range_proof.h:40
bool verRange(const key &C, const rangeSig &as)
Definition rctSigs.cpp:368
Here is the call graph for this function:

Member Data Documentation

◆ loop_count

template<bool a_verify>
const size_t test_range_proof< a_verify >::loop_count = 50
static

Definition at line 39 of file range_proof.h.

◆ verify

template<bool a_verify>
const bool test_range_proof< a_verify >::verify = a_verify
static

Definition at line 40 of file range_proof.h.


The documentation for this class was generated from the following file:
  • /home/abuild/rpmbuild/BUILD/electroneum-5.1.3.1-build/electroneum-5.1.3.1/tests/performance_tests/range_proof.h