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

#include <proof.h>

Collaboration diagram for avalanche::Proof:
[legend]

Public Member Functions

 Proof ()
 
 Proof (uint64_t sequence_, int64_t expirationTime_, CPubKey master_, std::vector< SignedStake > stakes_)
 
 SERIALIZE_METHODS (Proof, obj)
 
uint64_t getSequence () const
 
int64_t getExpirationTime () const
 
const CPubKeygetMaster () const
 
const std::vector< SignedStake > & getStakes () const
 
const ProofIdgetId () const
 
uint32_t getScore () const
 
bool verify (ProofValidationState &state) const
 
bool verify (ProofValidationState &state, const CCoinsView &view) const
 

Private Member Functions

ProofId computeProofId () const
 

Private Attributes

uint64_t sequence
 
int64_t expirationTime
 
CPubKey master
 
std::vector< SignedStakestakes
 
ProofId proofid
 

Detailed Description

Definition at line 69 of file proof.h.

Constructor & Destructor Documentation

◆ Proof() [1/2]

avalanche::Proof::Proof ( )
inline

Definition at line 79 of file proof.h.

◆ Proof() [2/2]

avalanche::Proof::Proof ( uint64_t  sequence_,
int64_t  expirationTime_,
CPubKey  master_,
std::vector< SignedStake stakes_ 
)
inline

Definition at line 80 of file proof.h.

Member Function Documentation

◆ computeProofId()

ProofId avalanche::Proof::computeProofId ( ) const
private

Definition at line 27 of file proof.cpp.

Here is the call graph for this function:

◆ getExpirationTime()

int64_t avalanche::Proof::getExpirationTime ( ) const
inline

Definition at line 92 of file proof.h.

Here is the caller graph for this function:

◆ getId()

const ProofId& avalanche::Proof::getId ( ) const
inline

Definition at line 96 of file proof.h.

Here is the caller graph for this function:

◆ getMaster()

const CPubKey& avalanche::Proof::getMaster ( ) const
inline

Definition at line 93 of file proof.h.

Here is the caller graph for this function:

◆ getScore()

uint32_t avalanche::Proof::getScore ( ) const

Definition at line 41 of file proof.cpp.

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

◆ getSequence()

uint64_t avalanche::Proof::getSequence ( ) const
inline

Definition at line 91 of file proof.h.

Here is the caller graph for this function:

◆ getStakes()

const std::vector<SignedStake>& avalanche::Proof::getStakes ( ) const
inline

Definition at line 94 of file proof.h.

Here is the caller graph for this function:

◆ SERIALIZE_METHODS()

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

Definition at line 86 of file proof.h.

◆ verify() [1/2]

bool avalanche::Proof::verify ( ProofValidationState state) const

Definition at line 52 of file proof.cpp.

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

◆ verify() [2/2]

bool avalanche::Proof::verify ( ProofValidationState state,
const CCoinsView view 
) const

Definition at line 76 of file proof.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ expirationTime

int64_t avalanche::Proof::expirationTime
private

Definition at line 71 of file proof.h.

◆ master

CPubKey avalanche::Proof::master
private

Definition at line 72 of file proof.h.

◆ proofid

ProofId avalanche::Proof::proofid
private

Definition at line 75 of file proof.h.

◆ sequence

uint64_t avalanche::Proof::sequence
private

Definition at line 70 of file proof.h.

◆ stakes

std::vector<SignedStake> avalanche::Proof::stakes
private

Definition at line 73 of file proof.h.


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