![]() |
BSHA3
0.17.99
P2P Blockchain, based on Bitcoin
|
256-bit opaque blob. More...
#include <uint256.h>
Public Member Functions | |
uint256 () | |
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... | |
![]() | |
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 () |
const unsigned char * | begin () const |
unsigned char * | end () |
const unsigned char * | end () const |
unsigned int | size () const |
uint64_t | GetUint64 (int pos) const |
void | Serialize (Stream &s) const |
void | Unserialize (Stream &s) |
Additional Inherited Members | |
![]() | |
uint8_t | data [WIDTH] |
![]() | |
static constexpr int | 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 132 of file uint256.h.