Bitcoin
Public Member Functions | List of all members
uint160 Class Reference

#include <uint256.h>

Inheritance diagram for uint160:
base_blob< 160 > CKeyID CScriptID PKHash ScriptHash WitnessV0KeyHash

Public Member Functions

 uint160 ()
 
 uint160 (const std::vector< unsigned char > &vch)
 
- Public Member Functions inherited from base_blob< 160 >
 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

- Protected Attributes inherited from base_blob< 160 >
uint8_t data [WIDTH]
 
- Static Protected Attributes inherited from base_blob< 160 >
static constexpr int WIDTH
 

Detailed Description

160-bit opaque blob.

Note
This type is called uint160 for historical reasons only. It is an opaque blob of 160 bits and has no integer operations.

Constructor & Destructor Documentation

◆ uint160() [1/2]

uint160::uint160 ( )
inline

◆ uint160() [2/2]

uint160::uint160 ( const std::vector< unsigned char > &  vch)
inlineexplicit

The documentation for this class was generated from the following file: