Bitcoin ABC 0.30.3
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  SignedStakeComparator
 

Public Member Functions

 ProofBuilder (uint64_t sequence_, int64_t expirationTime_, CKey masterKey_, const CScript &payoutScriptPubKey_)
 
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< SignedStake, SignedStakeComparatorstakes
 

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_ 
)
inline

Definition at line 31 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 11 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 29 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 48 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 62 of file proofbuilder.cpp.

Here is the call graph for this function:

Friends And Related Function Documentation

◆ TestProofBuilder

friend struct TestProofBuilder
friend

Definition at line 46 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<SignedStake, SignedStakeComparator> avalanche::ProofBuilder::stakes
private

Definition at line 28 of file proofbuilder.h.


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