const vote_hash_t & getHash() const
Get vote hash.
Definition: vote.cpp:15
const sig_t & getVoteSignature() const
Get vote signature.
Definition: vote.cpp:30
bool verifyVote() const
Verify vote.
Definition: vote.cpp:34
const public_t & getVoter() const
Get voter public key.
Definition: vote.cpp:20
public_t cached_voter_
Definition: vote.hpp:75
const addr_t & getVoterAddr() const
Get voter address.
Definition: vote.cpp:25
const blk_hash_t & getBlockHash() const
Get PBFT block hash that votes on.
Definition: vote.cpp:32
virtual vote_hash_t sha3(bool inc_sig) const =0
Secure Hash Algorithm 3.
void signVote(const secret_t &node_sk)
Sign the vote.
Definition: vote.cpp:9
vote_hash_t vote_hash_
Definition: vote.hpp:74
addr_t cached_voter_addr_
Definition: vote.hpp:76
blk_hash_t block_hash_
Definition: vote.hpp:71
sig_t vote_signature_
Definition: vote.hpp:72
Vote class is a vote class that includes vote hash, vote on PBFT block hash, vote signature,...
Definition: vote.hpp:15