1#ifndef XRPL_PROTOCOL_ACCOUNTID_H_INCLUDED
2#define XRPL_PROTOCOL_ACCOUNTID_H_INCLUDED
4#include <xrpl/protocol/tokens.h>
7#include <xrpl/basics/UnorderedContainers.h>
8#include <xrpl/basics/base_uint.h>
9#include <xrpl/json/json_value.h>
10#include <xrpl/protocol/json_get_or_throw.h>
73 return c == beast::zero;
116 std::string const b58 = getOrThrow<std::string>(v, field);
117 if (
auto const r = parseBase58<AccountID>(b58))
119 Throw<JsonTypeMismatchError>(field.getJsonName(),
"AccountID");
Seed functor once per construction.
JSON (JavaScript Object Notation).
ripple::AccountID getOrThrow(Json::Value const &v, ripple::SField const &field)
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
AccountID const & noAccount()
A placeholder for empty accounts.
std::string toBase58(AccountID const &v)
Convert AccountID to base58 checked string.
bool isXRP(AccountID const &c)
AccountID const & xrpAccount()
Compute AccountID from public key.
std::optional< AccountID > parseBase58(std::string const &s)
Parse AccountID from checked, base58 string.
bool to_issuer(AccountID &, std::string const &)
Convert hex or base58 string to AccountID.
void initAccountIdCache(std::size_t count)
Initialize the global cache used to map AccountID to base58 conversions.
std::ostream & operator<<(std::ostream &out, base_uint< Bits, Tag > const &u)
std::string to_string(base_uint< Bits, Tag > const &a)