Kagome
Polkadot Runtime Engine in C++17
|
Creates validator signer. More...
#include <signer.hpp>
Public Member Functions | |
ValidatorSignerFactory (std::shared_ptr< runtime::ParachainHost > parachain_api, std::shared_ptr< crypto::SessionKeys > session_keys, std::shared_ptr< crypto::Hasher > hasher, std::shared_ptr< crypto::Sr25519Provider > sr25519_provider) | |
outcome::result< std::optional< ValidatorSigner > > | at (const primitives::BlockHash &relay_parent) |
Create validator signer if keypair belongs to validator at given block. More... | |
Private Attributes | |
std::shared_ptr< runtime::ParachainHost > | parachain_api_ |
std::shared_ptr< crypto::SessionKeys > | session_keys_ |
std::shared_ptr< crypto::Hasher > | hasher_ |
std::shared_ptr< crypto::Sr25519Provider > | sr25519_provider_ |
Creates validator signer.
Definition at line 89 of file signer.hpp.
kagome::parachain::ValidatorSignerFactory::ValidatorSignerFactory | ( | std::shared_ptr< runtime::ParachainHost > | parachain_api, |
std::shared_ptr< crypto::SessionKeys > | session_keys, | ||
std::shared_ptr< crypto::Hasher > | hasher, | ||
std::shared_ptr< crypto::Sr25519Provider > | sr25519_provider | ||
) |
Definition at line 37 of file signer.cpp.
outcome::result< std::optional< ValidatorSigner > > kagome::parachain::ValidatorSignerFactory::at | ( | const primitives::BlockHash & | relay_parent | ) |
Create validator signer if keypair belongs to validator at given block.
Definition at line 47 of file signer.cpp.
|
private |
Definition at line 104 of file signer.hpp.
|
private |
Definition at line 102 of file signer.hpp.
|
private |
Definition at line 103 of file signer.hpp.
|
private |
Definition at line 105 of file signer.hpp.