Bitcoin ABC  0.24.7
P2P Digital Currency
Classes | Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
avalanche::ProofBuilder Class Reference

#include <proofbuilder.h>

Collaboration diagram for avalanche::ProofBuilder:
[legend]

Classes

struct  StakeSigner
 
struct  StakeSignerComparator
 

Public Member Functions

 ProofBuilder (uint64_t sequence_, int64_t expirationTime_, CKey masterKey_, const CScript &payoutScriptPubKey_=CScript())
 
bool addUTXO (COutPoint utxo, Amount amount, uint32_t height, bool is_coinbase, CKey key)
 
ProofRef build ()
 

Private Member Functions

LimitedProofId getLimitedProofId () const
 
ProofId getProofId () const
 

Private Attributes

uint64_t sequence
 
int64_t expirationTime
 
CKey masterKey
 
CScript payoutScriptPubKey
 
std::set< StakeSigner, StakeSignerComparatorstakes
 

Friends

struct TestProofBuilder
 

Detailed Description

Definition at line 17 of file proofbuilder.h.

Constructor & Destructor Documentation

◆ ProofBuilder()

avalanche::ProofBuilder::ProofBuilder ( uint64_t  sequence_,
int64_t  expirationTime_,
CKey  masterKey_,
const CScript payoutScriptPubKey_ = CScript() 
)
inline

Definition at line 41 of file proofbuilder.h.

Member Function Documentation

◆ addUTXO()

bool avalanche::ProofBuilder::addUTXO ( COutPoint  utxo,
Amount  amount,
uint32_t  height,
bool  is_coinbase,
CKey  key 
)

Definition at line 23 of file proofbuilder.cpp.

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

◆ build()

ProofRef avalanche::ProofBuilder::build ( )

Definition at line 36 of file proofbuilder.cpp.

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

◆ getLimitedProofId()

LimitedProofId avalanche::ProofBuilder::getLimitedProofId ( ) const
private

Definition at line 61 of file proofbuilder.cpp.

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

◆ getProofId()

ProofId avalanche::ProofBuilder::getProofId ( ) const
private

Definition at line 78 of file proofbuilder.cpp.

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

Friends And Related Function Documentation

◆ TestProofBuilder

friend struct TestProofBuilder
friend

Definition at line 56 of file proofbuilder.h.

Member Data Documentation

◆ expirationTime

int64_t avalanche::ProofBuilder::expirationTime
private

Definition at line 19 of file proofbuilder.h.

◆ masterKey

CKey avalanche::ProofBuilder::masterKey
private

Definition at line 20 of file proofbuilder.h.

◆ payoutScriptPubKey

CScript avalanche::ProofBuilder::payoutScriptPubKey
private

Definition at line 21 of file proofbuilder.h.

◆ sequence

uint64_t avalanche::ProofBuilder::sequence
private

Definition at line 18 of file proofbuilder.h.

◆ stakes

std::set<StakeSigner, StakeSignerComparator> avalanche::ProofBuilder::stakes
private

Definition at line 38 of file proofbuilder.h.


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