|
plebble
|
#include <cfg1.h>


Public Types | |
| typedef cfg0 | b |
| typedef crypto::ec::keys | keys_t |
Public Member Functions | |
| virtual | ~cfg1 () |
| cfg1 (const keys_t::priv_t &privk, const string &home) | |
| cfg1 (const cfg1 &other) | |
| cfg1 (PrivateKey privk, String home_) | |
| cfg1 (cfg1 other) | |
Public Member Functions inherited from us::gov::io::cfg0 | |
| virtual | ~cfg0 () |
| cfg0 (const string &home) | |
| cfg0 (const cfg0 &other) | |
| cfg0 (String home_) | |
| cfg0 (cfg0 other) | |
Static Public Member Functions | |
| static pair< us::ko, keys_t::priv_t > | load_sk (const string &home) |
| static string | k_file (const string &home) |
| static ko | write_k (const string &home, const keys_t::priv_t &priv) |
| static pair< ko, cfg1 * > | load (const string &home, bool gen) |
| static String | k_file (String home) |
| static ko | write_k (String home, PrivateKey priv) |
| static String | read_file (String path, Charset encoding) throws IOException |
| static pair< ko, PrivateKey > | load_sk (String home) |
| static pair< ko, cfg1 > | load (String home, boolean gen) |
Static Public Member Functions inherited from us::gov::io::cfg0 | |
| static void | check_platform () |
| static bool | is_big_endian () |
| static bool | mkdir (const string &d) |
| static bool | file_exists (const string &f) |
| static uint32_t | file_size (const string &f) |
| static bool | ensure_dir (const string &d) |
| static string | rewrite_path (const string &) |
| static bool | dir_exists (const string &d) |
| static string | abs_file (const string &home, const string &fn) |
| static void | mkdir_tree (string sub, string dir) |
| static pair< us::ko, cfg0 > | load (const string &home) |
| static void | trim (string &) |
| static void | to_identifier (string &) |
| static string | directory_of_file (const string &file) |
| static bool | ensure_writable (const string &file) |
| static string | file_content (const string &file) |
| static void | check_platform () |
| static String | abs_file (String home, String fn) |
| static boolean | dir_exists (String d) |
| static boolean | file_exists (String s) |
| static boolean | ensure_dir (String d) |
| static pair< ko, cfg0 > | load (String home) |
| static String | rewrite_path (String d) |
| static byte[] | read_file (String filename) |
| static String | read_text_file (String filename) |
Public Attributes | |
| keys_t | keys |
| KeyPair | keys |
Public Attributes inherited from us::gov::io::cfg0 | |
| string | home |
Static Public Attributes | |
| static const char * | KO_97832 |
| static const char * | KO_96857 |
| static const char * | KO_30291 |
| static const char * | KO_50493 |
| static const char * | KO_60987 |
| static final ko | KO_30291 =new ko("KO 30291 invalid k file.") |
| static final ko | KO_97832 =new ko("KO 97832 Secret key not found.") |
| static final ko | KO_96857 =new ko("KO 96857 Invalid private key.") |
| static final ko | KO_50493 =new ko("KO 50493 Cannot create home dir.") |
| static final ko | KO_97032 =new ko("KO 97032 Cannot create k file.") |
| static final ko | KO_60593 =new ko("KO 60593 Failure generating keys.") |
| static final ko | KO_86059 =new ko("KO 86059 Unable to set posix permissions.") |
Static Public Attributes inherited from us::gov::io::cfg0 | |
| static const char * | KO_96857 |
| static const char * | KO_60534 |
| static final ko | KO_60534 =new ko("KO 60534 Cannot create home dir.") |
Additional Inherited Members | |
Package Attributes inherited from us::gov::io::cfg0 | |
| String | home |
| typedef cfg0 us::gov::io::cfg1::b |
|
virtual |
| us::gov::io::cfg1::cfg1 | ( | const keys_t::priv_t & | privk, |
| const string & | home | ||
| ) |
| us::gov::io::cfg1::cfg1 | ( | const cfg1 & | other | ) |
|
inline |
References us::gov::crypto::ec.generate_keypair(), us::gov::crypto::ec.instance, and keys.

|
static |
|
inlinestatic |
References us::gov::io::cfg0.abs_file(), and us::gov::io::cfg0.home.

Referenced by us.wallet.cli.hmi::load_cfg(), and us.wallet.cli.hmi::run_offline().

References cfg1(), us::gov::io::cfg0.file_exists(), us.pair< f, s >.first, us::gov::crypto::ec.generate_keypair(), us::gov::io::cfg0.home, us::gov::crypto::ec.instance, us.ko.is_ko(), k_file(), KO_60593, KO_97832, us::gov::io::cfg0.load(), load_sk(), us.ok, us.pair< f, s >.second, and write_k().

|
static |
References us.gov.crypto.base58.decode(), us::gov::crypto::ec.get_private_key(), us::gov::io::cfg0.home, us::gov::crypto::ec.instance, k_file(), KO_96857, us.ok, and read_file().

|
inlinestatic |
|
static |
|
inlinestatic |
References us::gov::io::cfg0.ensure_dir(), us::gov::crypto::ec.generate_private_int(), us::gov::io::cfg0.home, us::gov::crypto::ec.instance, k_file(), KO_50493, KO_97032, and us.ok.

| keys_t us::gov::io::cfg1::keys |
Referenced by cfg1(), us.wallet.cli.hmi::get_keys(), and us.wallet.cli.hmi::start().
| KeyPair us.gov.io.cfg1.keys |
|
static |
|
static |
Referenced by write_k().
Referenced by load().
|
static |
|
static |
Referenced by load_sk().
Referenced by write_k().
|
static |
Referenced by load().