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

#include <incrementalmerkletree.h>

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

Public Member Functions

 PedersenHash ()
 
 PedersenHash (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 PedersenHash combine (const PedersenHash &a, const PedersenHash &b, size_t depth)
 
static PedersenHash uncommitted ()
 
static PedersenHash 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 225 of file incrementalmerkletree.h.

Constructor & Destructor Documentation

◆ PedersenHash() [1/2]

libzcash::PedersenHash::PedersenHash ( )
inline

Definition at line 227 of file incrementalmerkletree.h.

Here is the caller graph for this function:

◆ PedersenHash() [2/2]

libzcash::PedersenHash::PedersenHash ( uint256  contents)
inline

Definition at line 228 of file incrementalmerkletree.h.

Member Function Documentation

◆ combine()

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

Definition at line 15 of file incrementalmerkletree.cpp.

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

◆ EmptyRoot()

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

Definition at line 422 of file incrementalmerkletree.cpp.

◆ uncommitted()

PedersenHash libzcash::PedersenHash::uncommitted ( )
static

Definition at line 33 of file incrementalmerkletree.cpp.

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: