20#include <xrpld/rpc/Context.h> 
   22#include <xrpl/protocol/ErrorCodes.h> 
   23#include <xrpl/protocol/RPCErr.h> 
   24#include <xrpl/protocol/Seed.h> 
   25#include <xrpl/protocol/jss.h> 
   56    obj[jss::validation_public_key] = 
toBase58(
 
   60    obj[jss::validation_private_key] =
 
   63    obj[jss::validation_seed] = 
toBase58(*seed);
 
 
bool isMember(char const *key) const
Return true if the object has a member named key.
 
@ objectValue
object value (collection of name/value pairs).
 
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 doValidationCreate(RPC::JsonContext &)
 
Seed randomSeed()
Create a seed using secure random numbers.
 
static std::optional< Seed > validationSeed(Json::Value const ¶ms)
 
Json::Value rpcError(int iError)
 
std::string seedAs1751(Seed const &seed)
Encode a Seed in RFC1751 format.
 
PublicKey derivePublicKey(KeyType type, SecretKey const &sk)
Derive the public key from a secret key.
 
SecretKey generateSecretKey(KeyType type, Seed const &seed)
Generate a new secret key deterministically.
 
std::optional< Seed > parseGenericSeed(std::string const &str, bool rfc1751=true)
Attempt to parse a string as a seed.