sgns::application::KeyStorage¶
#include <key_storage.hpp>
Inherits from IComponent
Inherited by sgns::application::LocalKeyStorage
Public Functions¶
| Name | |
|---|---|
| ~KeyStorage() override =default | |
| virtual crypto::SR25519Keypair | getLocalSr25519Keypair() const =0 |
| virtual crypto::ED25519Keypair | getLocalEd25519Keypair() const =0 |
| virtual libp2p::crypto::KeyPair | getP2PKeypair() const =0 |
Additional inherited members¶
Public Functions inherited from IComponent
| Name | |
|---|---|
| virtual | ~IComponent() =default |
| virtual std::string | GetName() =0 |
Detailed Description¶
Stores crypto keys of the current node
Public Functions Documentation¶
function ~KeyStorage¶
function getLocalSr25519Keypair¶
Reimplemented by: sgns::application::LocalKeyStorage::getLocalSr25519Keypair
Get the node sr25519 keypair, which is used, for example, in PRODUCTION
function getLocalEd25519Keypair¶
Reimplemented by: sgns::application::LocalKeyStorage::getLocalEd25519Keypair
Get the node ed25519 keypair used in finality of verificaiton
function getP2PKeypair¶
Reimplemented by: sgns::application::LocalKeyStorage::getP2PKeypair
Get the node libp2p keypair, which is used by libp2p network library
Updated on 2026-03-04 at 13:10:43 -0800