20 #include <ripple/basics/Log.h>
21 #include <ripple/net/RPCErr.h>
22 #include <ripple/protocol/ErrorCodes.h>
23 #include <ripple/protocol/Seed.h>
24 #include <ripple/protocol/jss.h>
25 #include <ripple/rpc/Context.h>
56 obj[jss::validation_public_key] =
toBase58(
60 obj[jss::validation_private_key] =
63 obj[jss::validation_seed] =
toBase58(*seed);
Json::Value doValidationCreate(RPC::JsonContext &)
Json::Value rpcError(int iError)
std::string toBase58(AccountID const &v)
Convert AccountID to base58 checked string.
@ objectValue
object value (collection of name/value pairs).
PublicKey derivePublicKey(KeyType type, SecretKey const &sk)
Derive the public key from a secret key.
std::string seedAs1751(Seed const &seed)
Encode a Seed in RFC1751 format.
Seed randomSeed()
Create a seed using secure random numbers.
static std::optional< Seed > validationSeed(Json::Value const ¶ms)
SecretKey generateSecretKey(KeyType type, Seed const &seed)
Generate a new secret key deterministically.
bool isMember(const char *key) const
Return true if the object has a member named key.
std::optional< Seed > parseGenericSeed(std::string const &str, bool rfc1751)
Attempt to parse a string as a seed.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.