Fabcoin Core  0.16.2
P2P Digital Currency
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
AccountManager Class Reference

Add account management functionnalities to CLI. More...

#include <AccountManager.h>

Public Member Functions

bool execute (int argc, char **argv)
 uses argc, argv provided by the CLI and executes implemented options. More...
 

Static Public Member Functions

static void streamAccountHelp (std::ostream &_out)
 stream account help section More...
 
static void streamWalletHelp (std::ostream &_out)
 stream wallet help section More...
 

Private Member Functions

std::string createPassword (std::string const &_prompt) const
 ask end user to create a password. More...
 
dev::KeyPair makeKey () const
 creates a ramdom secret/address pair. It uses ICAP. More...
 
bool openWallet ()
 instanciate KeyManager and open the wallet. More...
 

Private Attributes

std::unique_ptr< dev::eth::KeyManagerm_keyManager
 

Detailed Description

Add account management functionnalities to CLI.

account list account new account update account import wallet import (import presale wallet)

Definition at line 32 of file AccountManager.h.

Member Function Documentation

string AccountManager::createPassword ( std::string const &  _prompt) const
private

ask end user to create a password.

Definition at line 202 of file AccountManager.cpp.

Here is the call graph for this function:

bool AccountManager::execute ( int  argc,
char **  argv 
)

uses argc, argv provided by the CLI and executes implemented options.

Definition at line 46 of file AccountManager.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

KeyPair AccountManager::makeKey ( ) const
private

creates a ramdom secret/address pair. It uses ICAP.

Definition at line 216 of file AccountManager.cpp.

Here is the call graph for this function:

bool AccountManager::openWallet ( )
private

instanciate KeyManager and open the wallet.

Definition at line 225 of file AccountManager.cpp.

Here is the call graph for this function:

void AccountManager::streamAccountHelp ( std::ostream &  _out)
static

stream account help section

Definition at line 31 of file AccountManager.cpp.

Here is the caller graph for this function:

void AccountManager::streamWalletHelp ( std::ostream &  _out)
static

stream wallet help section

Definition at line 40 of file AccountManager.cpp.

Here is the caller graph for this function:

Member Data Documentation

std::unique_ptr<dev::eth::KeyManager> AccountManager::m_keyManager
private

Definition at line 50 of file AccountManager.h.


The documentation for this class was generated from the following files: