20 #ifndef RIPPLE_TEST_JTX_ACCOUNT_H_INCLUDED
21 #define RIPPLE_TEST_JTX_ACCOUNT_H_INCLUDED
23 #include <ripple/beast/hash/uhash.h>
24 #include <ripple/protocol/KeyType.h>
25 #include <ripple/protocol/SecretKey.h>
26 #include <ripple/protocol/UintTypes.h>
151 return lhs.id() == rhs.id();
154 template <
class Hasher>
164 return lhs.id() < rhs.id();
std::string const & name() const
Return the name.
void hash_append(Hasher &h, Account const &v) noexcept
std::string const & human() const
Returns the human readable public key.
AccountID id() const
Returns the Account ID.
static const Account master
The master account.
IOU operator[](std::string const &s) const
Returns an IOU for the specified gateway currency.
bool operator<(Account const &lhs, Account const &rhs) noexcept
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Converts to IOU Issue or STAmount.
static std::unordered_map< std::pair< std::string, KeyType >, Account, beast::uhash<> > cache_
Account & operator=(Account const &)=default
Immutable cryptographic account descriptor.
SecretKey const & sk() const
Return the secret key.
static Account fromCache(AcctStringType stringType, std::string name, KeyType type)
bool operator==(Account const &lhs, Account const &rhs) noexcept
PublicKey const & pk() const
Return the public key.
Account(char const *name, KeyType type=KeyType::secp256k1)