256-bit opaque blob.
More...
#include <uint256.h>
256-bit opaque blob.
- Note
- This type is called uint256 for historical reasons only. It is an opaque blob of 256 bits and has no integer operations. Use arith_uint256 if those are required.
Definition at line 123 of file uint256.h.
◆ uint256() [1/2]
◆ uint256() [2/2]
uint256::uint256 |
( |
const std::vector< unsigned char > & |
vch | ) |
|
|
inlineexplicit |
◆ GetCheapHash()
uint64_t uint256::GetCheapHash |
( |
| ) |
const |
|
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 140 of file uint256.h.
◆ GetNibble()
int uint256::GetNibble |
( |
int |
index | ) |
const |
|
inline |
The documentation for this class was generated from the following file: