Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
sysio::wallet Namespace Reference

Namespaces

namespace  detail
 

Classes

struct  plain_keys
 
class  se_wallet
 
class  soft_wallet
 
class  wallet_api
 
struct  wallet_data
 
class  wallet_manager
 
class  yubihsm_wallet
 

Typedefs

typedef uint16_t transaction_handle_type
 

Functions

std::string gen_password ()
 
bool valid_filename (const string &name)
 

Variables

constexpr auto file_ext = ".wallet"
 
constexpr auto password_prefix = "PW"
 

Typedef Documentation

◆ transaction_handle_type

Definition at line 14 of file wallet.hpp.

Function Documentation

◆ gen_password()

std::string sysio::wallet::gen_password ( )

Definition at line 13 of file wallet_manager.cpp.

13 {
14 auto key = private_key_type::generate();
15 return password_prefix + key.to_string();
16
17}
static private_key generate()
constexpr auto password_prefix
Here is the call graph for this function:
Here is the caller graph for this function:

◆ valid_filename()

bool sysio::wallet::valid_filename ( const string & name)

Definition at line 19 of file wallet_manager.cpp.

19 {
20 if (name.empty()) return false;
21 if (std::find_if(name.begin(), name.end(), !boost::algorithm::is_alnum() && !boost::algorithm::is_any_of("._-")) != name.end()) return false;
22 return boost::filesystem::path(name).filename().string() == name;
23}
std::string name
Immutable except for fc::from_variant.
Definition name.hpp:43
constexpr bool empty() const
Definition name.hpp:53
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ file_ext

auto sysio::wallet::file_ext = ".wallet"
constexpr

Definition at line 10 of file wallet_manager.cpp.

◆ password_prefix

auto sysio::wallet::password_prefix = "PW"
constexpr

Definition at line 11 of file wallet_manager.cpp.