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