Kagome
Polkadot Runtime Engine in C++17
|
#include <vote_crypto_provider_impl.hpp>
Public Member Functions | |
~VoteCryptoProviderImpl () override=default | |
VoteCryptoProviderImpl (const std::shared_ptr< crypto::Ed25519Keypair > &keypair, std::shared_ptr< crypto::Ed25519Provider > ed_provider, RoundNumber round_number, std::shared_ptr< VoterSet > voter_set) | |
bool | verifyPrimaryPropose (const SignedMessage &primary_propose) const override |
bool | verifyPrevote (const SignedMessage &prevote) const override |
bool | verifyPrecommit (const SignedMessage &precommit) const override |
std::optional< SignedMessage > | signPrimaryPropose (const PrimaryPropose &primary_propose) const override |
std::optional< SignedMessage > | signPrevote (const Prevote &prevote) const override |
std::optional< SignedMessage > | signPrecommit (const Precommit &precommit) const override |
Public Member Functions inherited from kagome::consensus::grandpa::VoteCryptoProvider | |
virtual | ~VoteCryptoProvider ()=default |
Private Member Functions | |
std::optional< SignedMessage > | sign (Vote vote) const |
bool | verify (const SignedMessage &vote, RoundNumber number) const |
Private Attributes | |
const std::shared_ptr< crypto::Ed25519Keypair > & | keypair_ |
std::shared_ptr< crypto::Ed25519Provider > | ed_provider_ |
const RoundNumber | round_number_ |
std::shared_ptr< VoterSet > | voter_set_ |
Definition at line 15 of file vote_crypto_provider_impl.hpp.
|
overridedefault |
kagome::consensus::grandpa::VoteCryptoProviderImpl::VoteCryptoProviderImpl | ( | const std::shared_ptr< crypto::Ed25519Keypair > & | keypair, |
std::shared_ptr< crypto::Ed25519Provider > | ed_provider, | ||
RoundNumber | round_number, | ||
std::shared_ptr< VoterSet > | voter_set | ||
) |
Definition at line 13 of file vote_crypto_provider_impl.cpp.
|
private |
Definition at line 23 of file vote_crypto_provider_impl.cpp.
|
overridevirtual |
Implements kagome::consensus::grandpa::VoteCryptoProvider.
Definition at line 92 of file vote_crypto_provider_impl.cpp.
|
overridevirtual |
Implements kagome::consensus::grandpa::VoteCryptoProvider.
Definition at line 87 of file vote_crypto_provider_impl.cpp.
|
overridevirtual |
Implements kagome::consensus::grandpa::VoteCryptoProvider.
Definition at line 82 of file vote_crypto_provider_impl.cpp.
|
private |
Definition at line 34 of file vote_crypto_provider_impl.cpp.
|
overridevirtual |
Implements kagome::consensus::grandpa::VoteCryptoProvider.
Definition at line 77 of file vote_crypto_provider_impl.cpp.
|
overridevirtual |
Implements kagome::consensus::grandpa::VoteCryptoProvider.
Definition at line 73 of file vote_crypto_provider_impl.cpp.
|
overridevirtual |
Implements kagome::consensus::grandpa::VoteCryptoProvider.
Definition at line 68 of file vote_crypto_provider_impl.cpp.
|
private |
Definition at line 42 of file vote_crypto_provider_impl.hpp.
|
private |
Definition at line 41 of file vote_crypto_provider_impl.hpp.
|
private |
Definition at line 43 of file vote_crypto_provider_impl.hpp.
|
private |
Definition at line 44 of file vote_crypto_provider_impl.hpp.