| 
    rippled
    
   | 
 
Immutable cryptographic account descriptor. More...
#include <Account.h>

Classes | |
| struct | privateCtorTag | 
Public Types | |
| enum | AcctStringType { base58Seed , other } | 
Public Member Functions | |
| Account ()=delete | |
| Account (Account &&)=default | |
| Account (Account const &)=default | |
| Account & | operator= (Account const &)=default | 
| Account & | operator= (Account &&)=default | 
| Account (std::string name, AccountID const &id) | |
| Create an Account from an account ID.   | |
| Account (AcctStringType stringType, std::string base58SeedStr) | |
| Create an account from a base58 seed string.   | |
| std::string const & | name () const | 
| Return the name.   | |
| PublicKey const & | pk () const | 
| Return the public key.   | |
| SecretKey const & | sk () const | 
| Return the secret key.   | |
| AccountID | id () const | 
| Returns the Account ID.   | |
| std::string const & | human () const | 
| Returns the human readable public key.   | |
| operator AccountID () const | |
| Implicit conversion to AccountID.   | |
| IOU | operator[] (std::string const &s) const | 
| Returns an IOU for the specified gateway currency.   | |
| Account (std::string name, KeyType type=KeyType::secp256k1) | |
| Create an account from a simple string name.   | |
| Account (char const *name, KeyType type=KeyType::secp256k1) | |
| Account (std::string name, std::pair< PublicKey, SecretKey > const &keys, Account::privateCtorTag) | |
Static Public Attributes | |
| static Account const | master | 
| The master account.   | |
Static Private Member Functions | |
| static Account | fromCache (AcctStringType stringType, std::string name, KeyType type) | 
Private Attributes | |
| std::string | name_ | 
| PublicKey | pk_ | 
| SecretKey | sk_ | 
| AccountID | id_ | 
| std::string | human_ | 
Static Private Attributes | |
| static std::unordered_map< std::pair< std::string, KeyType >, Account, beast::uhash<> > | cache_ | 
      
  | 
  delete | 
      
  | 
  default | 
      
  | 
  default | 
| ripple::test::jtx::Account::Account | ( | std::string | name, | 
| KeyType | type = KeyType::secp256k1  | 
        ||
| ) | 
Create an account from a simple string name.
Definition at line 57 of file Account.cpp.
| ripple::test::jtx::Account::Account | ( | char const * | name, | 
| KeyType | type = KeyType::secp256k1  | 
        ||
| ) | 
| ripple::test::jtx::Account::Account | ( | std::string | name, | 
| std::pair< PublicKey, SecretKey > const & | keys, | ||
| Account::privateCtorTag | |||
| ) | 
Definition at line 18 of file Account.cpp.
      
  | 
  explicit | 
Create an Account from an account ID.
Should only be used when the secret key is unavailable, such as for pseudo-accounts.
Definition at line 70 of file Account.cpp.
| ripple::test::jtx::Account::Account | ( | AcctStringType | stringType, | 
| std::string | base58SeedStr | ||
| ) | 
Create an account from a base58 seed string.
Throws on invalid seed.
Definition at line 62 of file Account.cpp.
| std::string const & ripple::test::jtx::Account::name | ( | ) | const | 
| PublicKey const & ripple::test::jtx::Account::pk | ( | ) | const | 
| SecretKey const & ripple::test::jtx::Account::sk | ( | ) | const | 
| AccountID ripple::test::jtx::Account::id | ( | ) | const | 
| std::string const & ripple::test::jtx::Account::human | ( | ) | const | 
| ripple::test::jtx::Account::operator AccountID | ( | ) | const | 
| IOU ripple::test::jtx::Account::operator[] | ( | std::string const & | s | ) | const | 
Returns an IOU for the specified gateway currency.
Definition at line 79 of file Account.cpp.
      
  | 
  staticprivate | 
Definition at line 31 of file Account.cpp.
      
  | 
  static | 
      
  | 
  staticprivate | 
      
  | 
  private | 
      
  | 
  private |