6 #ifndef PIVX_LLMQ_QUORUMS_DKGSESSIONMGR_H
7 #define PIVX_LLMQ_QUORUMS_DKGSESSIONMGR_H
11 #include "validation.h"
std::shared_ptr< BLSVerificationVector > BLSVerificationVectorPtr
std::vector< CBLSSecretKey > BLSSecretKeyVector
The block chain is a tree shaped structure starting with the genesis block at the root,...
Information about a peer.
bool AlreadyHave(const CInv &inv) const
bool GetVerifiedContribution(Consensus::LLMQType llmqType, const CBlockIndex *pindexQuorum, const uint256 &proTxHash, BLSVerificationVectorPtr &vvecRet, CBLSSecretKey &skContributionRet)
std::map< ContributionsCacheKey, ContributionsCacheEntry > contributionsCache
RecursiveMutex contributionsCacheCs
std::map< Consensus::LLMQType, CDKGSessionHandler > dkgSessionHandlers
static const int64_t MAX_CONTRIBUTION_CACHE_TIME
bool GetJustification(const uint256 &hash, CDKGJustification &ret) const
bool GetPrematureCommitment(const uint256 &hash, CDKGPrematureCommitment &ret) const
CDKGSessionManager(CDBWrapper &_evoDb, CBLSWorker &_blsWorker)
bool GetContribution(const uint256 &hash, CDKGContribution &ret) const
void WriteVerifiedSkContribution(Consensus::LLMQType llmqType, const CBlockIndex *pindexQuorum, const uint256 &proTxHash, const CBLSSecretKey &skContribution)
void WriteVerifiedVvecContribution(Consensus::LLMQType llmqType, const CBlockIndex *pindexQuorum, const uint256 &proTxHash, const BLSVerificationVectorPtr &vvec)
void UpdatedBlockTip(const CBlockIndex *pindexNew, bool fInitialDownload)
bool ProcessMessage(CNode *pfrom, const std::string &strCommand, CDataStream &vRecv)
bool GetVerifiedContributions(Consensus::LLMQType llmqType, const CBlockIndex *pindexQuorum, const std::vector< bool > &validMembers, std::vector< uint16_t > &memberIndexesRet, std::vector< BLSVerificationVectorPtr > &vvecsRet, BLSSecretKeyVector &skContributionsRet)
bool GetComplaint(const uint256 &hash, CDKGComplaint &ret) const
std::unique_ptr< CDKGSessionManager > quorumDKGSessionManager
CBLSSecretKey skContribution
BLSVerificationVectorPtr vvec
bool operator<(const ContributionsCacheKey &r) const
Consensus::LLMQType llmqType