Kagome
Polkadot Runtime Engine in C++17
|
#include <key_cache.hpp>
Public Types | |
using | PublicKey = typename CryptoSuite::PublicKey |
using | PrivateKey = typename CryptoSuite::PrivateKey |
using | Keypair = typename CryptoSuite::Keypair |
using | Seed = typename CryptoSuite::Seed |
Public Member Functions | |
KeyCache (KeyTypeId type, std::shared_ptr< CryptoSuite > suite) | |
void | insert (PublicKey pubkey, PrivateKey privkey) |
std::optional< Keypair > const & | getSessionKey () const noexcept |
std::unordered_set< PublicKey > | getPublicKeys () const |
std::optional< Keypair > | searchKeypair (const PublicKey &key) const |
Private Attributes | |
KeyTypeId | type_ |
std::optional< Keypair > | session_key_ |
std::unordered_map< PublicKey, PrivateKey > | cache_ |
std::shared_ptr< CryptoSuite > | suite_ |
In-memory cache of keys belonging to the same crypto suite and the same key type
Definition at line 26 of file key_cache.hpp.
using kagome::crypto::KeyCache< CryptoSuite >::Keypair = typename CryptoSuite::Keypair |
Definition at line 30 of file key_cache.hpp.
using kagome::crypto::KeyCache< CryptoSuite >::PrivateKey = typename CryptoSuite::PrivateKey |
Definition at line 29 of file key_cache.hpp.
using kagome::crypto::KeyCache< CryptoSuite >::PublicKey = typename CryptoSuite::PublicKey |
Definition at line 28 of file key_cache.hpp.
using kagome::crypto::KeyCache< CryptoSuite >::Seed = typename CryptoSuite::Seed |
Definition at line 31 of file key_cache.hpp.
|
inlineexplicit |
Definition at line 33 of file key_cache.hpp.
|
inline |
Definition at line 54 of file key_cache.hpp.
|
inlinenoexcept |
Session keys are short-living keys used by the node
Definition at line 50 of file key_cache.hpp.
|
inline |
Definition at line 38 of file key_cache.hpp.
|
inline |
Definition at line 62 of file key_cache.hpp.
|
private |
Definition at line 73 of file key_cache.hpp.
|
private |
Definition at line 72 of file key_cache.hpp.
|
private |
Definition at line 74 of file key_cache.hpp.
|
private |
Definition at line 71 of file key_cache.hpp.