1#include <test/jtx/Account.h> 
    2#include <test/jtx/amount.h> 
    4#include <xrpl/protocol/UintTypes.h> 
   16    Account::privateCtorTag{});
 
   22    : name_(
std::move(name))
 
 
   34    auto const iter = 
cache_.find(p);
 
   38    auto const keys = [stringType, &
name, type]() {
 
   44                Throw<std::runtime_error>(
"Account:: invalid base58 seed");
 
   54    return r.first->second;
 
 
   65          std::move(base58SeedStr),
 
 
   83    return IOU(*
this, currency);
 
 
Immutable cryptographic account descriptor.
 
AccountID id() const
Returns the Account ID.
 
static Account const master
The master account.
 
std::string const & name() const
Return the name.
 
IOU operator[](std::string const &s) const
Returns an IOU for the specified gateway currency.
 
static std::unordered_map< std::pair< std::string, KeyType >, Account, beast::uhash<> > cache_
 
static Account fromCache(AcctStringType stringType, std::string name, KeyType type)
 
Converts to IOU Issue or STAmount.
 
T forward_as_tuple(T... args)
 
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
 
std::string toBase58(AccountID const &v)
Convert AccountID to base58 checked string.
 
std::pair< PublicKey, SecretKey > generateKeyPair(KeyType type, Seed const &seed)
Generate a key pair deterministically.
 
Currency const & noCurrency()
A placeholder for empty currencies.
 
AccountID calcAccountID(PublicKey const &pk)
 
std::pair< PublicKey, SecretKey > randomKeyPair(KeyType type)
Create a key pair using secure random numbers.
 
Seed generateSeed(std::string const &passPhrase)
Generate a seed deterministically.
 
bool to_currency(Currency &, std::string const &)
Tries to convert a string to a Currency, returns true on success.