Bitcoin ABC 0.26.3
P2P Digital Currency
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | Private Attributes | Friends | List of all members
avalanche::CompactProofs Class Reference

#include <compactproofs.h>

Public Member Functions

 CompactProofs ()
 
 CompactProofs (const RadixTree< const Proof, ProofRadixTreeAdapter > &proofs)
 
uint64_t getShortID (const ProofId &proofid) const
 
size_t size () const
 
std::pair< uint64_t, uint64_tgetKeys () const
 
const std::vector< PrefilledProof > & getPrefilledProofs () const
 
const std::vector< uint64_t > & getShortIDs () const
 
 SERIALIZE_METHODS (CompactProofs, obj)
 

Static Public Attributes

static constexpr int SHORTPROOFIDS_LENGTH = 6
 

Private Attributes

uint64_t shortproofidk0
 
uint64_t shortproofidk1
 
std::vector< uint64_tshortproofids
 
std::vector< PrefilledProofprefilledProofs
 

Friends

struct ::avalanche::TestCompactProofs
 

Detailed Description

Definition at line 54 of file compactproofs.h.

Constructor & Destructor Documentation

◆ CompactProofs() [1/2]

avalanche::CompactProofs::CompactProofs ( )
inline

Definition at line 63 of file compactproofs.h.

◆ CompactProofs() [2/2]

avalanche::CompactProofs::CompactProofs ( const RadixTree< const Proof, ProofRadixTreeAdapter > &  proofs)

Definition at line 12 of file compactproofs.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ getKeys()

std::pair< uint64_t, uint64_t > avalanche::CompactProofs::getKeys ( ) const
inline

Definition at line 73 of file compactproofs.h.

◆ getPrefilledProofs()

const std::vector< PrefilledProof > & avalanche::CompactProofs::getPrefilledProofs ( ) const
inline

Definition at line 76 of file compactproofs.h.

◆ getShortID()

uint64_t avalanche::CompactProofs::getShortID ( const ProofId proofid) const

Definition at line 21 of file compactproofs.cpp.

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

◆ getShortIDs()

const std::vector< uint64_t > & avalanche::CompactProofs::getShortIDs ( ) const
inline

Definition at line 79 of file compactproofs.h.

◆ SERIALIZE_METHODS()

avalanche::CompactProofs::SERIALIZE_METHODS ( CompactProofs  ,
obj   
)
inline

Definition at line 81 of file compactproofs.h.

Here is the call graph for this function:

◆ size()

size_t avalanche::CompactProofs::size ( ) const
inline

Definition at line 70 of file compactproofs.h.

Friends And Related Symbol Documentation

◆ ::avalanche::TestCompactProofs

friend struct ::avalanche::TestCompactProofs
friend

Definition at line 111 of file compactproofs.h.

Member Data Documentation

◆ prefilledProofs

std::vector<PrefilledProof> avalanche::CompactProofs::prefilledProofs
private

Definition at line 58 of file compactproofs.h.

◆ shortproofidk0

uint64_t avalanche::CompactProofs::shortproofidk0
private

Definition at line 56 of file compactproofs.h.

◆ shortproofidk1

uint64_t avalanche::CompactProofs::shortproofidk1
private

Definition at line 56 of file compactproofs.h.

◆ shortproofids

std::vector<uint64_t> avalanche::CompactProofs::shortproofids
private

Definition at line 57 of file compactproofs.h.

◆ SHORTPROOFIDS_LENGTH

constexpr int avalanche::CompactProofs::SHORTPROOFIDS_LENGTH = 6
staticconstexpr

Definition at line 61 of file compactproofs.h.


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