Kagome
Polkadot Runtime Engine in C++17
kagome::crypto::SessionKeys Class Reference

#include <session_keys.hpp>

Collaboration diagram for kagome::crypto::SessionKeys:

Public Member Functions

 SessionKeys (std::shared_ptr< CryptoStore > store, const network::Roles &roles)
 
const std::shared_ptr< Sr25519Keypair > & getBabeKeyPair ()
 
const std::shared_ptr< Ed25519Keypair > & getGranKeyPair ()
 
const std::shared_ptr< Sr25519Keypair > & getParaKeyPair ()
 
const std::shared_ptr< Sr25519Keypair > & getAudiKeyPair ()
 

Private Attributes

std::shared_ptr< Sr25519Keypairbabe_key_pair_
 
std::shared_ptr< Ed25519Keypairgran_key_pair_
 
std::shared_ptr< Sr25519Keypairpara_key_pair_
 
std::shared_ptr< Sr25519Keypairaudi_key_pair_
 
network::Roles roles_
 
std::shared_ptr< CryptoStorestore_
 

Detailed Description

Definition at line 30 of file session_keys.hpp.

Constructor & Destructor Documentation

kagome::crypto::SessionKeys::SessionKeys ( std::shared_ptr< CryptoStore store,
const network::Roles roles 
)

Definition at line 12 of file session_keys.cpp.

Member Function Documentation

const std::shared_ptr< Sr25519Keypair > & kagome::crypto::SessionKeys::getAudiKeyPair ( )
Returns
current AUDI session key pair

Definition at line 49 of file session_keys.cpp.

const std::shared_ptr< Sr25519Keypair > & kagome::crypto::SessionKeys::getBabeKeyPair ( )
Returns
current BABE session key pair

Definition at line 16 of file session_keys.cpp.

const std::shared_ptr< Ed25519Keypair > & kagome::crypto::SessionKeys::getGranKeyPair ( )
Returns
current GRANDPA session key pair

Definition at line 27 of file session_keys.cpp.

const std::shared_ptr< Sr25519Keypair > & kagome::crypto::SessionKeys::getParaKeyPair ( )
Returns
current parachain validator session key pair

Definition at line 38 of file session_keys.cpp.

Member Data Documentation

std::shared_ptr<Sr25519Keypair> kagome::crypto::SessionKeys::audi_key_pair_
private

Definition at line 34 of file session_keys.hpp.

std::shared_ptr<Sr25519Keypair> kagome::crypto::SessionKeys::babe_key_pair_
private

Definition at line 31 of file session_keys.hpp.

std::shared_ptr<Ed25519Keypair> kagome::crypto::SessionKeys::gran_key_pair_
private

Definition at line 32 of file session_keys.hpp.

std::shared_ptr<Sr25519Keypair> kagome::crypto::SessionKeys::para_key_pair_
private

Definition at line 33 of file session_keys.hpp.

network::Roles kagome::crypto::SessionKeys::roles_
private

Definition at line 35 of file session_keys.hpp.

std::shared_ptr<CryptoStore> kagome::crypto::SessionKeys::store_
private

Definition at line 36 of file session_keys.hpp.


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