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

#include <delegation.h>

Collaboration diagram for avalanche::Delegation:
[legend]

Classes

struct  Level
 

Public Member Functions

 Delegation ()
 
const DelegationIdgetId () const
 
const ProofIdgetProofId () const
 
 SERIALIZE_METHODS (Delegation, obj)
 
bool verify (DelegationState &state, const Proof &proof, CPubKey &auth) const
 

Private Member Functions

DelegationId computeDelegationId () const
 
 Delegation (const ProofId &proofid_, const DelegationId &dgid_, std::vector< Level > levels_)
 

Private Attributes

ProofId proofid
 
DelegationId dgid
 
std::vector< Levellevels
 

Friends

class DelegationBuilder
 

Detailed Description

Definition at line 21 of file delegation.h.

Constructor & Destructor Documentation

◆ Delegation() [1/2]

avalanche::Delegation::Delegation ( const ProofId proofid_,
const DelegationId dgid_,
std::vector< Level levels_ 
)
inlineprivate

Definition at line 37 of file delegation.h.

◆ Delegation() [2/2]

avalanche::Delegation::Delegation ( )
inlineexplicit

Definition at line 42 of file delegation.h.

Member Function Documentation

◆ computeDelegationId()

DelegationId avalanche::Delegation::computeDelegationId ( ) const
private

Definition at line 34 of file delegation.cpp.

Here is the call graph for this function:

◆ getId()

const DelegationId& avalanche::Delegation::getId ( ) const
inline

Definition at line 44 of file delegation.h.

Here is the caller graph for this function:

◆ getProofId()

const ProofId& avalanche::Delegation::getProofId ( ) const
inline

Definition at line 45 of file delegation.h.

◆ SERIALIZE_METHODS()

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

Definition at line 47 of file delegation.h.

Here is the call graph for this function:

◆ verify()

bool avalanche::Delegation::verify ( DelegationState state,
const Proof proof,
CPubKey auth 
) const

Definition at line 40 of file delegation.cpp.

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

Friends And Related Function Documentation

◆ DelegationBuilder

friend class DelegationBuilder
friend

Definition at line 36 of file delegation.h.

Member Data Documentation

◆ dgid

DelegationId avalanche::Delegation::dgid
private

Definition at line 24 of file delegation.h.

◆ levels

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

Definition at line 34 of file delegation.h.

◆ proofid

ProofId avalanche::Delegation::proofid
private

Definition at line 22 of file delegation.h.


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