Electroneum
Loading...
Searching...
No Matches
test_bulletproof< a_verify, n_amounts > Class Template Reference

#include <bulletproof.h>

Public Member Functions

bool init ()
bool test ()

Static Public Attributes

static const size_t approx_loop_count = 100 / n_amounts
static const size_t loop_count = (approx_loop_count >= 10 ? approx_loop_count : 10) / (a_verify ? 1 : 5)
static const bool verify = a_verify

Detailed Description

template<bool a_verify, size_t n_amounts>
class test_bulletproof< a_verify, n_amounts >

Definition at line 37 of file bulletproof.h.

Member Function Documentation

◆ init()

template<bool a_verify, size_t n_amounts>
bool test_bulletproof< a_verify, n_amounts >::init ( )
inline

Definition at line 44 of file bulletproof.h.

45 {
47 return true;
48 }
Bulletproof bulletproof_PROVE(const rct::key &v, const rct::key &gamma)
Here is the call graph for this function:

◆ test()

template<bool a_verify, size_t n_amounts>
bool test_bulletproof< a_verify, n_amounts >::test ( )
inline

Definition at line 50 of file bulletproof.h.

51 {
52 bool ret = true;
53 if (verify)
55 else
57 return ret;
58 }
static const bool verify
Definition bulletproof.h:42
bool bulletproof_VERIFY(const Bulletproof &proof)
Here is the call graph for this function:

Member Data Documentation

◆ approx_loop_count

template<bool a_verify, size_t n_amounts>
const size_t test_bulletproof< a_verify, n_amounts >::approx_loop_count = 100 / n_amounts
static

Definition at line 40 of file bulletproof.h.

◆ loop_count

template<bool a_verify, size_t n_amounts>
const size_t test_bulletproof< a_verify, n_amounts >::loop_count = (approx_loop_count >= 10 ? approx_loop_count : 10) / (a_verify ? 1 : 5)
static

Definition at line 41 of file bulletproof.h.

◆ verify

template<bool a_verify, size_t n_amounts>
const bool test_bulletproof< a_verify, n_amounts >::verify = a_verify
static

Definition at line 42 of file bulletproof.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/bulletproof.h