![]() |
PRCYCoin
2.0.0.7rc1
P2P Digital Currency
|
256-bit opaque blob. More...
#include <blob_uint256.h>
Public Member Functions | |
| blob_uint256 () | |
| blob_uint256 (const base_blob< 256 > &b) | |
| blob_uint256 (const std::vector< unsigned char > &vch) | |
| uint64_t | GetCheapHash () const |
| A cheap hash function that just returns 64 bits from the result, it can be used when the contents are considered uniformly random. More... | |
| uint64_t | GetHash (const blob_uint256 &salt) const |
| A more secure, salted hash function. More... | |
Public Member Functions inherited from base_blob< 256 > | |
| 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 | |
Public Types inherited from base_blob< 256 > | |
| enum | |
Public Attributes inherited from base_blob< 256 > | |
| uint8_t | data [WIDTH] |
256-bit opaque blob.
Definition at line 115 of file blob_uint256.h.
|
inline |
Definition at line 117 of file blob_uint256.h.
|
inline |
Definition at line 118 of file blob_uint256.h.
|
inlineexplicit |
Definition at line 119 of file blob_uint256.h.
|
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 127 of file blob_uint256.h.
| uint64_t blob_uint256::GetHash | ( | const blob_uint256 & | salt | ) | const |
A more secure, salted hash function.
Definition at line 126 of file blob_uint256.cpp.
1.8.17