20 #include <ripple/app/main/Application.h>
21 #include <ripple/basics/base64.h>
22 #include <ripple/json/json_value.h>
23 #include <ripple/net/RPCErr.h>
24 #include <ripple/protocol/ErrorCodes.h>
25 #include <ripple/protocol/jss.h>
26 #include <ripple/rpc/Context.h>
35 auto& params = context.
params;
37 if (!params.isMember(jss::public_key))
40 auto const requested = params[jss::public_key].asString();
43 ret[jss::requested] = requested;
72 details[jss::seq] = *seq;
75 details[jss::domain] = *domain;
77 ret[jss::details] = details;
PublicKey getMasterKey(PublicKey const &pk) const
Returns ephemeral signing key's master public key.
Json::Value rpcError(int iError)
std::string base64_encode(std::uint8_t const *data, std::size_t len)
std::string toBase58(AccountID const &v)
Convert AccountID to base58 checked string.
Json::Value doManifest(RPC::JsonContext &)
@ rpcREPORTING_UNSUPPORTED
Json::Value missing_field_error(std::string const &name)
virtual Config & config()=0
PublicKey getSigningKey(PublicKey const &pk) const
Returns master key's current signing key.
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< std::string > getDomain(PublicKey const &pk) const
Returns domain claimed by a given public key.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
virtual ManifestCache & validatorManifests()=0
void inject_error(error_code_i code, JsonValue &json)
Add or update the json update to reflect the error code.