PIVX Core  5.6.99
P2P Digital Currency
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
libzcash::IncrementalWitness< Depth, Hash > Class Template Reference

#include <incrementalmerkletree.h>

Public Member Functions

 IncrementalWitness ()
 
MerklePath path () const
 
Hash element () const
 
uint64_t position () const
 
Hash root () const
 
void append (Hash obj)
 
 SERIALIZE_METHODS (IncrementalWitness, obj)
 

Private Member Functions

std::deque< Hashpartial_path () const
 
 IncrementalWitness (IncrementalMerkleTree< Depth, Hash > tree)
 

Private Attributes

IncrementalMerkleTree< Depth, Hashtree
 
std::vector< Hashfilled
 
Optional< IncrementalMerkleTree< Depth, Hash > > cursor
 
size_t cursor_depth = 0
 

Friends

class IncrementalMerkleTree< Depth, Hash >
 
template<size_t D, typename H >
bool operator== (const IncrementalWitness< D, H > &a, const IncrementalWitness< D, H > &b)
 

Detailed Description

template<size_t Depth, typename Hash>
class libzcash::IncrementalWitness< Depth, Hash >

Definition at line 153 of file incrementalmerkletree.h.

Constructor & Destructor Documentation

◆ IncrementalWitness() [1/2]

template<size_t Depth, typename Hash >
libzcash::IncrementalWitness< Depth, Hash >::IncrementalWitness ( )
inline

Definition at line 158 of file incrementalmerkletree.h.

◆ IncrementalWitness() [2/2]

template<size_t Depth, typename Hash >
libzcash::IncrementalWitness< Depth, Hash >::IncrementalWitness ( IncrementalMerkleTree< Depth, Hash tree)
inlineexplicitprivate

Definition at line 196 of file incrementalmerkletree.h.

Member Function Documentation

◆ append()

template<size_t Depth, typename Hash >
void libzcash::IncrementalWitness< Depth, Hash >::append ( Hash  obj)

Definition at line 1117 of file incrementalmerkletree.cpp.

◆ element()

template<size_t Depth, typename Hash >
Hash libzcash::IncrementalWitness< Depth, Hash >::element ( ) const
inline

Definition at line 166 of file incrementalmerkletree.h.

◆ partial_path()

template<size_t Depth, typename Hash >
std::deque< Hash > libzcash::IncrementalWitness< Depth, Hash >::partial_path
private

Definition at line 1106 of file incrementalmerkletree.cpp.

Here is the caller graph for this function:

◆ path()

template<size_t Depth, typename Hash >
MerklePath libzcash::IncrementalWitness< Depth, Hash >::path ( ) const
inline

Definition at line 160 of file incrementalmerkletree.h.

Here is the call graph for this function:

◆ position()

template<size_t Depth, typename Hash >
uint64_t libzcash::IncrementalWitness< Depth, Hash >::position ( ) const
inline

Definition at line 170 of file incrementalmerkletree.h.

◆ root()

template<size_t Depth, typename Hash >
Hash libzcash::IncrementalWitness< Depth, Hash >::root ( ) const
inline

Definition at line 174 of file incrementalmerkletree.h.

Here is the call graph for this function:

◆ SERIALIZE_METHODS()

template<size_t Depth, typename Hash >
libzcash::IncrementalWitness< Depth, Hash >::SERIALIZE_METHODS ( IncrementalWitness< Depth, Hash ,
obj   
)
inline

Definition at line 180 of file incrementalmerkletree.h.

Friends And Related Function Documentation

◆ IncrementalMerkleTree< Depth, Hash >

template<size_t Depth, typename Hash >
friend class IncrementalMerkleTree< Depth, Hash >
friend

Definition at line 140 of file incrementalmerkletree.h.

◆ operator==

template<size_t Depth, typename Hash >
template<size_t D, typename H >
bool operator== ( const IncrementalWitness< D, H > &  a,
const IncrementalWitness< D, H > &  b 
)
friend

Member Data Documentation

◆ cursor

template<size_t Depth, typename Hash >
Optional<IncrementalMerkleTree<Depth, Hash> > libzcash::IncrementalWitness< Depth, Hash >::cursor
private

Definition at line 193 of file incrementalmerkletree.h.

◆ cursor_depth

template<size_t Depth, typename Hash >
size_t libzcash::IncrementalWitness< Depth, Hash >::cursor_depth = 0
private

Definition at line 194 of file incrementalmerkletree.h.

◆ filled

template<size_t Depth, typename Hash >
std::vector<Hash> libzcash::IncrementalWitness< Depth, Hash >::filled
private

Definition at line 192 of file incrementalmerkletree.h.

◆ tree

template<size_t Depth, typename Hash >
IncrementalMerkleTree<Depth, Hash> libzcash::IncrementalWitness< Depth, Hash >::tree
private

Definition at line 191 of file incrementalmerkletree.h.


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