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

#include <delegationbuilder.h>

Collaboration diagram for avalanche::DelegationBuilder:
[legend]

Public Member Functions

 DelegationBuilder (const LimitedProofId &ltdProofId, const CPubKey &proofMaster)
 
 DelegationBuilder (const Proof &p)
 
 DelegationBuilder (const Delegation &dg)
 
bool addLevel (const CKey &delegatorKey, const CPubKey &delegatedPubKey)
 
Delegation build () const
 

Private Member Functions

 DelegationBuilder (const LimitedProofId &ltdProofId, const CPubKey &proofMaster, const DelegationId &delegationId)
 

Private Attributes

LimitedProofId limitedProofid
 
DelegationId dgid
 
std::vector< Delegation::Levellevels
 

Detailed Description

Definition at line 20 of file delegationbuilder.h.

Constructor & Destructor Documentation

◆ DelegationBuilder() [1/4]

avalanche::DelegationBuilder::DelegationBuilder ( const LimitedProofId ltdProofId,
const CPubKey proofMaster,
const DelegationId delegationId 
)
private

Definition at line 15 of file delegationbuilder.cpp.

◆ DelegationBuilder() [2/4]

avalanche::DelegationBuilder::DelegationBuilder ( const LimitedProofId ltdProofId,
const CPubKey proofMaster 
)

Definition at line 22 of file delegationbuilder.cpp.

◆ DelegationBuilder() [3/4]

avalanche::DelegationBuilder::DelegationBuilder ( const Proof p)
explicit

Definition at line 27 of file delegationbuilder.cpp.

◆ DelegationBuilder() [4/4]

avalanche::DelegationBuilder::DelegationBuilder ( const Delegation dg)
explicit

Definition at line 31 of file delegationbuilder.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ addLevel()

bool avalanche::DelegationBuilder::addLevel ( const CKey delegatorKey,
const CPubKey delegatedPubKey 
)

Definition at line 40 of file delegationbuilder.cpp.

Here is the call graph for this function:

◆ build()

Delegation avalanche::DelegationBuilder::build ( ) const

Definition at line 61 of file delegationbuilder.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ dgid

DelegationId avalanche::DelegationBuilder::dgid
private

Definition at line 22 of file delegationbuilder.h.

◆ levels

std::vector<Delegation::Level> avalanche::DelegationBuilder::levels
private

Definition at line 24 of file delegationbuilder.h.

◆ limitedProofid

LimitedProofId avalanche::DelegationBuilder::limitedProofid
private

Definition at line 21 of file delegationbuilder.h.


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