Kagome
Polkadot Runtime Engine in C++17
kagome::parachain::ValidatorSignerFactory Class Reference

Creates validator signer. More...

#include <signer.hpp>

Collaboration diagram for kagome::parachain::ValidatorSignerFactory:

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::ParachainHostparachain_api_
 
std::shared_ptr< crypto::SessionKeyssession_keys_
 
std::shared_ptr< crypto::Hasherhasher_
 
std::shared_ptr< crypto::Sr25519Providersr25519_provider_
 

Detailed Description

Creates validator signer.

Definition at line 89 of file signer.hpp.

Constructor & Destructor Documentation

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.

Member Function Documentation

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.

Member Data Documentation

std::shared_ptr<crypto::Hasher> kagome::parachain::ValidatorSignerFactory::hasher_
private

Definition at line 104 of file signer.hpp.

std::shared_ptr<runtime::ParachainHost> kagome::parachain::ValidatorSignerFactory::parachain_api_
private

Definition at line 102 of file signer.hpp.

std::shared_ptr<crypto::SessionKeys> kagome::parachain::ValidatorSignerFactory::session_keys_
private

Definition at line 103 of file signer.hpp.

std::shared_ptr<crypto::Sr25519Provider> kagome::parachain::ValidatorSignerFactory::sr25519_provider_
private

Definition at line 105 of file signer.hpp.


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