![]() |
Dash Core
0.12.2.1
P2P Digital Currency
|
#include <uint256.h>
Public Member Functions | |
base_blob () | |
base_blob (const std::vector< unsigned char > &vch) | |
bool | IsNull () const |
void | SetNull () |
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 |
unsigned int | GetSerializeSize (int nType, int nVersion) const |
template<typename Stream > | |
void | Serialize (Stream &s, int nType, int nVersion) const |
template<typename Stream > | |
void | Unserialize (Stream &s, int nType, int nVersion) |
Protected Types | |
enum | { WIDTH =BITS/8 } |
Protected Attributes | |
uint8_t | data [WIDTH] |
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) |
Template base class for fixed-sized opaque blobs.
|
protected |
|
explicit |
Definition at line 14 of file uint256.cpp.
|
inline |
Definition at line 55 of file uint256.h.
Referenced by CWallet::AbandonTransaction(), ArithToUint256(), BIP32Hash(), CBloomFilter::contains(), CRollingBloomFilter::contains(), CExtKey::Decode(), CExtPubKey::Decode(), CKey::Derive(), CPubKey::Derive(), CExtKey::Encode(), CExtPubKey::Encode(), CConnman::EndMessage(), CBloomFilter::insert(), CRollingBloomFilter::insert(), CWallet::MarkConflicted(), MerkleComputation(), CZMQPublishHashBlockNotifier::NotifyBlock(), CZMQPublishHashTransactionNotifier::NotifyTransaction(), CZMQPublishHashTransactionLockNotifier::NotifyTransactionLock(), ProcessMessages(), CPubKey::RecoverCompact(), CExtKey::SetMaster(), CKey::Sign(), CKey::SignCompact(), UintToArith256(), CPubKey::Verify(), and CKey::VerifyPubKey().
|
inline |
|
inline |
Definition at line 60 of file uint256.h.
Referenced by CBloomFilter::contains(), CRollingBloomFilter::contains(), DecodeBase58Check(), CBloomFilter::insert(), CRollingBloomFilter::insert(), and CompareInputBIP69::operator()().
|
inline |
std::string base_blob< BITS >::GetHex | ( | ) | const |
Definition at line 21 of file uint256.cpp.
Referenced by CGovernanceTriggerManager::AddNewTrigger(), CWallet::AddToWallet(), AppInit2(), BitcoinMiner(), blockheaderToJSON(), BlockNotifyCallback(), blockToJSON(), CPrivateSendClient::CreateDenominated(), generate(), getbestblockhash(), getblockchaininfo(), getblockhash(), getblocktemplate(), getchaintips(), base_uint< 256 >::GetHex(), getspentinfo(), gettxout(), gettxoutsetinfo(), getwalletinfo(), gobject(), HelpMessage(), TransactionNotification::invoke(), listlockunspent(), ListReceived(), listsinceblock(), CPrivateSendClient::MakeCollateralAmounts(), NotifyAlertChanged(), CZMQPublishHashBlockNotifier::NotifyBlock(), CZMQPublishRawBlockNotifier::NotifyBlock(), CZMQPublishHashTransactionNotifier::NotifyTransaction(), CZMQPublishRawTransactionNotifier::NotifyTransaction(), CZMQPublishHashTransactionLockNotifier::NotifyTransactionLock(), CZMQPublishRawTransactionLockNotifier::NotifyTransactionLock(), OutputTxHash(), rest_getutxos(), sendfrom(), sendmany(), sendrawtransaction(), TxToJSON(), TxToUniv(), CInstantSend::UpdateLockedTransaction(), CoinControlDialog::updateView(), validateaddress(), verifytxoutproof(), and WalletTxToJSON().
|
inline |
|
inline |
Definition at line 33 of file uint256.h.
Referenced by CWallet::AddToWallet(), AppInit2(), CCoinsViewDB::BatchWrite(), ConnectBlock(), CCoinsViewCache::GetBestBlock(), gettxoutproof(), CMerkleTx::hashUnset(), InsertBlockIndex(), COutPoint::IsNull(), CSpentIndexValue::IsNull(), ProcessMessage(), ReadKeyValue(), RelayAddress(), SendMessages(), TxToJSON(), and TxToUniv().
|
inline |
Definition at line 86 of file uint256.h.
Referenced by CTimestampIndexKey::Serialize(), CAddressUnspentKey::Serialize(), CAddressIndexKey::Serialize(), CAddressIndexIteratorKey::Serialize(), and CAddressIndexIteratorHeightKey::Serialize().
void base_blob< BITS >::SetHex | ( | const char * | psz | ) |
Definition at line 30 of file uint256.cpp.
Referenced by abandontransaction(), TransactionView::abandonTx(), AppInit2(), TransactionView::contextualMenu(), getblocktemplate(), gettransaction(), gobject(), listsinceblock(), ParseHashStr(), rest_getutxos(), uint256S(), ClientModel::updateAlert(), and TransactionTableModel::updateTransaction().
void base_blob< BITS >::SetHex | ( | const std::string & | str | ) |
Definition at line 59 of file uint256.cpp.
|
inline |
Definition at line 41 of file uint256.h.
Referenced by CTxMemPool::addSpentIndex(), CInv::CInv(), CMempoolAddressDelta::CMempoolAddressDelta(), CMempoolAddressDeltaKey::CMempoolAddressDeltaKey(), ConnectBlock(), CreateGenesisBlock(), ProcessGetData(), COutPoint::SetNull(), CSpentIndexKey::SetNull(), CBlockHeader::SetNull(), CSpentIndexValue::SetNull(), CTimestampIndexKey::SetNull(), CAddressUnspentKey::SetNull(), CAddressIndexKey::SetNull(), CAddressIndexIteratorKey::SetNull(), CAddressIndexIteratorHeightKey::SetNull(), and CAddrMan::~CAddrMan().
|
inline |
Definition at line 75 of file uint256.h.
Referenced by BIP32Hash(), and CompareInputBIP69::operator()().
std::string base_blob< BITS >::ToString | ( | ) | const |
Definition at line 65 of file uint256.cpp.
Referenced by AcceptToMemoryPool(), AcceptToMemoryPoolWorker(), CGovernanceManager::AddGovernanceObject(), AddOrphanTx(), CWallet::AddToWallet(), CWallet::AddToWalletIfInvolvingMe(), CInstantSend::CheckAndRemove(), CMasternodePing::CheckAndUpdate(), CheckBlock(), CheckForkWarningConditions(), CGovernanceManager::CheckPostponedObjects(), CMasternodePing::CheckSignature(), CTxLockVote::CheckSignature(), CDarksendBroadcastTx::CheckSignature(), CMasternodeBroadcast::CheckSignature(), CGovernanceTriggerManager::CleanAndRemove(), CPrivateSendServer::CommitFinalTransaction(), ConnectBlock(), ConnectTip(), CMasternodeBroadcast::Create(), CInstantSend::CreateEmptyTxLockCandidate(), CreateNewBlock(), CInstantSend::CreateTxLockCandidate(), TransactionTableModel::data(), DisconnectTip(), dumpwallet(), TransactionRecord::formatSubTxId(), CWallet::GetRealOutpointPrivateSendRounds(), CGovernanceObject::GetSignatureMessage(), gobject(), InvalidChainFound(), CGovernanceObject::IsCollateralValid(), CGovernanceVote::IsValid(), CTxLockRequest::IsValid(), CTxLockVote::IsValid(), CGovernanceObject::IsValidLocally(), LoadBlockIndexDB(), LoadExternalBlockFile(), CInstantSend::LockTransactionInputs(), CActiveMasternode::ManageStateRemote(), masternodebroadcast(), CGovernanceManager::MasternodeRateCheck(), mempoolToJSON(), CPrivateSendServer::ProcessMessage(), CMasternodePayments::ProcessMessage(), CGovernanceManager::ProcessMessage(), ProcessMessage(), CSporkManager::ProcessSpork(), CBlockPolicyEstimator::processTransaction(), CInstantSend::ProcessTxLockRequest(), CInstantSend::ProcessTxLockVote(), CMasternodeMan::ProcessVerifyBroadcast(), CMasternodeMan::ProcessVerifyReply(), CGovernanceObject::ProcessVote(), CGovernanceManager::ProcessVote(), CWalletTx::RelayWalletTransaction(), CBlockPolicyEstimator::removeTx(), CGovernanceManager::RequestGovernanceObject(), resendwallettransactions(), CInstantSend::ResolveConflicts(), CPrivateSendClient::SendDenominate(), SendMessages(), CMasternodeMan::SendVerifyReply(), CMasternodePing::Sign(), CGovernanceVote::Sign(), CTxLockVote::Sign(), CGovernanceObject::Sign(), CDarksendBroadcastTx::Sign(), CMasternodeBroadcast::Sign(), CMasternodePing::SimpleCheck(), CGovernanceManager::Sync(), CInstantSend::SyncTransaction(), CPrivateSend::SyncTransaction(), COutPoint::ToString(), CBlock::ToString(), CBlockIndex::ToString(), CInv::ToString(), CDiskBlockIndex::ToString(), COutPoint::ToStringShort(), CInstantSend::TryToFinalizeLockCandidate(), TxInErrorToJSON(), CGovernanceManager::UpdateCachesAndClean(), CGovernanceManager::UpdateCurrentWatchdog(), CInstantSend::UpdateLockedTransaction(), UpdateTip(), TransactionTablePriv::updateWallet(), CVerifyDB::VerifyDB(), CHashSigner::VerifyHash(), and CInstantSend::Vote().
|
inline |
Definition at line 92 of file uint256.h.
Referenced by CTimestampIndexKey::Unserialize(), CAddressUnspentKey::Unserialize(), CAddressIndexKey::Unserialize(), CAddressIndexIteratorKey::Unserialize(), and CAddressIndexIteratorHeightKey::Unserialize().
Definition at line 24 of file uint256.h.
Referenced by TransactionView::abandonTx(), base_blob< 512 >::base_blob(), base_blob< 512 >::begin(), base_blob< 512 >::end(), base_blob< 512 >::GetSerializeSize(), base_blob< 512 >::IsNull(), base_blob< 512 >::Serialize(), base_blob< 512 >::SetNull(), base_blob< 512 >::size(), and base_blob< 512 >::Unserialize().