Kagome
Polkadot Runtime Engine in C++17
|
#include <crypto_store.hpp>
Public Types | |
using | Path = boost::filesystem::path |
using | EcdsaKeys = std::vector< EcdsaPublicKey > |
using | Ed25519Keys = std::vector< Ed25519PublicKey > |
using | Sr25519Keys = std::vector< Sr25519PublicKey > |
using | EcdsaKeypairs = std::vector< EcdsaKeypair > |
using | Ed25519Keypairs = std::vector< Ed25519Keypair > |
using | Sr25519Keypairs = std::vector< Sr25519Keypair > |
Public Member Functions | |
virtual | ~CryptoStore ()=default |
virtual outcome::result< EcdsaKeypair > | generateEcdsaKeypair (KeyTypeId key_type, std::string_view mnemonic_phrase)=0 |
generates ecdsa keypair and stores it in memory More... | |
virtual outcome::result< Ed25519Keypair > | generateEd25519Keypair (KeyTypeId key_type, std::string_view mnemonic_phrase)=0 |
generates Ed25519 keypair and stores it in memory More... | |
virtual outcome::result< Sr25519Keypair > | generateSr25519Keypair (KeyTypeId key_type, std::string_view mnemonic_phrase)=0 |
generates SR25519 keypair and stores it in memory More... | |
virtual outcome::result< EcdsaKeypair > | generateEcdsaKeypair (KeyTypeId key_type, const EcdsaSeed &seed)=0 |
generates ecdsa keypair and stores it in memory More... | |
virtual outcome::result< Ed25519Keypair > | generateEd25519Keypair (KeyTypeId key_type, const Ed25519Seed &seed)=0 |
generates Ed25519 keypair and stores it in memory More... | |
virtual outcome::result< Sr25519Keypair > | generateSr25519Keypair (KeyTypeId key_type, const Sr25519Seed &seed)=0 |
generates SR25519 keypair and stores it in memory More... | |
virtual outcome::result< EcdsaKeypair > | generateEcdsaKeypairOnDisk (KeyTypeId key_type)=0 |
generates ecdsa keypair and stores it on disk More... | |
virtual outcome::result< Ed25519Keypair > | generateEd25519KeypairOnDisk (KeyTypeId key_type)=0 |
generates Ed25519 keypair and stores it on disk More... | |
virtual outcome::result< Sr25519Keypair > | generateSr25519KeypairOnDisk (KeyTypeId key_type)=0 |
generates SR25519 keypair and stores it on disk More... | |
virtual outcome::result< EcdsaKeypair > | findEcdsaKeypair (KeyTypeId key_type, const EcdsaPublicKey &pk) const =0 |
searches for key pair More... | |
virtual outcome::result< Ed25519Keypair > | findEd25519Keypair (KeyTypeId key_type, const Ed25519PublicKey &pk) const =0 |
searches for key pair More... | |
virtual outcome::result< Sr25519Keypair > | findSr25519Keypair (KeyTypeId key_type, const Sr25519PublicKey &pk) const =0 |
searches for key pair More... | |
virtual outcome::result< EcdsaKeys > | getEcdsaPublicKeys (KeyTypeId key_type) const =0 |
searches for ecdsa keys of specified type More... | |
virtual outcome::result< Ed25519Keys > | getEd25519PublicKeys (KeyTypeId key_type) const =0 |
searches for Ed25519 keys of specified type More... | |
virtual outcome::result< Sr25519Keys > | getSr25519PublicKeys (KeyTypeId key_type) const =0 |
searches for SR25519 keys of specified type More... | |
virtual std::optional< libp2p::crypto::KeyPair > | getLibp2pKeypair () const =0 |
virtual outcome::result< libp2p::crypto::KeyPair > | loadLibp2pKeypair (const Path &key_path) const =0 |
Definition at line 23 of file crypto_store.hpp.
using kagome::crypto::CryptoStore::EcdsaKeypairs = std::vector<EcdsaKeypair> |
Definition at line 34 of file crypto_store.hpp.
using kagome::crypto::CryptoStore::EcdsaKeys = std::vector<EcdsaPublicKey> |
Definition at line 31 of file crypto_store.hpp.
using kagome::crypto::CryptoStore::Ed25519Keypairs = std::vector<Ed25519Keypair> |
Definition at line 35 of file crypto_store.hpp.
using kagome::crypto::CryptoStore::Ed25519Keys = std::vector<Ed25519PublicKey> |
Definition at line 32 of file crypto_store.hpp.
using kagome::crypto::CryptoStore::Path = boost::filesystem::path |
Definition at line 27 of file crypto_store.hpp.
using kagome::crypto::CryptoStore::Sr25519Keypairs = std::vector<Sr25519Keypair> |
Definition at line 36 of file crypto_store.hpp.
using kagome::crypto::CryptoStore::Sr25519Keys = std::vector<Sr25519PublicKey> |
Definition at line 33 of file crypto_store.hpp.
|
virtualdefault |
|
pure virtual |
searches for key pair
key_type | key category |
pk | public key to look for |
Implemented in kagome::crypto::CryptoStoreImpl.
|
pure virtual |
searches for key pair
key_type | key category |
pk | public key to look for |
Implemented in kagome::crypto::CryptoStoreImpl.
|
pure virtual |
searches for key pair
key_type | key category |
pk | public key to look for |
Implemented in kagome::crypto::CryptoStoreImpl.
|
pure virtual |
generates ecdsa keypair and stores it in memory
key_type | key type identifier |
mnemonic_phrase | mnemonic phrase |
Implemented in kagome::crypto::CryptoStoreImpl.
|
pure virtual |
generates ecdsa keypair and stores it in memory
key_type | key type identifier |
seed | seed for generating keys |
Implemented in kagome::crypto::CryptoStoreImpl.
|
pure virtual |
generates ecdsa keypair and stores it on disk
key_type | key type identifier |
Implemented in kagome::crypto::CryptoStoreImpl.
|
pure virtual |
generates Ed25519 keypair and stores it in memory
key_type | key type identifier |
mnemonic_phrase | mnemonic phrase |
Implemented in kagome::crypto::CryptoStoreImpl.
|
pure virtual |
generates Ed25519 keypair and stores it in memory
key_type | key type identifier |
seed | seed for generating keys |
Implemented in kagome::crypto::CryptoStoreImpl.
|
pure virtual |
generates Ed25519 keypair and stores it on disk
key_type | key type identifier |
Implemented in kagome::crypto::CryptoStoreImpl.
|
pure virtual |
generates SR25519 keypair and stores it in memory
key_type | key type identifier |
mnemonic_phrase | mnemonic phrase |
Implemented in kagome::crypto::CryptoStoreImpl.
|
pure virtual |
generates SR25519 keypair and stores it in memory
key_type | key type identifier |
seed | seed for generating keys |
Implemented in kagome::crypto::CryptoStoreImpl.
|
pure virtual |
generates SR25519 keypair and stores it on disk
key_type | key type identifier |
Implemented in kagome::crypto::CryptoStoreImpl.
|
pure virtual |
searches for ecdsa keys of specified type
key_type | key type identifier to look for |
Implemented in kagome::crypto::CryptoStoreImpl.
|
pure virtual |
searches for Ed25519 keys of specified type
key_type | key type identifier to look for |
Implemented in kagome::crypto::CryptoStoreImpl.
|
pure virtual |
Implemented in kagome::crypto::CryptoStoreImpl.
|
pure virtual |
searches for SR25519 keys of specified type
key_type | key type identifier to look for |
Implemented in kagome::crypto::CryptoStoreImpl.
|
pure virtual |
Acquires the key from user-provided path or generates and saves the key under the path. Used when –node-key-file flag gets processed.
path | - path the key file (raw bytes or hex-encoded) |
Implemented in kagome::crypto::CryptoStoreImpl.