1#include <xrpld/app/misc/ValidatorKeys.h>
3#include <xrpld/core/Config.h>
5#include <xrpl/basics/Log.h>
6#include <xrpl/basics/base64.h>
7#include <xrpl/beast/utility/Journal.h>
8#include <xrpl/config/Constants.h>
9#include <xrpl/protocol/KeyType.h>
10#include <xrpl/protocol/PublicKey.h>
11#include <xrpl/protocol/SecretKey.h>
12#include <xrpl/protocol/Seed.h>
13#include <xrpl/server/Manifest.h>
36 if (!m || pk != m->signingKey)
44 keys.emplace(m->masterKey, pk, token->validationSecret);
47 manifest = std::move(token->manifest);
69 keys.emplace(pk, pk, sk);
A generic endpoint for log messages.
bool exists(std::string const &name) const
Returns true if a section with the given name exists.
Section & section(std::string const &name)
Returns the section with the given name.
std::vector< std::string > const & lines() const
Returns all the lines in the section.
std::optional< Keys > keys
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
std::string base64Decode(std::string_view data)
PublicKey derivePublicKey(KeyType type, SecretKey const &sk)
Derive the public key from a secret key.
std::optional< AccountID > parseBase58(std::string const &s)
Parse AccountID from checked, base58 string.
SecretKey generateSecretKey(KeyType type, Seed const &seed)
Generate a new secret key deterministically.
std::optional< Manifest > deserializeManifest(Slice s, beast::Journal journal)
Constructs Manifest from serialized string.
NodeID calcNodeID(PublicKey const &)
Calculate the 160-bit node ID from a node public key.
std::optional< ValidatorToken > loadValidatorToken(std::vector< std::string > const &blob, beast::Journal journal=beast::Journal(beast::Journal::getNullSink()))
static constexpr auto kValidationSeed
static constexpr auto kValidatorToken