PIVX Core  5.6.99
P2P Digital Currency
Public Member Functions | Static Public Member Functions | List of all members
libzcash::SHA256Compress Class Reference

#include <incrementalmerkletree.h>

Inheritance diagram for libzcash::SHA256Compress:
[legend]
Collaboration diagram for libzcash::SHA256Compress:
[legend]

Public Member Functions

 SHA256Compress ()
 
 SHA256Compress (uint256 contents)
 
- Public Member Functions inherited from uint256
 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...
 
- Public Member Functions inherited from base_blob< 256 >
constexpr base_blob ()
 
constexpr base_blob (uint8_t v)
 
 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
 
const unsigned char * data () const
 
unsigned char * data ()
 
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)
 

Static Public Member Functions

static SHA256Compress combine (const SHA256Compress &a, const SHA256Compress &b, size_t depth)
 
static SHA256Compress uncommitted ()
 
static SHA256Compress EmptyRoot (size_t)
 

Additional Inherited Members

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

Detailed Description

Definition at line 208 of file incrementalmerkletree.h.

Constructor & Destructor Documentation

◆ SHA256Compress() [1/2]

libzcash::SHA256Compress::SHA256Compress ( )
inline

Definition at line 210 of file incrementalmerkletree.h.

Here is the caller graph for this function:

◆ SHA256Compress() [2/2]

libzcash::SHA256Compress::SHA256Compress ( uint256  contents)
inline

Definition at line 211 of file incrementalmerkletree.h.

Member Function Documentation

◆ combine()

SHA256Compress libzcash::SHA256Compress::combine ( const SHA256Compress a,
const SHA256Compress b,
size_t  depth 
)
static

Definition at line 426 of file incrementalmerkletree.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ EmptyRoot()

SHA256Compress libzcash::SHA256Compress::EmptyRoot ( size_t  depth)
static

Definition at line 841 of file incrementalmerkletree.cpp.

◆ uncommitted()

static SHA256Compress libzcash::SHA256Compress::uncommitted ( )
inlinestatic

Definition at line 219 of file incrementalmerkletree.h.

Here is the call graph for this function:
Here is the caller graph for this function:

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