3#include <xrpld/app/main/Application.h>
4#include <xrpld/rpc/Context.h>
6#include <xrpl/basics/base64.h>
7#include <xrpl/json/json_value.h>
8#include <xrpl/protocol/ErrorCodes.h>
9#include <xrpl/protocol/jss.h>
15 auto& params = context.
params;
17 if (!params.isMember(jss::public_key))
20 auto const requested = params[jss::public_key].asString();
23 ret[jss::requested] = requested;
51 details[jss::seq] = *seq;
54 details[jss::domain] = *domain;
56 ret[jss::details] = details;
virtual ManifestCache & validatorManifests()=0
std::optional< std::uint32_t > getSequence(PublicKey const &pk) const
Returns master key's current manifest sequence.
std::optional< std::string > getManifest(PublicKey const &pk) const
Returns mainfest corresponding to a given public key.
std::optional< PublicKey > getSigningKey(PublicKey const &pk) const
Returns master key's current signing key.
PublicKey getMasterKey(PublicKey const &pk) const
Returns ephemeral signing key's master public key.
std::optional< std::string > getDomain(PublicKey const &pk) const
Returns domain claimed by a given public key.
void inject_error(error_code_i code, JsonValue &json)
Add or update the json update to reflect the error code.
Json::Value missing_field_error(std::string const &name)
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.
Json::Value doManifest(RPC::JsonContext &context)
std::string base64_encode(std::uint8_t const *data, std::size_t len)