Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
Template base class for fixed-sized opaque blobs. More...
#include <uint256.h>
Public Member Functions | |
base_blob () | |
base_blob (const std::vector< unsigned char > &vch) | |
bool | IsNull () const |
void | SetNull () |
int | Compare (const base_blob &other) const |
std::string | GetHex () const |
void | SetHex (const char *psz) |
void | SetHex (const std::string &str) |
std::string | ToString () const |
unsigned char * | begin () |
unsigned char * | end () |
const unsigned char * | begin () const |
const unsigned char * | end () const |
unsigned int | size () const |
uint64_t | GetUint64 (int pos) const |
template<typename Stream > | |
void | Serialize (Stream &s) const |
template<typename Stream > | |
void | Unserialize (Stream &s) |
Protected Attributes | |
uint8_t | data [WIDTH] |
Static Protected Attributes | |
static constexpr int | WIDTH = BITS / 8 |
Friends | |
bool | operator== (const base_blob &a, const base_blob &b) |
bool | operator!= (const base_blob &a, const base_blob &b) |
bool | operator< (const base_blob &a, const base_blob &b) |
Detailed Description
template<unsigned int BITS>
class base_blob< BITS >
Template base class for fixed-sized opaque blobs.
Constructor & Destructor Documentation
◆ base_blob() [1/2]
◆ base_blob() [2/2]
|
explicit |
Definition at line 14 of file uint256.cpp.
Member Function Documentation
◆ begin() [1/2]
|
inline |
Definition at line 57 of file uint256.h.
Referenced by CWallet::AbandonTransaction(), CBLSSignature::AggregateSecure(), ArithToUint256(), BIP32Hash(), BOOST_AUTO_TEST_CASE(), CDeterministicMNList::CalculateScores(), CheckInputs(), CBloomFilter::contains(), CRollingBloomFilter::contains(), CExtKey::Decode(), CExtPubKey::Decode(), CBLSIESMultiRecipientBlobs::Decrypt(), CKey::Derive(), CPubKey::Derive(), CExtKey::Encode(), CExtPubKey::Encode(), FastRandomContext::FastRandomContext(), CBlockHeaderAndShortTxIDs::FillShortTxIDSelector(), CNetMessage::GetMessageHash(), HASH_SipHash_0032b(), CBLSIESMultiRecipientBlobs::InitEncrypt(), CBloomFilter::insert(), CRollingBloomFilter::insert(), CBLSId::InternalGetBuf(), CBLSId::InternalSetBuf(), CWallet::IsFullyMixed(), CWallet::MarkConflicted(), CZMQPublishHashBlockNotifier::NotifyBlock(), CZMQPublishHashChainLockNotifier::NotifyChainLock(), CZMQPublishHashGovernanceObjectNotifier::NotifyGovernanceObject(), CZMQPublishHashGovernanceVoteNotifier::NotifyGovernanceVote(), CZMQPublishHashInstantSendDoubleSpendNotifier::NotifyInstantSendDoubleSpendAttempt(), CZMQPublishHashTransactionNotifier::NotifyTransaction(), CZMQPublishHashTransactionLockNotifier::NotifyTransactionLock(), SignatureCacheHasher::operator()(), PeerLogicValidation::ProcessMessages(), CBLSPublicKey::PublicKeyShare(), CConnman::PushMessage(), FastRandomContext::rand256(), FastRandomContext::RandomSeed(), CPubKey::RecoverCompact(), CGovernanceManager::RequestGovernanceObjectVotes(), CBLSSecretKey::SecretKeyShare(), llmq::CDKGSession::SendCommitment(), CExtKey::SetMaster(), CKey::Sign(), CBLSSecretKey::Sign(), CKey::SignCompact(), UintToArith256(), CDeterministicMNState::UpdateConfirmedHash(), CPubKey::Verify(), CBLSSignature::VerifyInsecure(), CKey::VerifyPubKey(), CBLSSignature::VerifySecureAggregated(), and while().
◆ begin() [2/2]
|
inline |
◆ Compare()
◆ end() [1/2]
|
inline |
Definition at line 62 of file uint256.h.
Referenced by BOOST_AUTO_TEST_CASE(), CBloomFilter::contains(), CRollingBloomFilter::contains(), CBloomFilter::insert(), CRollingBloomFilter::insert(), and CompareInputBIP69::operator()().
◆ end() [2/2]
|
inline |
◆ GetHex()
std::string base_blob< BITS >::GetHex | ( | ) | const |
Definition at line 21 of file uint256.cpp.
Referenced by CGovernanceTriggerManager::AddNewTrigger(), CWallet::AddToWallet(), AppInitParameterInteraction(), blockheaderToJSON(), BlockNotifyCallback(), blockToJSON(), getbestblockhash(), getbestchainlock(), getblockchaininfo(), getblockhash(), getblockstats(), getblocktemplate(), getchaintips(), base_uint< 256 >::GetHex(), getspentinfo(), gettxout(), gettxoutsetinfo(), getwalletinfo(), TransactionNotification::invoke(), ListReceived(), listsinceblock(), CZMQPublishHashBlockNotifier::NotifyBlock(), CZMQPublishRawBlockNotifier::NotifyBlock(), CZMQPublishHashChainLockNotifier::NotifyChainLock(), CZMQPublishRawChainLockNotifier::NotifyChainLock(), CZMQPublishRawChainLockSigNotifier::NotifyChainLock(), CZMQPublishHashGovernanceObjectNotifier::NotifyGovernanceObject(), CZMQPublishHashGovernanceVoteNotifier::NotifyGovernanceVote(), CZMQPublishHashTransactionNotifier::NotifyTransaction(), CZMQPublishRawTransactionNotifier::NotifyTransaction(), CZMQPublishHashTransactionLockNotifier::NotifyTransactionLock(), CZMQPublishRawTransactionLockNotifier::NotifyTransactionLock(), CZMQPublishRawTransactionLockSigNotifier::NotifyTransactionLock(), CWallet::NotifyTransactionLock(), OutputTxHash(), rest_getutxos(), sendfrom(), sendmany(), sendrawtransaction(), sendtoaddress(), TxToJSON(), TxToUniv(), CoinControlDialog::updateView(), validateaddress(), waitforblock(), waitforblockheight(), waitfornewblock(), and WalletTxToJSON().
◆ GetUint64()
|
inline |
Definition at line 82 of file uint256.h.
Referenced by llmq::CLLMQUtils::CalcDeterministicWatchConnections(), CBlockHeaderAndShortTxIDs::FillShortTxIDSelector(), SipHashUint256(), and SipHashUint256Extra().
◆ IsNull()
|
inline |
Definition at line 33 of file uint256.h.
Referenced by CWallet::AddToWallet(), CTxMemPool::addUnchecked(), AppInitMain(), AppInitParameterInteraction(), llmq::CDKGSession::AreWeMember(), llmq::CSigningManager::AsyncSignIfMember(), CCoinsViewDB::BatchWrite(), CWallet::BlockConnected(), CDeterministicMNManager::BuildNewListFromBlock(), BuildSimplifiedMNListDiff(), CheckBlockHeader(), CheckProRegTx(), CheckProUpRegTx(), llmq::CChainLocksHandler::Cleanup(), CChainState::ConnectBlock(), CTxMemPool::existsProviderTxConflict(), CCoinsViewCache::GetBestBlock(), llmq::CRecoveredSig::GetHash(), CBLSLazyWrapper< CBLSSignature >::GetHash(), llmq::CInstantSendDb::GetInstantSendLockByInput(), llmq::CInstantSendDb::GetInstantSendLockByTxid(), llmq::CInstantSendDb::GetInstantSendLockHashByTxid(), llmq::CInstantSendManager::GetInstantSendLockHashByTxid(), CNetMessage::GetMessageHash(), llmq::CQuorumBlockProcessor::GetMinableCommitment(), gettxoutproof(), llmq::CInstantSendManager::HandleNewRecoveredSig(), CMerkleTx::hashUnset(), llmq::CDKGSession::Init(), CWallet::InitPrivateSendSalt(), CChainState::InsertBlockIndex(), llmq::CQuorumBlockProcessor::IsCommitmentRequired(), CConnman::IsMasternodeQuorumNode(), COutPoint::IsNull(), llmq::CFinalCommitment::IsNull(), CSpentIndexValue::IsNull(), CDeterministicMNManager::IsProTxWithCollateral(), CMNAuth::NotifyMasternodeListChanged(), llmq::CInstantSendManager::PreVerifyInstantSendLock(), llmq::CQuorumBlockProcessor::ProcessCommitment(), ProcessHeadersMessage(), llmq::CInstantSendManager::ProcessInstantSendLock(), CMNAuth::ProcessMessage(), llmq::CSigSharesManager::ProcessMessage(), llmq::CSigSharesManager::ProcessMessageSigSesAnn(), llmq::CInstantSendManager::ProcessNewTransaction(), llmq::CInstantSendManager::ProcessTx(), CMNAuth::PushMNAUTH(), quorum_dkgstatus(), ReadKeyValue(), llmq::CDKGSession::RelayInvToParticipants(), CTxMemPool::removeProTxConflicts(), PeerLogicValidation::SendMessages(), CConnman::ThreadOpenMasternodeConnections(), llmq::CDKGDebugSessionStatus::ToJson(), TxToJSON(), TxToUniv(), llmq::CFinalCommitment::Verify(), llmq::CDKGSession::VerifyConnectionAndMinProtoVersions(), and llmq::CDKGSessionHandler::WaitForNextPhase().
◆ Serialize()
|
inline |
Definition at line 96 of file uint256.h.
Referenced by CTimestampIndexKey::Serialize(), CAddressUnspentKey::Serialize(), CAddressIndexKey::Serialize(), CAddressIndexIteratorKey::Serialize(), and CAddressIndexIteratorHeightKey::Serialize().
◆ SetHex() [1/2]
void base_blob< BITS >::SetHex | ( | const char * | psz | ) |
Definition at line 27 of file uint256.cpp.
Referenced by abandontransaction(), TransactionView::abandonTx(), TransactionView::contextualMenu(), getblocktemplate(), MasternodeList::GetSelectedDIP3MN(), gettransaction(), listsinceblock(), ParseHashStr(), ParseHashV(), removeprunedfunds(), rest_getutxos(), CBLSId::SetInt(), uint256S(), and TransactionTableModel::updateTransaction().
◆ SetHex() [2/2]
void base_blob< BITS >::SetHex | ( | const std::string & | str | ) |
Definition at line 56 of file uint256.cpp.
◆ SetNull()
|
inline |
Definition at line 41 of file uint256.h.
Referenced by CTxMemPool::addSpentIndex(), CInv::CInv(), CMempoolAddressDelta::CMempoolAddressDelta(), CMempoolAddressDeltaKey::CMempoolAddressDeltaKey(), CChainState::ConnectBlock(), CreateGenesisBlock(), ProcessGetBlockData(), CSpentIndexKey::SetNull(), COutPoint::SetNull(), CBlockHeader::SetNull(), CSpentIndexValue::SetNull(), CTimestampIndexKey::SetNull(), CAddressUnspentKey::SetNull(), CAddressIndexKey::SetNull(), CAddressIndexIteratorKey::SetNull(), CAddressIndexIteratorHeightKey::SetNull(), and CAddrMan::~CAddrMan().
◆ size()
|
inline |
Definition at line 77 of file uint256.h.
Referenced by BIP32Hash(), CDeterministicMNList::CalculateScores(), CBLSIESMultiRecipientBlobs::InitEncrypt(), CompareInputBIP69::operator()(), and CDeterministicMNState::UpdateConfirmedHash().
◆ ToString()
std::string base_blob< BITS >::ToString | ( | ) | const |
Definition at line 62 of file uint256.cpp.
Referenced by CChainState::AcceptBlockHeader(), llmq::CChainLocksHandler::AcceptedBlockHeader(), AcceptToMemoryPoolWorker(), CGovernanceManager::AddGovernanceObject(), llmq::CInstantSendManager::AddNonLockedTx(), AddOrphanTx(), llmq::CLLMQUtils::AddQuorumProbeConnections(), CWallet::AddToWallet(), CWallet::AddToWalletIfInvolvingMe(), llmq::CInstantSendManager::AskNodesForLockedTx(), llmq::CSigningManager::AsyncSignIfMember(), BlockTipChanged(), CDeterministicMNManager::BuildNewListFromBlock(), llmq::CQuorumManager::BuildQuorumFromCommitment(), BuildSimplifiedMNListDiff(), llmq::CInstantSendManager::CheckCanLock(), CheckForkWarningConditions(), CGovernanceManager::CheckPostponedObjects(), CGovernanceVote::CheckSignature(), CTransactionBuilder::Commit(), CWallet::ComputeTimeSmart(), CChainState::ConnectBlock(), CChainState::ConnectTip(), TransactionTableModel::data(), CChainState::DisconnectTip(), dumpwallet(), llmq::CLLMQUtils::EnsureQuorumConnections(), entryToJSON(), CTxMemPool::existsProviderTxConflict(), llmq::CChainLocksHandler::GetBlockTxs(), ClientModel::getLastBlockHash(), getmempoolancestors(), getmempooldescendants(), llmq::CQuorumManager::GetQuorum(), GetTransaction(), TransactionRecord::getTxID(), gobject_get(), gobject_submit(), llmq::CInstantSendManager::HandleNewInputLockRecoveredSig(), llmq::CInstantSendManager::HandleNewInstantSendLockRecoveredSig(), PartiallyDownloadedBlock::InitData(), InvalidChainFound(), CGovernanceObject::IsCollateralValid(), LoadChainTip(), LoadExternalBlockFile(), CProRegTx::MakeSignString(), CGovernanceManager::MasternodeRateCheck(), mempoolToJSON(), CZMQPublishRawGovernanceObjectNotifier::NotifyGovernanceObject(), CZMQPublishRawGovernanceVoteNotifier::NotifyGovernanceVote(), CZMQPublishHashInstantSendDoubleSpendNotifier::NotifyInstantSendDoubleSpendAttempt(), CZMQPublishRawInstantSendDoubleSpendNotifier::NotifyInstantSendDoubleSpendAttempt(), CMNAuth::NotifyMasternodeListChanged(), CDeterministicMNList::PoSeDecrease(), CDeterministicMNList::PoSePunish(), llmq::CSigSharesManager::PreVerifyBatchedSigShares(), llmq::CSigningManager::PreVerifyRecoveredSig(), CTxMemPool::PrioritiseTransaction(), CDeterministicMNManager::ProcessBlock(), llmq::CQuorumBlockProcessor::ProcessCommitment(), ProcessHeadersMessage(), llmq::CInstantSendManager::ProcessInstantSendLock(), CGovernanceManager::ProcessMessage(), ProcessMessage(), llmq::CSigSharesManager::ProcessMessageBatchedSigShares(), llmq::CSigSharesManager::ProcessMessageGetSigShares(), llmq::CInstantSendManager::ProcessMessageInstantSendLock(), llmq::CSigningManager::ProcessMessageRecoveredSig(), llmq::CSigSharesManager::ProcessMessageSigSesAnn(), llmq::CSigSharesManager::ProcessMessageSigShare(), llmq::CSigSharesManager::ProcessMessageSigSharesInv(), CSporkManager::ProcessSpork(), CBlockPolicyEstimator::processTransaction(), llmq::CInstantSendManager::ProcessTx(), CGovernanceObject::ProcessVote(), CGovernanceManager::ProcessVote(), protx_info(), llmq::CDKGPendingMessages::PushPendingMessage(), llmq::CDKGSession::ReceiveMessage(), CWalletTx::RelayWalletTransaction(), llmq::CInstantSendManager::RemoveChainLockConflictingLock(), llmq::CInstantSendManager::RemoveMempoolConflictsForLock(), CDeterministicMNList::RemoveMN(), llmq::CInstantSendManager::RemoveNonLockedTx(), CChainState::ReplayBlocks(), CGovernanceManager::RequestGovernanceObject(), llmq::CInstantSendManager::ResolveBlockConflicts(), CChainState::RollforwardBlock(), CWallet::SelectPSInOutPairsByDenominations(), PeerLogicValidation::SendMessages(), CGovernanceVote::Sign(), llmq::CSigSharesManager::Sign(), CGovernanceManager::SyncObjects(), CGovernanceManager::SyncSingleObjVotes(), CCbTx::ToJson(), llmq::CRecoveredSig::ToJson(), CProRegTx::ToJson(), CSimplifiedMNListEntry::ToJson(), llmq::CDKGDebugSessionStatus::ToJson(), llmq::CFinalCommitment::ToJson(), CProUpServTx::ToJson(), CSimplifiedMNListDiff::ToJson(), CProUpRegTx::ToJson(), CProUpRevTx::ToJson(), CDeterministicMN::ToJson(), CCbTx::ToString(), llmq::CChainLockSig::ToString(), COutPoint::ToString(), CSimplifiedMNListEntry::ToString(), llmq::CSigSesAnn::ToString(), CProUpServTx::ToString(), CBlock::ToString(), CProUpRegTx::ToString(), CProUpRevTx::ToString(), CDeterministicMN::ToString(), CBlockIndex::ToString(), CDiskBlockIndex::ToString(), CInv::ToString(), COutput::ToString(), COutPoint::ToStringShort(), llmq::CSigSharesManager::TryRecoverSig(), llmq::CChainLocksHandler::TrySignChainTip(), llmq::CInstantSendManager::TrySignInstantSendLock(), TxInErrorToJSON(), CGovernanceManager::UpdateCachesAndClean(), CDeterministicMNList::UpdateMN(), UpdateTip(), TransactionTablePriv::updateWallet(), CDeterministicMNManager::UpgradeDiff(), CVerifyDB::VerifyDB(), CHashSigner::VerifyHash(), and while().
◆ Unserialize()
|
inline |
Definition at line 102 of file uint256.h.
Referenced by CTimestampIndexKey::Unserialize(), CAddressUnspentKey::Unserialize(), CAddressIndexKey::Unserialize(), CAddressIndexIteratorKey::Unserialize(), CAddressIndexIteratorHeightKey::Unserialize(), and CDeterministicMNListDiff_OldFormat::Unserialize().
Friends And Related Function Documentation
◆ operator!=
◆ operator<
◆ operator==
Member Data Documentation
◆ data
Definition at line 24 of file uint256.h.
Referenced by TransactionView::abandonTx(), base_blob< 512 >::base_blob(), base_blob< 512 >::begin(), CoinControlDialog::buttonToggleLockClicked(), base_blob< 512 >::Compare(), base_blob< 512 >::end(), base_blob< 512 >::GetUint64(), base_blob< 512 >::IsNull(), base_blob< 512 >::Serialize(), base_blob< 512 >::SetNull(), CoinControlDialog::showMenu(), base_blob< 512 >::size(), base_blob< 512 >::Unserialize(), and CoinControlDialog::viewItemChanged().
◆ WIDTH
|
staticprotected |
Definition at line 23 of file uint256.h.
Referenced by base_blob< 512 >::end(), and base_blob< 512 >::IsNull().
The documentation for this class was generated from the following files:
- src/uint256.h
- src/uint256.cpp