Kagome
Polkadot Runtime Engine in C++17
kagome::consensus::grandpa::VoteCryptoProvider Class Referenceabstract

#include <vote_crypto_provider.hpp>

Inheritance diagram for kagome::consensus::grandpa::VoteCryptoProvider:
Collaboration diagram for kagome::consensus::grandpa::VoteCryptoProvider:

Public Member Functions

virtual ~VoteCryptoProvider ()=default
 
virtual bool verifyPrimaryPropose (const SignedMessage &primary_propose) const =0
 
virtual bool verifyPrevote (const SignedMessage &prevote) const =0
 
virtual bool verifyPrecommit (const SignedMessage &precommit) const =0
 
virtual std::optional< SignedMessagesignPrimaryPropose (const PrimaryPropose &primary_propose) const =0
 
virtual std::optional< SignedMessagesignPrevote (const Prevote &prevote) const =0
 
virtual std::optional< SignedMessagesignPrecommit (const Precommit &precommit) const =0
 

Detailed Description

Statelessly verifies signatures of votes and signs votes

Definition at line 16 of file vote_crypto_provider.hpp.

Constructor & Destructor Documentation

virtual kagome::consensus::grandpa::VoteCryptoProvider::~VoteCryptoProvider ( )
virtualdefault

Member Function Documentation

virtual std::optional<SignedMessage> kagome::consensus::grandpa::VoteCryptoProvider::signPrecommit ( const Precommit precommit) const
pure virtual
virtual std::optional<SignedMessage> kagome::consensus::grandpa::VoteCryptoProvider::signPrevote ( const Prevote prevote) const
pure virtual
virtual std::optional<SignedMessage> kagome::consensus::grandpa::VoteCryptoProvider::signPrimaryPropose ( const PrimaryPropose primary_propose) const
pure virtual
virtual bool kagome::consensus::grandpa::VoteCryptoProvider::verifyPrecommit ( const SignedMessage precommit) const
pure virtual
virtual bool kagome::consensus::grandpa::VoteCryptoProvider::verifyPrevote ( const SignedMessage prevote) const
pure virtual
virtual bool kagome::consensus::grandpa::VoteCryptoProvider::verifyPrimaryPropose ( const SignedMessage primary_propose) const
pure virtual

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