20 #ifndef RIPPLE_PROTOCOL_ACCOUNTID_H_INCLUDED
21 #define RIPPLE_PROTOCOL_ACCOUNTID_H_INCLUDED
23 #include <ripple/protocol/tokens.h>
26 #include <ripple/basics/UnorderedContainers.h>
27 #include <ripple/basics/base_uint.h>
28 #include <ripple/json/json_value.h>
29 #include <ripple/protocol/json_get_or_throw.h>
93 return c == beast::zero;
136 std::string const b58 = getOrThrow<std::string>(v, field);
137 if (
auto const r = parseBase58<AccountID>(b58))
139 Throw<JsonTypeMismatchError>(field.getJsonName(),
"AccountID");
152 explicit hash() =
default;
std::string toBase58(AccountID const &v)
Convert AccountID to base58 checked string.
ripple::AccountID getOrThrow(Json::Value const &v, ripple::SField const &field)
std::ostream & operator<<(std::ostream &os, TOffer< TIn, TOut > const &offer)
Integers of any length that is a multiple of 32-bits.
JSON (JavaScript Object Notation).
AccountID const & xrpAccount()
Compute AccountID from public key.
Seed functor once per construction.
bool isXRP(AccountID const &c)
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
void initAccountIdCache(std::size_t count)
Initialize the global cache used to map AccountID to base58 conversions.
std::string to_string(Manifest const &m)
Format the specified manifest to a string for debugging purposes.
std::optional< AccountID > parseBase58(std::string const &s)
Parse AccountID from checked, base58 string.
AccountID const & noAccount()
A placeholder for empty accounts.
bool to_issuer(AccountID &, std::string const &)
Convert hex or base58 string to AccountID.