TARAXA
|
Functions | |
void | generateAccount () |
void | generateAccount (const dev::KeyPair &account) |
void | generateAccountFromKey (const std::string &key) |
void | generateVrf () |
void | generateVrf (const taraxa::vrf_wrapper::vrf_sk_t &sk, const taraxa::vrf_wrapper::vrf_pk_t &pk) |
void | generateVrfFromKey (const std::string &key) |
int | getChainIdFromString (std::string &chain_str) |
void | getConfig (const std::string &config, cli::Config::ChainIdType chain_id) |
Json::Value | getConfig (Config::ChainIdType chain_id) |
Json::Value | getGenesis (Config::ChainIdType chain_id) |
void | generateWallet (const std::string &wallet) |
Json::Value | overrideConfig (Json::Value &config, std::string &data_dir, const std::vector< std::string > &boot_nodes, const std::vector< std::string > &log_channels, const std::vector< std::string > &log_configurations, const std::vector< std::string > &boot_nodes_append, const std::vector< std::string > &log_channels_append) |
Json::Value | overrideWallet (Json::Value &wallet, const std::string &node_key, const std::string &vrf_key) |
std::string | getHomeDir () |
std::string | getTaraxaDefaultDir () |
std::string | getTaraxaDataDefaultDir () |
std::string | getTaraxaDefaultConfigFile () |
std::string | getTaraxaDefaultWalletFile () |
std::string | getTaraxaDefaultGenesisFile () |
Json::Value | createWalletJson (const dev::KeyPair &account, const taraxa::vrf_wrapper::vrf_sk_t &sk, const taraxa::vrf_wrapper::vrf_pk_t &pk) |
Json::Value | overrideConfig (Json::Value &conf, std::string &data_dir, const vector< string > &boot_nodes, const vector< string > &log_channels, const vector< string > &log_configurations, const vector< string > &boot_nodes_append, const vector< string > &log_channels_append) |
void | generateWallet (const string &wallet) |
void | generateAccountFromKey (const string &key) |
void | generateVrfFromKey (const string &key) |
Variables | |
constexpr const char * | DEFAULT_TARAXA_DIR_NAME = ".taraxa" |
constexpr const char * | DEFAULT_TARAXA_DATA_DIR_NAME = ".taraxa/data" |
constexpr const char * | DEFAULT_WALLET_FILE_NAME = "wallet.json" |
constexpr const char * | DEFAULT_CONFIG_FILE_NAME = "config.json" |
constexpr const char * | DEFAULT_GENESIS_FILE_NAME = "genesis.json" |
const std::filesystem::path | configs_path = std::filesystem::current_path() / "config_jsons" |
Json::Value taraxa::cli::tools::createWalletJson | ( | const dev::KeyPair & | account, |
const taraxa::vrf_wrapper::vrf_sk_t & | sk, | ||
const taraxa::vrf_wrapper::vrf_pk_t & | pk | ||
) |
void taraxa::cli::tools::generateAccount | ( | ) |
void taraxa::cli::tools::generateAccount | ( | const dev::KeyPair & | account | ) |
void taraxa::cli::tools::generateAccountFromKey | ( | const std::string & | key | ) |
void taraxa::cli::tools::generateAccountFromKey | ( | const string & | key | ) |
void taraxa::cli::tools::generateVrf | ( | ) |
void taraxa::cli::tools::generateVrf | ( | const taraxa::vrf_wrapper::vrf_sk_t & | sk, |
const taraxa::vrf_wrapper::vrf_pk_t & | pk | ||
) |
void taraxa::cli::tools::generateVrfFromKey | ( | const std::string & | key | ) |
void taraxa::cli::tools::generateVrfFromKey | ( | const string & | key | ) |
void taraxa::cli::tools::generateWallet | ( | const std::string & | wallet | ) |
void taraxa::cli::tools::generateWallet | ( | const string & | wallet | ) |
int taraxa::cli::tools::getChainIdFromString | ( | std::string & | chain_str | ) |
Json::Value taraxa::cli::tools::getConfig | ( | Config::ChainIdType | chain_id | ) |
void taraxa::cli::tools::getConfig | ( | const std::string & | config, |
cli::Config::ChainIdType | chain_id | ||
) |
Json::Value taraxa::cli::tools::getGenesis | ( | Config::ChainIdType | chain_id | ) |
string taraxa::cli::tools::getHomeDir | ( | ) |
string taraxa::cli::tools::getTaraxaDataDefaultDir | ( | ) |
string taraxa::cli::tools::getTaraxaDefaultConfigFile | ( | ) |
string taraxa::cli::tools::getTaraxaDefaultDir | ( | ) |
string taraxa::cli::tools::getTaraxaDefaultGenesisFile | ( | ) |
string taraxa::cli::tools::getTaraxaDefaultWalletFile | ( | ) |
Json::Value taraxa::cli::tools::overrideConfig | ( | Json::Value & | conf, |
std::string & | data_dir, | ||
const vector< string > & | boot_nodes, | ||
const vector< string > & | log_channels, | ||
const vector< string > & | log_configurations, | ||
const vector< string > & | boot_nodes_append, | ||
const vector< string > & | log_channels_append | ||
) |
Json::Value taraxa::cli::tools::overrideConfig | ( | Json::Value & | config, |
std::string & | data_dir, | ||
const std::vector< std::string > & | boot_nodes, | ||
const std::vector< std::string > & | log_channels, | ||
const std::vector< std::string > & | log_configurations, | ||
const std::vector< std::string > & | boot_nodes_append, | ||
const std::vector< std::string > & | log_channels_append | ||
) |
Json::Value taraxa::cli::tools::overrideWallet | ( | Json::Value & | wallet, |
const std::string & | node_key, | ||
const std::string & | vrf_key | ||
) |
const std::filesystem::path taraxa::cli::tools::configs_path = std::filesystem::current_path() / "config_jsons" |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |