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

#include <proof.h>

Collaboration diagram for avalanche::SignedStake:

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 ( )

◆ SignedStake() [2/2]

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

Definition at line 91 of file proof.h.

Member Function Documentation

◆ getSignature()

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

Definition at line 97 of file proof.h.

◆ getStake()

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

Definition at line 96 of file proof.h.

Here is the caller graph for this function:


avalanche::SignedStake::SERIALIZE_METHODS ( SignedStake  ,

Definition at line 94 of file proof.h.

◆ 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

Definition at line 87 of file proof.h.

◆ stake

Stake avalanche::SignedStake::stake

Definition at line 86 of file proof.h.

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