![]() |
Dash Core
0.12.2.1
P2P Digital Currency
|
#include <uint256.h>
Public Member Functions | |
uint256 () | |
uint256 (const base_blob< 256 > &b) | |
uint256 (const std::vector< unsigned char > &vch) | |
uint64_t | GetCheapHash () const |
uint64_t | GetHash (const uint256 &salt) const |
![]() | |
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 () |
const unsigned char * | begin () const |
unsigned char * | end () |
const unsigned char * | end () const |
unsigned int | size () const |
unsigned int | GetSerializeSize (int nType, int nVersion) const |
void | Serialize (Stream &s, int nType, int nVersion) const |
void | Unserialize (Stream &s, int nType, int nVersion) |
Additional Inherited Members | |
![]() | |
enum | |
![]() | |
uint8_t | data [WIDTH] |
256-bit opaque blob.
|
inlineexplicit |
|
inline |
A cheap hash function that just returns 64 bits from the result, it can be used when the contents are considered uniformly random. It is not appropriate when the value can easily be influenced from outside as e.g. a network adversary could provide values to trigger worst-case behavior.
Definition at line 125 of file uint256.h.
Referenced by BlockHasher::operator()().
uint64_t uint256::GetHash | ( | const uint256 & | salt | ) | const |
A more secure, salted hash function.
Definition at line 126 of file uint256.cpp.
Referenced by AcceptToMemoryPoolWorker(), AddOrphanTx(), CTxMemPool::check(), LoadExternalBlockFile(), CInstantSend::ProcessMessage(), CMasternodeMan::ProcessMessage(), CMasternodePayments::ProcessMessage(), CGovernanceManager::ProcessMessage(), ProcessMessage(), CTxMemPool::removeUnchecked(), CGovernanceManager::RequestGovernanceObjectVotes(), CInstantSend::SyncTransaction(), and CTxMemPool::UpdateTransactionsFromBlock().