#include "keys_manager.hpp"


Public Member Functions | |
| virtual | ~KeysManager ()=default |
| virtual bool | createKeys (const boost::optional< std::string > &pass_phrase)=0 |
| virtual iroha::expected::Result< shared_model::crypto::Keypair, std::string > | loadKeys (const boost::optional< std::string > &pass_phrase)=0 |
Interface provides facilities to create and store keypair on disk.
|
virtualdefault |
|
pure virtual |
Create keys of a new keypair and store them on disk. If pass phrase is provided, the private key is encrypted.
| pass_phrase | (optional) used for private key encryption |
Implemented in iroha::KeysManagerImpl.
|
pure virtual |
Load keys associated with the manager, then validate loaded keypair by signing and verifying the signature of a test message.
| pass_phrase | (optional) is used to decrypt the private key |
Implemented in iroha::KeysManagerImpl.