Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

bls_dkg.cpp File Reference
#include <bench/bench.h>
#include <random.h>
#include <bls/bls_worker.h>
+ Include dependency graph for bls_dkg.cpp:

Go to the source code of this file.

Classes

struct  Member
 
struct  DKG
 

Macros

#define BENCH_BuildQuorumVerificationVectors(name, quorumSize, parallel)
 
#define BENCH_VerifyContributionShares(name, quorumSize, invalidCount, parallel, aggregated)
 

Functions

void InitIfNeeded ()
 
void CleanupBLSDkgTests ()
 
 BENCH_BuildQuorumVerificationVectors (simple, 10, false) BENCH_BuildQuorumVerificationVectors(simple
 
false BENCH_BuildQuorumVerificationVectors (simple, 400, false) BENCH_BuildQuorumVerificationVectors(parallel
 
false true BENCH_BuildQuorumVerificationVectors (parallel, 100, true) BENCH_BuildQuorumVerificationVectors(parallel
 
 BENCH_VerifyContributionShares (simple, 10, 5, false, false) BENCH_VerifyContributionShares(simple
 
false BENCH_VerifyContributionShares (simple, 400, 5, false, false) BENCH_VerifyContributionShares(aggregated
 
false true BENCH_VerifyContributionShares (aggregated, 100, 5, false, true) BENCH_VerifyContributionShares(aggregated
 
false true true BENCH_VerifyContributionShares (parallel, 10, 5, true, false) BENCH_VerifyContributionShares(parallel
 
false true true false BENCH_VerifyContributionShares (parallel, 400, 5, true, false) BENCH_VerifyContributionShares(parallel_aggregated
 
false true true false true BENCH_VerifyContributionShares (parallel_aggregated, 100, 5, true, true) BENCH_VerifyContributionShares(parallel_aggregated
 

Variables

CBLSWorker blsWorker
 
std::shared_ptr< DKGdkg10
 
std::shared_ptr< DKGdkg100
 
std::shared_ptr< DKGdkg400
 
 false
 
false true true true
 

Macro Definition Documentation

◆ BENCH_BuildQuorumVerificationVectors

#define BENCH_BuildQuorumVerificationVectors (   name,
  quorumSize,
  parallel 
)
Value:
static void BLSDKG_BuildQuorumVerificationVectors_##name##_##quorumSize(benchmark::State& state) \
{ \
InitIfNeeded(); \
dkg##quorumSize->Bench_BuildQuorumVerificationVectors(state, parallel); \
} \
BENCHMARK(BLSDKG_BuildQuorumVerificationVectors_##name##_##quorumSize)
const char * name
Definition: rest.cpp:36
std::string _(const char *psz)
Translation function: Call Translate signal on UI interface, which returns a boost::optional result...
Definition: util.h:92

Definition at line 140 of file bls_dkg.cpp.

◆ BENCH_VerifyContributionShares

#define BENCH_VerifyContributionShares (   name,
  quorumSize,
  invalidCount,
  parallel,
  aggregated 
)
Value:
static void BLSDKG_VerifyContributionShares_##name##_##quorumSize(benchmark::State& state) \
{ \
InitIfNeeded(); \
dkg##quorumSize->Bench_VerifyContributionShares(state, invalidCount, parallel, aggregated); \
} \
BENCHMARK(BLSDKG_VerifyContributionShares_##name##_##quorumSize)
const char * name
Definition: rest.cpp:36
std::string _(const char *psz)
Translation function: Call Translate signal on UI interface, which returns a boost::optional result...
Definition: util.h:92

Definition at line 159 of file bls_dkg.cpp.

Function Documentation

◆ BENCH_BuildQuorumVerificationVectors() [1/3]

BENCH_BuildQuorumVerificationVectors ( simple  ,
10  ,
false   
)

◆ BENCH_BuildQuorumVerificationVectors() [2/3]

false BENCH_BuildQuorumVerificationVectors ( simple  ,
400  ,
false   
)

◆ BENCH_BuildQuorumVerificationVectors() [3/3]

false true BENCH_BuildQuorumVerificationVectors ( parallel  ,
100  ,
true   
)

◆ BENCH_VerifyContributionShares() [1/6]

BENCH_VerifyContributionShares ( simple  ,
10  ,
,
false  ,
false   
)

◆ BENCH_VerifyContributionShares() [2/6]

false BENCH_VerifyContributionShares ( simple  ,
400  ,
,
false  ,
false   
)

◆ BENCH_VerifyContributionShares() [3/6]

false true BENCH_VerifyContributionShares ( aggregated  ,
100  ,
,
false  ,
true   
)

◆ BENCH_VerifyContributionShares() [4/6]

false true true BENCH_VerifyContributionShares ( parallel  ,
10  ,
,
true  ,
false   
)

◆ BENCH_VerifyContributionShares() [5/6]

false true true false BENCH_VerifyContributionShares ( parallel  ,
400  ,
,
true  ,
false   
)

◆ BENCH_VerifyContributionShares() [6/6]

false true true false true BENCH_VerifyContributionShares ( parallel_aggregated  ,
100  ,
,
true  ,
true   
)

◆ CleanupBLSDkgTests()

void CleanupBLSDkgTests ( )

Definition at line 131 of file bls_dkg.cpp.

References dkg10, dkg100, and dkg400.

Referenced by main().

◆ InitIfNeeded()

void InitIfNeeded ( )

Definition at line 118 of file bls_dkg.cpp.

References dkg10, dkg100, and dkg400.

Variable Documentation

◆ blsWorker

◆ dkg10

std::shared_ptr<DKG> dkg10

Definition at line 114 of file bls_dkg.cpp.

Referenced by CleanupBLSDkgTests(), and InitIfNeeded().

◆ dkg100

std::shared_ptr<DKG> dkg100

Definition at line 115 of file bls_dkg.cpp.

Referenced by CleanupBLSDkgTests(), and InitIfNeeded().

◆ dkg400

std::shared_ptr<DKG> dkg400

Definition at line 116 of file bls_dkg.cpp.

Referenced by CleanupBLSDkgTests(), and InitIfNeeded().

◆ false

false true false

Definition at line 168 of file bls_dkg.cpp.

Referenced by WalletInit::InitPrivateSendSettings().

◆ true

false true true false true true

Definition at line 176 of file bls_dkg.cpp.

Released under the MIT license