Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
bls_batchverifier.h
Go to the documentation of this file.
40 CBLSBatchVerifier(bool _secureVerification, bool _perMessageFallback, size_t _subBatchSize = 0) :
47 void PushMessage(const SourceId& sourceId, const MessageId& msgId, const uint256& msgHash, const CBLSSignature& sig, const CBLSPublicKey& pubKey)
123 // All Verify methods take ownership of the passed byMessageHash map and thus might modify the map. This is to avoid
135 bool VerifyBatchInsecure(const std::map<uint256, std::vector<MessageMapIterator>>& byMessageHash)
189 // The secure form of verification will only aggregate one message for the same message hash, even if multiple
void PushMessage(const SourceId &sourceId, const MessageId &msgId, const uint256 &msgHash, const CBLSSignature &sig, const CBLSPublicKey &pubKey)
Definition: bls_batchverifier.h:47
bool VerifyBatch(std::map< uint256, std::vector< MessageMapIterator >> &byMessageHash)
Definition: bls_batchverifier.h:126
bool VerifyBatchInsecure(const std::map< uint256, std::vector< MessageMapIterator >> &byMessageHash)
Definition: bls_batchverifier.h:135
bool VerifyInsecureAggregated(const std::vector< CBLSPublicKey > &pubKeys, const std::vector< uint256 > &hashes) const
Definition: bls.cpp:348
bool VerifyBatchSecure(std::map< uint256, std::vector< MessageMapIterator >> &byMessageHash)
Definition: bls_batchverifier.h:186
std::map< SourceId, std::vector< MessageMapIterator > > MessagesBySourceMap
Definition: bls_batchverifier.h:26
Definition: bls.h:263
Definition: bls.h:286
std::map< MessageId, Message > MessageMap
Definition: bls_batchverifier.h:24
size_t GetUniqueSourceCount() const
Definition: bls_batchverifier.h:66
MessagesBySourceMap messagesBySource
Definition: bls_batchverifier.h:33
bool VerifyBatchSecureStep(std::map< uint256, std::vector< MessageMapIterator >> &byMessageHash)
Definition: bls_batchverifier.h:200
Definition: bls_batchverifier.h:17
void AggregateInsecure(const CBLSPublicKey &o)
Definition: bls.cpp:191
void AggregateInsecure(const CBLSSignature &o)
Definition: bls.cpp:277
Definition: bls_batchverifier.h:14
CBLSBatchVerifier(bool _secureVerification, bool _perMessageFallback, size_t _subBatchSize=0)
Definition: bls_batchverifier.h:40
MessageMap::iterator MessageMapIterator
Definition: bls_batchverifier.h:25