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

#include <proof.h>

Collaboration diagram for avalanche::SignedStake:
[legend]

Public Member Functions

 SignedStake ()=default
 
 SignedStake (Stake stake_, SchnorrSig sig_)
 
 SERIALIZE_METHODS (SignedStake, obj)
 
const StakegetStake () const
 
const SchnorrSiggetSignature () const
 
bool verify (const StakeCommitment &commitment) const
 

Private Attributes

Stake stake
 
SchnorrSig sig
 

Detailed Description

Definition at line 85 of file proof.h.

Constructor & Destructor Documentation

◆ SignedStake() [1/2]

avalanche::SignedStake::SignedStake ( )
explicitdefault

◆ SignedStake() [2/2]

avalanche::SignedStake::SignedStake ( Stake  stake_,
SchnorrSig  sig_ 
)
inline

Definition at line 91 of file proof.h.

Member Function Documentation

◆ getSignature()

const SchnorrSig & avalanche::SignedStake::getSignature ( ) const
inline

Definition at line 97 of file proof.h.

◆ getStake()

const Stake & avalanche::SignedStake::getStake ( ) const
inline

Definition at line 96 of file proof.h.

◆ SERIALIZE_METHODS()

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

Definition at line 94 of file proof.h.

Here is the call graph for this function:

◆ verify()

bool avalanche::SignedStake::verify ( const StakeCommitment commitment) const

Definition at line 47 of file proof.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ sig

SchnorrSig avalanche::SignedStake::sig
private

Definition at line 87 of file proof.h.

◆ stake

Stake avalanche::SignedStake::stake
private

Definition at line 86 of file proof.h.


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