20#ifndef RIPPLE_TEST_JTX_ACCOUNT_H_INCLUDED
21#define RIPPLE_TEST_JTX_ACCOUNT_H_INCLUDED
23#include <xrpl/beast/hash/uhash.h>
24#include <xrpl/protocol/KeyType.h>
25#include <xrpl/protocol/SecretKey.h>
26#include <xrpl/protocol/UintTypes.h>
152 return lhs.id() == rhs.id();
155template <
class Hasher>
165 return lhs.id() <=> rhs.id();
Immutable cryptographic account descriptor.
PublicKey const & pk() const
Return the public key.
Account(char const *name, KeyType type=KeyType::secp256k1)
AccountID id() const
Returns the Account ID.
Account(Account &&)=default
static Account const master
The master account.
Account(Account const &)=default
std::string const & name() const
Return the name.
Account & operator=(Account &&)=default
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_
SecretKey const & sk() const
Return the secret key.
Account & operator=(Account const &)=default
static Account fromCache(AcctStringType stringType, std::string name, KeyType type)
std::string const & human() const
Returns the human readable public key.
Converts to IOU Issue or STAmount.
void hash_append(Hasher &h, Account const &v) noexcept
auto operator<=>(Account const &lhs, Account const &rhs) noexcept
bool operator==(Account const &lhs, Account const &rhs) noexcept
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
base_uint< 160, detail::AccountIDTag > AccountID
A 160-bit unsigned that uniquely identifies an account.