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

#include <proof.h>

Collaboration diagram for avalanche::Stake:
[legend]

Public Member Functions

 Stake ()=default
 
 Stake (COutPoint utxo_, Amount amount_, uint32_t height_, bool is_coinbase, CPubKey pubkey_)
 
 SERIALIZE_METHODS (Stake, obj)
 
const COutPointgetUTXO () const
 
Amount getAmount () const
 
uint32_t getHeight () const
 
bool isCoinbase () const
 
const CPubKeygetPubkey () const
 
uint256 getHash (const StakeCommitment &commitment) const
 
const StakeIdgetId () const
 

Private Member Functions

void computeStakeId ()
 

Private Attributes

COutPoint utxo
 
Amount amount
 
uint32_t height
 
CPubKey pubkey
 
StakeId stakeid
 

Detailed Description

Definition at line 50 of file proof.h.

Constructor & Destructor Documentation

◆ Stake() [1/2]

avalanche::Stake::Stake ( )
explicitdefault

◆ Stake() [2/2]

avalanche::Stake::Stake ( COutPoint  utxo_,
Amount  amount_,
uint32_t  height_,
bool  is_coinbase,
CPubKey  pubkey_ 
)
inline

Definition at line 62 of file proof.h.

Here is the call graph for this function:

Member Function Documentation

◆ computeStakeId()

void avalanche::Stake::computeStakeId ( )
private

Definition at line 36 of file proof.cpp.

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

◆ getAmount()

Amount avalanche::Stake::getAmount ( ) const
inline

Definition at line 75 of file proof.h.

Here is the caller graph for this function:

◆ getHash()

uint256 avalanche::Stake::getHash ( const StakeCommitment commitment) const

Definition at line 42 of file proof.cpp.

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

◆ getHeight()

uint32_t avalanche::Stake::getHeight ( ) const
inline

Definition at line 76 of file proof.h.

Here is the caller graph for this function:

◆ getId()

const StakeId& avalanche::Stake::getId ( ) const
inline

Definition at line 82 of file proof.h.

Here is the caller graph for this function:

◆ getPubkey()

const CPubKey& avalanche::Stake::getPubkey ( ) const
inline

Definition at line 78 of file proof.h.

Here is the caller graph for this function:

◆ getUTXO()

const COutPoint& avalanche::Stake::getUTXO ( ) const
inline

Definition at line 74 of file proof.h.

Here is the caller graph for this function:

◆ isCoinbase()

bool avalanche::Stake::isCoinbase ( ) const
inline

Definition at line 77 of file proof.h.

Here is the caller graph for this function:

◆ SERIALIZE_METHODS()

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

Definition at line 69 of file proof.h.

Member Data Documentation

◆ amount

Amount avalanche::Stake::amount
private

Definition at line 53 of file proof.h.

◆ height

uint32_t avalanche::Stake::height
private

Definition at line 54 of file proof.h.

◆ pubkey

CPubKey avalanche::Stake::pubkey
private

Definition at line 55 of file proof.h.

◆ stakeid

StakeId avalanche::Stake::stakeid
private

Definition at line 57 of file proof.h.

◆ utxo

COutPoint avalanche::Stake::utxo
private

Definition at line 51 of file proof.h.


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