PIVX Core  5.6.99
P2P Digital Currency
Public Member Functions | Private Member Functions | Private Attributes | List of all members
CBLSWorkerCache Class Reference

#include <bls_worker.h>

Collaboration diagram for CBLSWorkerCache:
[legend]

Public Member Functions

 CBLSWorkerCache (CBLSWorker &_worker)
 
BLSVerificationVectorPtr BuildQuorumVerificationVector (const uint256 &cacheKey, const std::vector< BLSVerificationVectorPtr > &vvecs)
 
CBLSSecretKey AggregateSecretKeys (const uint256 &cacheKey, const BLSSecretKeyVector &skShares)
 
CBLSPublicKey BuildPubKeyShare (const uint256 &cacheKey, const BLSVerificationVectorPtr &vvec, const CBLSId &id)
 

Private Member Functions

template<typename T , typename Builder >
T GetOrBuild (const uint256 &cacheKey, std::map< uint256, std::shared_future< T > > &cache, Builder &&builder)
 

Private Attributes

CBLSWorkerworker
 
std::mutex cacheCs
 
std::map< uint256, std::shared_future< BLSVerificationVectorPtr > > vvecCache
 
std::map< uint256, std::shared_future< CBLSSecretKey > > secretKeyShareCache
 
std::map< uint256, std::shared_future< CBLSPublicKey > > publicKeyShareCache
 

Detailed Description

Definition at line 148 of file bls_worker.h.

Constructor & Destructor Documentation

◆ CBLSWorkerCache()

CBLSWorkerCache::CBLSWorkerCache ( CBLSWorker _worker)
inlineexplicit

Definition at line 159 of file bls_worker.h.

Member Function Documentation

◆ AggregateSecretKeys()

CBLSSecretKey CBLSWorkerCache::AggregateSecretKeys ( const uint256 cacheKey,
const BLSSecretKeyVector skShares 
)
inline

Definition at line 168 of file bls_worker.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ BuildPubKeyShare()

CBLSPublicKey CBLSWorkerCache::BuildPubKeyShare ( const uint256 cacheKey,
const BLSVerificationVectorPtr vvec,
const CBLSId id 
)
inline

Definition at line 174 of file bls_worker.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ BuildQuorumVerificationVector()

BLSVerificationVectorPtr CBLSWorkerCache::BuildQuorumVerificationVector ( const uint256 cacheKey,
const std::vector< BLSVerificationVectorPtr > &  vvecs 
)
inline

Definition at line 162 of file bls_worker.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetOrBuild()

template<typename T , typename Builder >
T CBLSWorkerCache::GetOrBuild ( const uint256 cacheKey,
std::map< uint256, std::shared_future< T > > &  cache,
Builder &&  builder 
)
inlineprivate

Definition at line 183 of file bls_worker.h.

Here is the caller graph for this function:

Member Data Documentation

◆ cacheCs

std::mutex CBLSWorkerCache::cacheCs
private

Definition at line 153 of file bls_worker.h.

◆ publicKeyShareCache

std::map<uint256, std::shared_future<CBLSPublicKey> > CBLSWorkerCache::publicKeyShareCache
private

Definition at line 156 of file bls_worker.h.

◆ secretKeyShareCache

std::map<uint256, std::shared_future<CBLSSecretKey> > CBLSWorkerCache::secretKeyShareCache
private

Definition at line 155 of file bls_worker.h.

◆ vvecCache

std::map<uint256, std::shared_future<BLSVerificationVectorPtr> > CBLSWorkerCache::vvecCache
private

Definition at line 154 of file bls_worker.h.

◆ worker

CBLSWorker& CBLSWorkerCache::worker
private

Definition at line 151 of file bls_worker.h.


The documentation for this class was generated from the following file: